@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    color-scheme: light;
    --navy: #0c2850;
    --ink: #173150;
    --muted: #526982;
    --green: #188f61;
    --blue: #1474b5;
    --pale: #eff7f6;
    --line: #dde8ea;
    font-family: 'DM Sans', sans-serif;
    background: #f9fcfd;
    color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, .button { cursor: pointer; }
img { max-width: 100%; display: block; }
h1, h2, h3, p, figure { margin-top: 0; }
h1, h2, h3 { font-family: Manrope, sans-serif; color: var(--navy); }
:focus-visible { outline: 3px solid #18a3c4; outline-offset: 4px; }

.site-header {
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
}
.header-inner, .site-footer {
    width: min(1380px, calc(100% - 64px));
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header-inner { min-height: 82px; gap: 28px; }
.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font: 800 28px/1 Manrope, sans-serif;
    letter-spacing: -.055em;
    color: var(--navy);
}
.brand small { display: block; margin-top: 6px; font: 700 11px/1 'DM Sans', sans-serif; letter-spacing: .24em; color: var(--green); text-transform: uppercase; }
.brand-four { color: var(--green); }
.brand-mark { font: 700 56px/1 Manrope, sans-serif; letter-spacing: -.14em; background: linear-gradient(115deg, #219d64, #167fc1); background-clip: text; color: transparent; transform: rotate(-12deg); }
.top-nav { display: flex; align-items: center; gap: 32px; font-weight: 700; font-size: 14px; }
.top-nav a:hover, .text-link:hover { color: var(--green); }
.top-nav .nav-access { border: 1px solid #a7d1ce; padding: 12px 18px; border-radius: 999px; }
.top-nav .nav-access:hover { background: #edf8f3; }

.hero, .idea, .demo-invitation, .access-page, .private-intro, .media-grid {
    width: min(1380px, calc(100% - 64px));
    margin-inline: auto;
}
.hero { padding: 76px 0 92px; }
.hero-copy { max-width: 1020px; }
.eyebrow { color: var(--green); text-transform: uppercase; font-size: 12px; font-weight: 800; letter-spacing: .22em; margin-bottom: 22px; }
.eyebrow-line { display: inline-block; width: 30px; height: 2px; background: currentColor; vertical-align: middle; margin-right: 9px; }
.hero h1 { max-width: 1010px; font-size: clamp(46px, 5.1vw, 78px); line-height: 1.08; letter-spacing: -.06em; margin-bottom: 25px; }
.hero h1 em, .access-intro h1 em { color: var(--green); font-style: normal; }
.hero-lead { font: 700 clamp(20px, 2vw, 30px)/1.35 Manrope, sans-serif; color: var(--navy); margin-bottom: 12px; }
.hero-detail { max-width: 760px; font-size: 18px; line-height: 1.7; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin: 30px 0 48px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; border-radius: 12px; border: 1px solid transparent; padding: 15px 23px; font-size: 14px; font-weight: 800; transition: transform .2s, background .2s, box-shadow .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: linear-gradient(120deg, #15895f, #167ab8); box-shadow: 0 13px 28px rgba(25, 126, 130, .2); }
.button-primary:hover { box-shadow: 0 17px 32px rgba(25, 126, 130, .27); }
.button-secondary { color: var(--navy); background: #ecf4f5; border-color: #d4e6e7; }
.button-outline { background: #fff; color: var(--navy); border-color: #c6dadd; }
.button-light { background: #fff; color: var(--navy); white-space: nowrap; }
.button-wide { width: 100%; }
.text-link { font-size: 14px; font-weight: 800; color: var(--navy); }
.marketing-hero, .vision-summary { width: min(1380px, calc(100% - 64px)); margin-inline: auto; }
.marketing-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: clamp(25px, 4vw, 72px); min-height: 660px; padding: 55px 0 65px; }
.marketing-copy { position: relative; z-index: 1; }
.marketing-copy h1 { font-size: clamp(43px, 4.6vw, 70px); line-height: 1.1; letter-spacing: -.06em; margin-bottom: 25px; }
.marketing-copy h1 em, .vision-statement h2 em { color: var(--green); font-style: normal; }
.marketing-lead { font: 700 clamp(21px, 2vw, 29px)/1.4 Manrope, sans-serif; color: var(--navy); margin-bottom: 19px; }
.marketing-detail { color: var(--muted); font-size: 17px; line-height: 1.7; max-width: 650px; }
.marketing-tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 29px; }
.marketing-tags span { border: 1px solid #c6e5dc; background: #eaf7f2; color: #18745a; border-radius: 999px; padding: 9px 14px; font-size: 12px; font-weight: 800; }
.vision-art { position: relative; overflow: hidden; min-height: 560px; align-self: stretch; border: 1px solid #dbeaec; border-radius: 27px; background: #e9f7f6; box-shadow: 0 28px 65px rgba(12, 56, 82, .1); }
.vision-art::before { content: ''; position: absolute; inset: 0; background: url('/images/swap4all-vision.jpg') calc(100% + 65px) 42% / auto 175% no-repeat; mask-image: radial-gradient(ellipse 65% 60% at 50% 46%, #000 68%, transparent 100%); }
.vision-art::after { content: ''; position: absolute; inset: auto 0 0; height: 105px; background: linear-gradient(transparent, #e9f7f6 72%); }
.vision-summary { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 100px); border-top: 1px solid var(--line); padding: 75px 0 110px; }
.vision-statement h2 { font-size: clamp(30px, 2.9vw, 44px); line-height: 1.22; letter-spacing: -.045em; margin-bottom: 0; }
.vision-steps { align-self: center; }
.vision-steps div { display: flex; gap: 22px; align-items: baseline; border-bottom: 1px solid var(--line); padding: 16px 0; font-size: 17px; line-height: 1.5; }
.vision-steps strong { color: var(--green); font: 800 12px Manrope, sans-serif; letter-spacing: .1em; }
.demo-dialog { width: min(450px, calc(100% - 30px)); max-height: min(90vh, 700px); padding: 32px; border: 1px solid #d9e6e8; border-radius: 22px; box-shadow: 0 34px 95px rgba(4, 32, 54, .24); color: var(--ink); }
.demo-dialog::backdrop { background: rgba(5, 30, 54, .64); backdrop-filter: blur(5px); }
.dialog-top { display: flex; justify-content: space-between; align-items: start; gap: 14px; }
.dialog-top .eyebrow { margin-bottom: 9px; }
.dialog-top h2 { font-size: 26px; letter-spacing: -.03em; margin-bottom: 12px; }
.dialog-close { border: 0; background: #edf4f4; color: var(--navy); font-size: 29px; line-height: 1; width: 37px; height: 37px; border-radius: 50%; }
.demo-dialog > p { font-size: 14px; line-height: 1.65; color: var(--muted); margin-bottom: 24px; }
.dialog-form label { display: block; font-weight: 800; font-size: 13px; margin: 17px 0 8px; }
.dialog-form input { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #c7d9df; border-radius: 10px; color: var(--navy); }
.dialog-form input:focus { outline: 2px solid #3aaf91; border-color: #3aaf91; }
.dialog-form button { margin-top: 25px; }
.slide-frame { margin: 0; border-radius: 22px; padding: 10px; background: #fff; border: 1px solid #e1eced; box-shadow: 0 25px 80px rgba(8, 50, 75, .1); overflow: hidden; }
.slide-frame img { width: 100%; border-radius: 14px; aspect-ratio: 16 / 9; object-fit: cover; }
.slide-frame figcaption { padding: 12px 13px 4px; color: #6f8597; font-size: 12px; }

.idea { padding: 8px 0 105px; }
.section-heading { max-width: 780px; }
.section-heading h2, .demo-invitation h2 { font-size: clamp(31px, 3.2vw, 48px); letter-spacing: -.045em; line-height: 1.16; margin-bottom: 16px; }
.section-heading > p:last-child { color: var(--muted); line-height: 1.65; font-size: 17px; }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 19px; margin-top: 34px; }
.value-card { min-height: 220px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 27px; box-shadow: 0 10px 35px rgba(15, 66, 86, .035); }
.value-icon { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 13px; background: #e3f5ed; color: var(--green); font-size: 27px; font-weight: 700; margin-bottom: 22px; }
.value-card:nth-child(2) .value-icon { color: var(--blue); background: #e6f2fa; }
.value-card h3 { font-size: 18px; margin-bottom: 8px; }
.value-card p { color: var(--muted); line-height: 1.6; margin-bottom: 0; }
.demo-invitation { background: #0c3155; color: #d8eaf2; border-radius: 26px; padding: 50px 55px; display: flex; align-items: center; justify-content: space-between; gap: 35px; margin-bottom: 80px; position: relative; overflow: hidden; }
.demo-invitation::after { content: '∞'; position: absolute; right: 210px; top: -115px; font: 700 310px/1 Manrope, sans-serif; color: rgba(94, 184, 190, .08); pointer-events: none; }
.demo-invitation > * { position: relative; z-index: 1; }
.demo-invitation h2 { color: #fff; margin-bottom: 10px; }
.demo-invitation p:last-child { margin-bottom: 0; }
.eyebrow-light { color: #79d5b1; }

.access-page { display: grid; grid-template-columns: 1fr minmax(320px, 440px); gap: clamp(32px, 7vw, 130px); align-items: center; min-height: calc(100vh - 165px); padding-block: 80px; }
.access-intro h1 { font-size: clamp(42px, 4.8vw, 68px); line-height: 1.1; letter-spacing: -.055em; max-width: 700px; }
.access-intro p:not(.eyebrow) { font-size: 18px; color: var(--muted); line-height: 1.7; max-width: 600px; }
.access-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 36px; box-shadow: 0 25px 75px rgba(7, 46, 69, .09); }
.access-card h2 { font-size: 23px; margin-bottom: 8px; }
.access-card p { color: var(--muted); font-size: 14px; line-height: 1.6; margin-bottom: 30px; }
.access-card label { display: block; font-size: 13px; color: var(--navy); font-weight: 800; margin: 18px 0 8px; }
.access-card input { width: 100%; min-height: 48px; border: 1px solid #c7d9df; border-radius: 10px; padding: 11px 14px; background: #fbfdfd; color: var(--navy); }
.access-card input:focus { outline: 2px solid #3aaf91; border-color: #3aaf91; }
.access-card button { margin-top: 28px; }
.form-error { border: 1px solid #e9aaa8; border-radius: 9px; padding: 12px; background: #fff5f5; color: #a23137; font-size: 13px; }

.private-intro { padding: 75px 0 40px; display: flex; align-items: start; justify-content: space-between; gap: 30px; }
.private-intro h1 { font-size: clamp(36px, 4vw, 58px); letter-spacing: -.05em; margin-bottom: 14px; }
.private-intro p:not(.eyebrow) { max-width: 740px; color: var(--muted); line-height: 1.65; }
.media-grid { display: flex; flex-direction: column; gap: 22px; padding-bottom: 90px; }
.media-card { width: 100%; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 21px; padding: 24px; box-shadow: 0 20px 45px rgba(14, 53, 77, .05); }
.media-card-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 15px; margin-bottom: 22px; }
.media-card-heading .eyebrow { margin-bottom: 8px; }
.media-card-heading h2 { font-size: 24px; margin: 0; }
.media-card video { display: block; width: 100%; max-width: 960px; aspect-ratio: 16 / 9; margin-inline: auto; border-radius: 12px; background: #071b2c; }
.pdf-preview { display: flex; flex-direction: column; align-items: center; gap: 20px; width: 100%; min-width: 0; overflow: hidden; }
.pdf-page { display: block; width: 100%; max-width: 960px; height: auto; background: white; border: 1px solid #dce9ea; box-shadow: 0 8px 28px rgba(14, 53, 77, .09); }
.pdf-status { width: 100%; padding: 30px 12px; text-align: center; color: var(--muted); }
.site-footer { gap: 20px; min-height: 80px; border-top: 1px solid var(--line); color: #7890a2; font-size: 12px; }

.brand-logo { width: clamp(190px, 18vw, 245px); height: auto; }
.top-nav .nav-access { border: 0; border-radius: 0; padding: 0; background: none; color: var(--navy); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.top-nav .nav-access:hover { background: none; color: var(--green); }

.pitch-home { min-height: 100svh; height: 100svh; display: flex; flex-direction: column; background: linear-gradient(160deg, #f5fbfd, #fff 50%, #f5fbf8); }
.pitch-home .site-header { flex: 0 0 auto; }
.pitch-home .header-inner { min-height: 72px; }
.pitch-home #contenuto { flex: 1 1 auto; min-height: 0; display: flex; }
.pitch-home .site-footer { display: none; }
.pitch-sheet { width: min(1640px, 100%); min-height: 0; margin: 0 auto; padding: clamp(10px, 1.8vh, 22px) clamp(24px, 3.8vw, 72px) 10px; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; gap: clamp(8px, 1.4vh, 16px); }
.pitch-heading { text-align: center; color: var(--navy); }
.pitch-heading .pitch-eyebrow { margin: 0 0 3px; font-size: clamp(10px, .78vw, 14px); font-style: italic; color: var(--green); }
.pitch-heading h1 { margin: 0 0 8px; font-size: clamp(26px, 2.65vw, 43px); line-height: 1.16; letter-spacing: -.035em; }
.pitch-subtitle { margin: 0; color: #43505f; font-size: clamp(16px, 1.2vw, 21px); font-style: italic; line-height: 1.38; }
.pitch-main { min-height: 0; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(20px, 3vw, 55px); align-items: center; }
.pitch-copy { color: #233b63; font-size: clamp(14px, 1.1vw, 19px); line-height: 1.34; }
.pitch-copy p { margin: 0 0 clamp(8px, 1.1vh, 15px); }
.pitch-copy p:last-child { margin-bottom: 0; }
.pitch-copy strong { color: #087c55; font-weight: 800; }
.pitch-copy .pitch-claim { font-size: 1.15em; font-weight: 800; color: var(--navy); }
.pitch-copy .pitch-claim strong { color: var(--navy); }
.pitch-copy .pitch-claim em { font-style: normal; color: #087c55; }
.pitch-art { min-width: 0; margin: 0; display: flex; justify-content: center; align-items: center; }
.pitch-art img { width: 100%; max-height: min(54vh, 560px); object-fit: contain; }
.pitch-benefits { display: grid; grid-template-columns: repeat(5, 1fr); padding: clamp(9px, 1.4vh, 17px) 0; border-top: 1px solid #cde6e2; border-bottom: 1px solid #cde6e2; color: var(--navy); font-size: clamp(11px, .95vw, 15px); line-height: 1.18; text-align: center; }
.pitch-benefits span + span { border-left: 1px solid #a9d8d5; }
.pitch-signoff { display: flex; justify-content: space-between; align-items: center; gap: 15px; color: #254478; font-size: clamp(10px, .8vw, 13px); }
.pitch-signoff strong { font: italic 700 1.3em Georgia, serif; color: var(--green); }

@media (max-width: 900px) {
    .pitch-home { height: auto; min-height: 100svh; }
    .pitch-home #contenuto { display: block; }
    .pitch-sheet { display: block; padding: 28px 22px 22px; }
    .pitch-heading { text-align: center; }
    .pitch-heading h1 { font-size: clamp(32px, 6vw, 42px); line-height: 1.2; margin-bottom: 14px; }
    .pitch-subtitle { font-size: clamp(17px, 2.6vw, 20px); line-height: 1.48; }
    .pitch-desktop-break { display: none; }
    .pitch-main { display: flex; flex-direction: column; align-items: stretch; gap: 22px; margin-top: 22px; }
    .pitch-copy { font-size: 16px; line-height: 1.48; }
    .pitch-copy p { margin-bottom: 13px; }
    .pitch-art img { max-height: none; max-width: 600px; }
    .pitch-benefits { margin-top: 24px; gap: 0; }
    .pitch-signoff { margin-top: 14px; flex-wrap: wrap; }
}

@media (max-width: 520px) {
    .pitch-home .header-inner { min-height: 66px; }
    .brand-logo { width: 175px; }
    .pitch-sheet { padding: 34px 18px 22px; }
    .pitch-heading .pitch-eyebrow { margin-bottom: 10px; }
    .pitch-heading h1 { max-width: 17ch; margin: 0 auto 18px; font-size: clamp(31px, 8.2vw, 40px); line-height: 1.25; letter-spacing: -.045em; }
    .pitch-subtitle { max-width: 32ch; margin-inline: auto; font-size: clamp(17px, 4.3vw, 20px); line-height: 1.55; }
    .pitch-main { margin-top: 30px; }
    .pitch-benefits { grid-template-columns: repeat(2, 1fr); row-gap: 14px; font-size: 12px; }
    .pitch-benefits span + span { border-left: 0; }
    .pitch-benefits span:nth-child(even) { border-left: 1px solid #a9d8d5; }
    .pitch-signoff { font-size: 11px; }
}

@media (max-width: 850px) {
    .header-inner, .site-footer, .hero, .idea, .demo-invitation, .access-page, .private-intro, .media-grid, .marketing-hero, .vision-summary { width: min(100% - 36px, 680px); }
    .header-inner { min-height: 70px; }
    .brand { font-size: 23px; }
    .brand-mark { font-size: 43px; }
    .top-nav { gap: 12px; }
    .top-nav .nav-access { font-size: 12px; padding: 10px 12px; }
    .marketing-hero, .vision-summary { grid-template-columns: 1fr; }
    .marketing-hero { min-height: 0; gap: 34px; padding: 57px 0 50px; }
    .marketing-copy h1 { font-size: clamp(40px, 7vw, 58px); }
    .vision-art { min-height: 380px; }
    .vision-art::before { background-position: calc(100% + 65px) 58%; }
    .vision-summary { padding: 50px 0 75px; gap: 14px; }
    .hero { padding: 54px 0 70px; }
    .hero h1 { font-size: clamp(40px, 8vw, 62px); }
    .value-grid, .access-page { grid-template-columns: 1fr; }
    .value-card { min-height: 0; }
    .demo-invitation, .private-intro { display: block; }
    .demo-invitation { padding: 34px; }
    .demo-invitation .button { margin-top: 25px; }
    .access-page { min-height: 0; padding-block: 55px; }
    .access-card { padding: 28px; }
    .private-intro { padding: 50px 0 26px; }
}

@media (max-width: 520px) {
    .marketing-copy h1 { font-size: 39px; }
    .marketing-lead { font-size: 21px; }
    .marketing-detail { font-size: 16px; }
    .vision-art { min-height: 310px; border-radius: 19px; }
    .vision-art::before { background-position: calc(100% + 65px) 62%; }
    .vision-art::after { height: 90px; background: linear-gradient(transparent, #e9f7f6 18%); }
    .demo-dialog { padding: 24px; }
    .hero h1 { font-size: 40px; }
    .hero-lead { font-size: 20px; }
    .hero-detail { font-size: 16px; }
    .slide-frame { margin-inline: -18px; border-radius: 0; padding: 5px; }
    .slide-frame img { border-radius: 2px; }
    .slide-frame figcaption { padding-left: 10px; }
    .media-card { padding: 17px; }
    .media-card-heading .button { width: 100%; }
    .pdf-preview { gap: 12px; }
    .site-footer { display: block; padding: 22px 0; line-height: 1.8; }
    .site-footer span { display: block; }
}

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

.tenant-create { width: min(850px, calc(100% - 40px)); margin: 56px auto 80px; }
.tenant-create h1 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 12px; }
.tenant-create > p:not(.eyebrow) { color: var(--muted); line-height: 1.6; }
.tenant-create form { display: grid; gap: 28px; margin-top: 32px; }
.tenant-create fieldset { border: 1px solid var(--line); border-radius: 18px; padding: 24px; background: #fff; }
.tenant-create legend { font: 800 18px Manrope, sans-serif; color: var(--navy); padding: 0 8px; }
.tenant-create fieldset > label { display: block; margin: 15px 0 7px; font-weight: 700; }
.tenant-create input:not([type=radio]):not([type=checkbox]) { width: 100%; border: 1px solid #bfd3d8; border-radius: 9px; padding: 12px; }
.tenant-create small { display: block; color: var(--muted); line-height: 1.4; margin-top: 8px; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 12px; margin: 16px 0; }
.choice-card { display: flex; gap: 10px; align-items: flex-start; padding: 16px; border: 1px solid #bfd3d8; border-radius: 12px; cursor: pointer; }
.choice-card:has(input:checked) { border-color: var(--green); background: #edf8f3; }
.choice-card small { font-weight: 400; }
.slug-field { display: flex; align-items: center; gap: 8px; }
.slug-field span { white-space: nowrap; color: var(--muted); }
.create-confirm { display: flex; align-items: flex-start; gap: 10px; line-height: 1.5; }
.tenant-create .form-error { color: #a52a23; font-weight: 700; }
@media (max-width: 520px) { .tenant-create { margin-top: 36px; } .tenant-create fieldset { padding: 18px; } .slug-field { display: block; } .slug-field span { display: block; margin-top: 6px; } .top-nav { gap: 12px; } .top-nav a { font-size: 12px; } }
