/* Schermo Piccolo · angoli smussati ovunque, come le schede di una banca pubblica */

:root {
    --navy: #142855;
    --blu: #0054BA;
    --ghiaccio: #EFF4F6;
    --nebbia: #dfe9ec;
    --giallo: #FFB500;
    --rosa: #ffa0b4;
    --verde: #50C5A7;
    --inchiostro: #152328;
    --taglio: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
    --taglio-doppio: polygon(22px 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%, 0 22px);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

[hidden],
[data-hidden] {
    display: none !important;
}

body {
    margin: 0;
    background: #FFFFFF;
    color: var(--inchiostro);
    font: 300 1.0625rem/1.6 'Onest', Arial, sans-serif;
    overflow-x: clip;
}

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

a {
    color: var(--blu);
}

h1,
h2,
h3 {
    color: var(--navy);
    font-weight: 600;
    line-height: 1.15;
    text-wrap: balance;
}

:focus-visible {
    outline: 3px solid var(--giallo);
    outline-offset: 2px;
}

.skip-to {
    position: absolute;
    left: -9999px;
    z-index: 90;
    padding: 10px;
    background: #fff;
}

.skip-to:focus {
    left: 10px;
    top: 10px;
}

.chev {
    flex: none;
    margin-left: 6px;
}

/* striscia del consenso: in basso sul telefono, in alto da 980 px */
.consent-strip {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    display: grid;
    gap: 10px;
    padding: 14px 20px;
    background: var(--inchiostro);
    color: #FFFFFF;
    font-size: .9375rem;
}

.consent-strip a {
    color: #FFFFFF;
}

.consent-strip__text,
.consent-strip__settings {
    margin: 0;
}

.consent-strip__btns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* barra del pubblico */
.audience-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    background: var(--blu);
}

.audience-bar__tabs {
    display: flex;
    overflow-x: auto;
    margin: 0;
    padding: 0;
    list-style: none;
}

.audience-bar__tab {
    display: block;
    margin-right: -14px;
    padding: 13px 28px 13px 16px;
    background: #0047a0;
    color: #FFFFFF;
    font-size: .9375rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 100%, 0 100%);
}

.audience-bar__tab--on {
    background: #F7F8F8;
    color: var(--inchiostro);
    font-weight: 300;
}

.audience-bar__links {
    display: none;
    gap: 20px;
    margin: 0;
    padding: 12px 20px;
    list-style: none;
}

.audience-bar__links a {
    color: #FFFFFF;
    font-weight: 500;
    text-decoration: none;
}

/* barra del logo */
.site-head {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--nebbia);
    background: #F7F8F8;
}

.site-head__logo img {
    width: auto;
    height: 28px;
}

.site-head__menu {
    margin-left: auto;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--navy);
    background: #fff;
    color: var(--navy);
    font: inherit;
    font-weight: 500;
    cursor: pointer;
}

.site-head__nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 30;
    display: none;
    padding: 8px 20px 18px;
    background: #F7F8F8;
}

.site-head__nav.is-open {
    display: block;
}

.site-head__nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-head__nav a {
    display: block;
    padding: 11px 0;
    color: var(--inchiostro);
    text-decoration: none;
}

.site-head__nav a[aria-current] {
    color: var(--blu);
    font-weight: 500;
}

.site-head__call {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    background: var(--blu);
    color: #FFFFFF;
}

/* bottoni con taglio */
.cut-btn {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    padding: 10px 30px 10px 26px;
    border: 0;
    background: var(--blu);
    color: #FFFFFF;
    font: inherit;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
}

.cut-btn:hover {
    background: #003E8A;
}

.cut-btn--white {
    background: #FFFFFF;
    color: var(--inchiostro);
}

.cut-btn--white:hover {
    background: var(--ghiaccio);
}

.cut-btn--ghost {
    background: transparent;
    color: #FFFFFF;
    box-shadow: inset 0 0 0 2px #FFFFFF;
}

/* eroe */
.hero-split {
    display: grid;
    overflow: hidden;
}

.hero-split__text {
    position: relative;
    padding: clamp(40px, 7vw, 120px) 20px clamp(90px, 12vw, 200px);
}

.hero-split__title {
    position: relative;
    z-index: 1;
    margin: 0 0 18px;
    font-size: clamp(2rem, 4.4vw, 3rem);
}

.blue-words {
    color: var(--blu);
}

.hero-split__lead {
    position: relative;
    z-index: 1;
    max-width: 560px;
    margin: 0 0 24px;
}

.hero-split__media {
    position: relative;
    min-width: 0;
}

.hero-split__img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.shape {
    position: absolute;
    z-index: 0;
    clip-path: polygon(40% 0, 100% 0, 100% 30%, 60% 100%, 0 100%, 0 70%);
}

.shape--yellow {
    left: 0;
    bottom: 0;
    width: 180px;
    height: 180px;
    background: var(--giallo);
}

.shape--pink {
    left: 46%;
    bottom: 0;
    width: 90px;
    height: 90px;
    background: var(--rosa);
}

.shape--navy {
    left: -30px;
    bottom: 60px;
    width: 120px;
    height: 120px;
    background: var(--navy);
}

.shape--green {
    right: 0;
    top: 40%;
    width: 60px;
    height: 90px;
    background: var(--verde);
}

/* fascia navy */
.navy-band {
    display: grid;
    background: var(--navy);
    color: #FFFFFF;
}

.navy-band__text {
    padding: 50px 20px;
}

.navy-band__title {
    margin: 0 0 18px;
    color: #FFFFFF;
    font-size: clamp(1.9rem, 3.6vw, 2.6rem);
}

.navy-band__text p {
    max-width: 540px;
    margin: 0 0 24px;
}

.navy-band__media {
    min-width: 0;
}

.navy-band__img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.navy-cards {
    padding: 20px 20px 70px;
    background: var(--navy);
}

.navy-cards__title {
    margin: 0 0 24px;
    color: #FFFFFF;
    font-size: clamp(1.9rem, 3.6vw, 2.6rem);
}

.navy-cards__grid {
    display: grid;
    gap: 20px;
}

.cut-card {
    padding: 24px;
    background: #FFFFFF;
    clip-path: var(--taglio-doppio);
}

.cut-card__title {
    margin: 0 0 8px;
    font-size: 1.35rem;
}

.cut-card__sub {
    margin: 0 0 10px;
    color: var(--inchiostro);
    font-weight: 500;
}

.more-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-weight: 500;
    text-decoration: none;
}

/* dimostrazione su telefono */
.chat-demo {
    display: grid;
    gap: 30px;
    padding: 70px 20px;
    background: var(--ghiaccio);
}

.chat-demo__title {
    margin: 0 0 14px;
    font-size: clamp(1.9rem, 3.6vw, 2.6rem);
}

.chat-demo__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.chat-demo__tab {
    min-height: 44px;
    padding: 8px 16px;
    border: 1px solid var(--blu);
    background: #FFFFFF;
    color: var(--blu);
    font: inherit;
    font-weight: 500;
    cursor: pointer;
}

.chat-demo__tab[aria-selected='true'] {
    background: var(--blu);
    color: #FFFFFF;
}

.phone-frame {
    position: relative;
    width: min(320px, 100%);
    min-height: 460px;
    margin: 0 auto;
    padding: 46px 16px 24px;
    border: 10px solid var(--navy);
    border-radius: 34px;
    background: #FFFFFF;
}

.phone-frame__notch {
    position: absolute;
    top: 0;
    left: 50%;
    width: 110px;
    height: 20px;
    border-radius: 0 0 14px 14px;
    background: var(--navy);
    transform: translateX(-50%);
}

.phone-frame__chat {
    display: grid;
    gap: 12px;
}

.bubble {
    margin: 0;
    padding: 12px 14px;
    border-radius: 16px;
    font-size: .9375rem;
    line-height: 1.45;
}

.bubble--me {
    justify-self: end;
    max-width: 85%;
    border-bottom-right-radius: 4px;
    background: var(--blu);
    color: #FFFFFF;
}

.bubble--ai {
    max-width: 92%;
    border-bottom-left-radius: 4px;
    background: var(--ghiaccio);
    color: var(--inchiostro);
}

/* passi in lista */
.steps__list {
    display: grid;
    gap: 0;
    max-width: 860px;
    margin: 0 auto;
    padding: 0;
    counter-reset: passo;
    list-style: none;
    text-align: left;
}

.steps__list li {
    position: relative;
    padding: 22px 0 22px 70px;
    border-bottom: 1px solid var(--nebbia);
    counter-increment: passo;
}

.steps__list li::before {
    position: absolute;
    left: 0;
    top: 18px;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    background: var(--nebbia);
    color: var(--blu);
    font-weight: 500;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
    content: counter(passo);
}

.steps__list b {
    color: var(--navy);
    font-weight: 600;
}

/* righe dei cicli */
.cycle-rows {
    display: grid;
    gap: 2px;
    padding: 50px 20px;
}

.cycle-rows__title {
    margin: 0 0 18px;
    font-size: clamp(1.7rem, 3vw, 2.1rem);
}

.cycle-rows__item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
    padding: 18px 20px;
    background: var(--ghiaccio);
    color: var(--inchiostro);
    text-decoration: none;
}

.cycle-rows__item:hover {
    background: var(--nebbia);
}

.cycle-rows__name {
    color: var(--navy);
    font-size: 1.25rem;
    font-weight: 600;
}

.cycle-rows__img {
    width: 100%;
    margin-top: 20px;
    aspect-ratio: 16 / 7;
    object-fit: cover;
    clip-path: var(--taglio);
}

.line-form__trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* passi */
.steps {
    padding: 80px 20px;
    text-align: center;
}

.steps__title {
    margin: 0 0 10px;
    font-size: clamp(2rem, 4.2vw, 2.9rem);
}

.steps__sub {
    margin: 0 0 40px;
    font-size: 1.25rem;
}

.steps__grid {
    display: grid;
    gap: 24px;
    text-align: left;
}

.step-card {
    padding: 24px;
    background: var(--nebbia);
    clip-path: var(--taglio-doppio);
}

.step-card__n {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    background: #FFFFFF;
    color: var(--blu);
    font-weight: 500;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
}

.step-card h3 {
    margin: 0 0 12px;
    font-size: 1.35rem;
}

/* scheda in evidenza */
.feature {
    display: grid;
    padding: 0 20px;
}

.feature__box {
    padding: 40px 30px;
    background: var(--ghiaccio);
    clip-path: polygon(44px 0, 100% 0, 100% 100%, 0 100%, 0 44px);
}

.feature__title {
    margin: 0 0 14px;
    font-size: clamp(1.7rem, 3vw, 2.1rem);
}

.feature__media {
    min-width: 0;
}

.feature__img {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.open-row {
    display: grid;
    gap: 24px;
    padding: 50px 20px;
}

.open-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 30px;
    background: var(--ghiaccio);
    clip-path: var(--taglio-doppio);
}

.open-tag {
    align-self: flex-start;
    padding: 4px 12px;
    background: var(--verde);
    color: #0D2B24;
    font-size: .875rem;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%);
}

.open-card__title {
    margin: 0;
    font-size: 1.45rem;
}

.open-card p {
    margin: 0;
}

.tile-photo {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.open-card .cut-btn {
    align-self: flex-start;
}

/* domande e limiti */
.plain-band {
    display: grid;
    gap: 40px;
    padding: 70px 20px;
    background: var(--ghiaccio);
}

.plain-band__title {
    margin: 0 0 18px;
    font-size: 1.6rem;
}

.qa-inline {
    margin: 0 0 16px;
}

.qa-inline strong {
    color: var(--navy);
    font-weight: 600;
}

.price-tag {
    display: grid;
    margin: 24px 0;
    color: var(--navy);
    font-size: 2.6rem;
    font-weight: 600;
    line-height: 1.1;
}

.price-tag small {
    color: var(--inchiostro);
    font-size: 1rem;
    font-weight: 300;
}

/* sottopagine con fascia navy */
.trail {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0 0 22px;
    font-size: .875rem;
}

.trail .chev {
    margin: 0 8px;
}

.page-top {
    position: relative;
    overflow: hidden;
    padding: 40px 20px 60px;
    background: var(--navy);
    color: #FFFFFF;
}

.page-top a {
    color: #FFFFFF;
}

.page-top__title {
    position: relative;
    z-index: 1;
    margin: 0 0 14px;
    color: #FFFFFF;
    font-size: clamp(2.1rem, 5vw, 3.2rem);
}

.page-top__lead {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0;
    font-size: 1.15rem;
}

.page-top .shape--yellow {
    left: auto;
    right: -40px;
    width: 140px;
    height: 140px;
}

.page-top--legal {
    padding-bottom: 36px;
}

.page-text {
    max-width: 800px;
    padding: 40px 20px 80px;
    overflow-wrap: anywhere;
}

.page-text h2 {
    margin: 34px 0 10px;
    font-size: 1.55rem;
}

.page-text__img {
    width: 100%;
    margin: 24px 0;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    clip-path: var(--taglio);
}

.page-text--legal h2 {
    font-size: 1.3rem;
}

/* modulo riga per riga */
.line-form {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--nebbia);
}

.line-form__row,
.line-form__check {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 12px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--nebbia);
}

.line-form__row label {
    grid-column: 1 / -1;
    color: var(--navy);
    font-weight: 500;
}

.line-form__opt {
    color: var(--inchiostro);
    font-weight: 300;
}

.line-form__row input,
.line-form__row select {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 8px 12px;
    border: 1px solid #9AABB2;
    border-radius: 0;
    background: #FFFFFF;
    font: inherit;
}

.line-form__row input.is-bad {
    border-color: #B3261E;
}

.line-form__ok {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    min-height: 0px;
    font-weight: 600;
}

.line-form__ok.is-good {
    background: var(--verde);
    color: #0D2B24;
}

.line-form__ok.is-bad {
    background: #FDECEA;
    color: #B3261E;
}

.line-form__check {
    grid-template-columns: auto 1fr auto;
}

.line-form__check input {
    width: 22px;
    height: 22px;
}

.line-form .cut-btn {
    justify-self: start;
    margin-top: 20px;
}

.line-form__status {
    min-height: 26px;
    margin: 12px 0 0;
    color: var(--blu);
    font-weight: 500;
}

.done-dialog {
    max-width: 440px;
    padding: 28px;
    border: 0;
    border-top: 6px solid var(--verde);
}

.done-dialog::backdrop {
    background: rgba(20, 40, 85, .6);
}

/* piede */
.foot {
    background: var(--navy);
    color: #FFFFFF;
}

.foot a {
    color: #FFFFFF;
}

.foot__top {
    display: grid;
    gap: 30px;
    padding: 50px 20px 30px;
}

.foot__brand img {
    width: auto;
    height: 30px;
    margin-bottom: 14px;
}

.foot__label {
    margin: 0 0 10px;
    font-weight: 600;
}

.foot__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.foot__list li {
    margin-bottom: 8px;
}

.foot__bottom {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, .2);
    font-size: .875rem;
}

.foot__legal {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    margin: 0 0 10px;
    padding: 0;
    list-style: none;
}

.foot__consent {
    padding: 0;
    border: 0;
    background: none;
    color: #FFFFFF;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

@media (min-width: 720px) {
    .navy-cards__grid,
    .steps__grid,
    .open-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .foot__top {
        grid-template-columns: 1.4fr 1fr 1fr;
    }
}

@media (min-width: 980px) {
    .consent-strip {
        position: static;
        grid-template-columns: 1fr auto;
        align-items: center;
        padding: 14px 40px;
    }

    .consent-strip__settings {
        grid-column: 1 / -1;
    }

    .audience-bar__links {
        display: flex;
    }

    .site-head {
        padding: 18px 56px;
    }

    .site-head__menu {
        display: none;
    }

    .site-head__nav {
        position: static;
        display: block;
        margin-left: auto;
        padding: 0;
        background: none;
    }

    .site-head__nav ul {
        display: flex;
        gap: 28px;
    }

    .hero-split {
        grid-template-columns: 1fr 1fr;
    }

    .hero-split__text {
        padding-left: 40px;
    }

    .hero-split__img {
        aspect-ratio: auto;
        min-height: 640px;
        clip-path: polygon(38% 0, 100% 0, 100% 100%, 0 100%, 0 70%);
    }

    .navy-band {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }

    .navy-band__text {
        padding: 70px 40px;
    }

    .navy-band__img {
        min-height: 520px;
        clip-path: polygon(40% 0, 100% 0, 100% 100%, 0 100%, 0 55%);
    }

    .navy-cards,
    .chat-demo,
    .plain-band,
    .open-row,
    .feature {
        padding-left: 40px;
        padding-right: 40px;
    }

    .chat-demo {
        grid-template-columns: 1fr 360px;
        align-items: center;
    }

    .steps__grid,
    .open-row {
        grid-template-columns: repeat(3, 1fr);
    }

    .feature {
        grid-template-columns: 2fr 3fr;
        align-items: stretch;
    }

    .feature__box {
        position: relative;
        z-index: 1;
        margin: 20px -60px 0 0;
        padding: 60px 40px;
    }

    .plain-band {
        grid-template-columns: 3fr 2fr;
    }

    .page-top,
    .page-text {
        padding-left: 56px;
        padding-right: 56px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* tabella dei requisiti */
.needs {
    padding: 60px 20px 10px;
    overflow-x: auto;
}

.needs__title {
    margin: 0 0 18px;
    font-size: clamp(1.7rem, 3vw, 2.1rem);
}

.needs__table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
}

.needs__cap {
    padding-bottom: 10px;
    text-align: left;
}

.needs__table th {
    padding: 12px;
    background: var(--navy);
    color: #FFFFFF;
    font-weight: 500;
    text-align: left;
}

.needs__table td {
    padding: 12px;
    border-bottom: 1px solid var(--nebbia);
    vertical-align: top;
}

.needs__table tr:nth-child(even) td {
    background: var(--ghiaccio);
}

.cycle-rows__list {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}
