@font-face {
    font-family: "Albert Sans";
    src: url("../assets/fonts/albert-sans-949fc9a5.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

@font-face {
    font-family: "Albert Sans";
    src: url("../assets/fonts/albert-sans-e0e10776.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

/* ================================================================
   DESIGN TOKENS
   Modifica qui colori, spaziature, tipografia e larghezze globali.
   ================================================================ */
:root {
    /* Colori */
    --blue-900: #001225;
    --blue-800: #00254a;
    --blue-500: #005cb9;
    --blue-100: #ccdef1;
    --blue-50: #f3f7fc;
    --red-500: #e1251b;
    --red-50: #fdf2f1;
    --white: #ffffff;

    /* Raggi */
    --radius-sm: 6px;
    --radius-md: 11px;
    --radius-pill: 999px;
    --radius: var(--radius-md);

    /* Spaziature */
    --space-1px: 1px;
    --space-2px: 2px;
    --space-3px: 3px;
    --space-4px: 4px;
    --space-5px: 5px;
    --space-2xs: 6px;
    --space-7px: 7px;
    --space-xs: 8px;
    --space-10px: 10px;
    --space-sm: 11px;
    --space-12px: 12px;
    --space-13px: 13px;
    --space-14px: 14px;
    --space-16px: 16px;
    --space-md: 17px;
    --space-18px: 18px;
    --space-20px: 20px;
    --space-lg: 22px;
    --space-24px: 24px;
    --space-26px: 26px;
    --space-28px: 28px;
    --space-30px: 30px;
    --space-32px: 32px;
    --space-xl: 33px;
    --space-38px: 38px;
    --space-40px: 40px;
    --space-42px: 42px;
    --space-2xl: 44px;
    --space-48px: 48px;
    --space-50px: 50px;
    --space-52px: 52px;
    --space-54px: 54px;
    --space-56px: 56px;
    --space-64px: 64px;
    --space-3xl: 66px;
    --space-72px: 72px;
    --space-4xl: 88px;
    --space-5xl: 132px;
    --space-6xl: 154px;

    /* Ritmo verticale tra i blocchi principali */
    --section-gap: var(--space-5xl);

    /* Tipografia */
    --font-xs: 13px;
    --font-sm: 14px;
    --font-small: 15px;
    --font-copy: 17px;
    --font-base: 17.6px;
    --font-body: 18px;
    --font-control: 20px;
    --font-subtitle: 21px;
    --font-md: 22px;
    --font-lg: 27.5px;
    --font-mobile-lg: 28px;
    --font-xl: 34px;
    --font-2xl: 42px;
    --font-3xl: 54px;
    --font-mobile-display: 46px;
    --font-display: 67px;
    --font-icon: 30px;
    --font-error: 84px;
    --font-error-mobile: 68px;
    --font-tablet-display: 56px;
    --font-mobile-title: 44px;
    --font-mobile-cta-title: 40px;
    --font-mobile-cta-copy: 19px;
    --font-mobile-form-subtitle: 24px;
    --font-mobile-step-label: 10px;
    --font-mobile-step-number: 16px;
    --font-hero-title: 84px;
    --font-hero-copy: 43px;
    --font-section-title: var(--font-display);
    --font-section-copy: var(--font-xl);
    --a11y-font-scale: 112.5%;
    --line-tight: 1;
    --line-heading: 1.2;
    --line-body: 1.45;
    --line-relaxed: 1.6;

    /* Contenitori */
    --page-gutter: var(--space-2xl);
    --content-xs: 540px;
    --content-sm: 608px;
    --content-md: 748px;
    --content-lg: 896px;
    --content-xl: 1144px;
    --content-max: 1540px;
    --page-max: 1628px;
}

/* ================================================================
   BASE
   ================================================================ */
* {
    box-sizing: border-box;
    scroll-margin-top: var(--section-gap);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--white);
    color: var(--blue-800);
    font-family: "Albert Sans", Arial, Helvetica, sans-serif;
}

a {
    color: inherit;
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
}

img {
    max-width: 100%;
}

button,
input,
textarea,
select {
    font: inherit;
}

input.readonly,
textarea.readonly,
select.readonly,
label:has(input.readonly) {
    pointer-events: none;
}

input:focus,
textarea:focus,
select:focus {
    outline: none !important;
    border-color: var(--blue-500) !important;
}

button {
    color: inherit;
}

.site-shell {
    width: min(100%, var(--page-max));
    margin: 0 auto;
    padding: var(--page-gutter);
}

div.dt-container .dt-input {
    font-size: var(--font-xs);
}

.dt-search .button {
    font-size: var(--font-xs);
    padding: 8px;
}

.dataTable .button {
    display: inline-block;
    font-size: 1em;
    padding: 8px;
    background-color: var(--blue-500);
    color: var(--white);
}

.dataTable .actions-column {
    width: 0 !important;
    white-space: nowrap;
}

table.dataTable th.dt-type-numeric div.dt-column-header, table.dataTable th.dt-type-numeric div.dt-column-footer, table.dataTable th.dt-type-date div.dt-column-header, table.dataTable th.dt-type-date div.dt-column-footer, table.dataTable td.dt-type-numeric div.dt-column-header, table.dataTable td.dt-type-numeric div.dt-column-footer, table.dataTable td.dt-type-date div.dt-column-header, table.dataTable td.dt-type-date div.dt-column-footer{
    flex-direction: initial;
}

table.dataTable th.dt-type-numeric, table.dataTable th.dt-type-date, table.dataTable td.dt-type-numeric, table.dataTable td.dt-type-date {
    text-align: initial;
}

/* ================================================================
   HEADER E NAVIGAZIONE
   ================================================================ */
.site-header {
    padding: var(--space-lg) var(--space-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--blue-50);
    border: 1px solid var(--blue-100);
    border-radius: var(--radius);
    box-shadow: 0 0 0.5px #99bee3;
}

.brand-logo {
    display: block;
    width: 212px;
    height: auto;
    object-fit: contain;
}

.header-links {
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
    padding: 0 var(--space-md);
}

.login-link {
    display: inline-flex;
    align-items: center;
    gap: .5em;
    color: var(--blue-500);
    font-size: var(--font-md);
    line-height: var(--line-heading);
    text-decoration: none;
}

.login-link img {
    width: 1em;
    height: 1em;
    object-fit: contain;
}

.section-intro-admin {
    margin: var(--space-xl) 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
}

.section-intro-admin h2 {
    margin: 0;
    color: var(--blue-500);
    font-size: var(--font-xl);
}

.admin-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.admin-buttons .button.active {
    color: var(--red-500);
    background-color: var(--white);
    pointer-events: none;
}

/* ================================================================
   HOME: HERO
   ================================================================ */
.hero {
    position: relative;
    margin-top: var(--space-3xl);
    padding: var(--space-6xl) var(--space-5xl);
    display: flex;
    align-items: flex-start;
    overflow: hidden;
    background: var(--blue-500);
    border-radius: var(--radius);
    color: var(--white);
}

.hero-copy {
    position: relative;
    z-index: 2;
    max-width: 930px;
}

.hero h1 {
    margin: 0;
    font-size: var(--font-hero-title);
    line-height: var(--line-tight);
}

.hero p {
    max-width: 735px;
    margin: var(--space-sm) 0 var(--space-xl);
    color: var(--blue-50);
    font-size: var(--font-hero-copy);
    line-height: var(--line-heading);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5em;
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-sm);
    font-size: var(--font-lg);
    line-height: var(--line-heading);
    text-decoration: none;
    border: 0;
    cursor: pointer;
}

.button>img {
    width: 1em;
    height: 1em;
    object-fit: contain;
}

.button-light {
    background: var(--white);
    color: var(--blue-500);
}

.hero-art {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.bubble-large {
    position: absolute;
    top: 147px;
    right: 34px;
    width: 341px;
    height: auto;
}

.bubble-small {
    position: absolute;
    top: 301px;
    right: 308px;
    width: 186px;
    height: auto;
    transform: scaleX(-1);
}

.hero-scribble {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 162px;
    height: auto;
    transform: rotate(-178deg);
}

.page-frame {
    position: relative;
    padding: var(--page-gutter);
}

section {
    width: min(100%, var(--page-max));
    margin: 0 auto;
}

section.full-bleed-background {
    width: initial;
}

/* ================================================================
   HOME: SEZIONI CONDIVISE
   ================================================================ */
.section-intro {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.section-intro h2,
.section-intro p {
    margin: 0;
}

.section-intro h2 {
    color: var(--blue-500);
    font-size: var(--font-3xl);
    line-height: var(--line-tight);
}

.section-intro p {
    color: var(--blue-800);
    font-size: var(--font-section-copy);
    line-height: var(--line-heading);
}

.section-intro-centered {
    align-items: center;
    text-align: center;
}

.lined-title>h2::before {
    content: "";
    width: 1.5em;
    height: .1em;
    display: block;
    margin-bottom: .5em;
    background: var(--red-500);
}

.lined-title.section-intro-centered>h2::before {
    margin-inline: auto;
}

.benefits-section {
    margin-top: var(--section-gap);
}

.benefit-text {
    max-width: var(--content-xl);
    margin: auto;
}

.benefit-grid {
    width: min(100%, var(--content-xl));
    margin: var(--space-2xl) auto 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
}

.benefit-card {
    padding: var(--space-xl);
    background: var(--blue-50);
    border: 1px solid #337dc7;
    border-radius: var(--radius);
}

.benefit-card>img {
    width: 65px;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
}

.benefit-card h3 {
    margin: var(--space-xl) 0 var(--space-md);
    color: var(--blue-800);
    font-size: var(--font-xl);
    line-height: var(--line-heading);
}

.benefit-card p {
    margin: 0;
    font-size: var(--font-md);
    line-height: var(--line-heading);
}

.pricing-section {
    width: min(100%, var(--content-xl));
    margin: var(--section-gap) auto;
    text-align: center;
    overflow: hidden;
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2xl);
    margin-top: var(--space-2xl);
    text-align: left;
}

.price-card {
    position: relative;
    padding: var(--space-3xl) var(--space-2xl);
    overflow: visible;
    border-radius: var(--radius);
}

.price-card-blue {
    background: var(--blue-800);
    color: var(--white);
}

.price-card-red {
    background: var(--red-50);
    color: #5a0f0b;
}

.price-card .eyebrow {
    display: block;
    margin-bottom: var(--space-32px);
    font-size: var(--font-base);
    font-weight: 800;
}

.price {
    display: flex;
    align-items: baseline;
    column-gap: var(--space-10px);
}

.price strong {
    font-size: var(--font-2xl);
    line-height: var(--line-tight);
}

.price span {
    font-size: var(--font-subtitle);
}

.price-card p {
    max-width: 462px;
    margin: var(--space-md) 0 0;
    font-size: var(--font-copy);
    line-height: var(--line-body);
}

.price-scribble {
    position: absolute;
    top: -42px;
    right: -20px;
    width: 123px;
    height: auto;
    object-fit: contain;
}

.pricing-section>.button {
    margin-top: var(--space-2xl);
}

.button-primary {
    background: var(--blue-500);
    color: var(--white);
    border: 1px solid var(--blue-500);
}

.button-danger {
    background: var(--red-500);
    color: var(--white);
    border: 1px solid var(--red-500);
}

.button-compact {
    padding: var(--space-sm) var(--space-md);
    font-size: var(--font-base);
}

.button-block {
    width: 100%;
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--font-base);
}

.button:hover,
.button:focus-visible,
.chat-launcher:hover {
    filter: brightness(.94);
}

.full-bleed-background {
    background: var(--section-background, transparent);
    box-shadow: 0 0 0 100vmax var(--section-background, transparent);
    clip-path: inset(0 -100vmax);
}

.process-section {
    --section-background: var(--red-50);
    margin-inline: calc(var(--page-gutter) * -1);
    padding: var(--space-4xl);
}

.process-section .section-intro {
    width: min(100%, var(--content-xl));
    margin-inline: auto;
}

.process-grid {
    width: min(100%, var(--content-xl));
    margin: var(--space-4xl) auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2xl);
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #871610;
}

.process-step>img {
    width: 92px;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
}

.process-step>span {
    margin-top: var(--space-2xl);
    padding: var(--space-2xs) var(--space-lg);
    color: var(--white);
    background: var(--red-500);
    border-radius: var(--radius-pill);
    font-size: var(--font-base);
    font-weight: 800;
}

.process-step h3 {
    margin: var(--space-md) 0 var(--space-2xs);
    color: #5a0f0b;
    font-size: var(--font-xl);
    line-height: var(--line-heading);
}

.process-step p {
    max-width: 320px;
    margin: 0;
    font-size: var(--font-control);
    line-height: var(--line-heading);
}

.home-cta {
    position: relative;
    margin-top: var(--section-gap);
    padding: var(--space-6xl) var(--space-5xl);
    overflow: hidden;
    color: var(--white);
    background: var(--blue-500);
    border-radius: var(--radius);
}

.cta-copy {
    position: relative;
    z-index: 2;
    max-width: 930px;
}

.cta-copy h2 {
    margin: 0;
    font-size: var(--font-3xl);
    line-height: var(--line-heading);
}

.cta-copy p,
.cta-copy ul {
    font-size: var(--font-lg);
    line-height: var(--line-relaxed);
}

.cta-copy p {
    margin: var(--space-sm) 0 0;
}

.cta-copy ul {
    margin: 0 0 var(--space-xl);
    padding-left: var(--font-xl);
}

.cta-copy li::marker {
    color: #ffdc5d;
}

.cta-art {
    position: absolute;
    inset: 0;
}

.cta-bubble-large {
    position: absolute;
    top: 163px;
    right: 154px;
    width: 306px;
    height: auto;
    transform: scaleX(-1);
}

.cta-bubble-small {
    position: absolute;
    top: 434px;
    right: 33px;
    width: 183px;
    height: auto;
}

.cta-scribble {
    position: absolute;
    top: 321px;
    right: 335px;
    width: 204px;
    height: auto;
    transform: rotate(-58deg);
}

/* ================================================================
   FOOTER E STRUMENTI FLOTTANTI
   ================================================================ */
.site-footer {
    position: relative;
    margin-top: var(--section-gap);
    padding: var(--space-xl) var(--space-5xl);
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: var(--space-3xl) var(--space-2xl);
    color: var(--white);
    background: var(--blue-900);
    border: 1px solid var(--blue-800);
    border-radius: var(--radius);
    box-shadow: 0 0 1px rgba(0, 18, 37, .7);
}

.footer-brand {
    position: relative;
    width: 250px;
    height: auto;
    display: flex;
    align-items: flex-start;
}

.acli-mark {
    width: 100%;
    height: auto;
}

.footer-phone {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: var(--font-md);
    white-space: nowrap;
}

.footer-phone a {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-weight: 400;
}

.footer-phone img {
    width: 20px;
    height: 24px;
    margin-right: var(--space-4px);
}

.footer-links {
    grid-column: span 2;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-12px) var(--space-xl);
    width: 100%;
    font-size: var(--font-base);
}

.footer-links a {
    text-decoration: none;
}

.floating-tools {
    position: sticky;
    z-index: 30;
    left: 0;
    bottom: var(--space-2xl);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    pointer-events: none;
    margin-top: var(--space-md);
}

.accessibility-button,
.chat-launcher {
    pointer-events: auto;
    cursor: pointer;
    border: 0;
}

.accessibility-button {
    width: 59px;
    height: 59px;
    padding: 0;
    background: transparent;
    border-radius: 50%;
}

.accessibility-button img {
    display: block;
    width: 100%;
    height: 100%;
}

.chat-launcher {
    padding: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--white);
    background: var(--red-500);
    border-radius: var(--radius);
    box-shadow: 0 0 0.5px #99bee3;
    font: inherit;
    font-size: var(--font-base);
    font-weight: 800;
}

.chat-launcher img {
    width: 21px;
    height: 25px;
}

.chat-backdrop {
    position: fixed;
    z-index: 100;
    inset: 0;
    display: flex;
    justify-content: flex-end;
    background: rgba(0, 18, 37, .43);
}

.chat-panel {
    width: min(100%, var(--content-xs));
    height: 100%;
    padding: var(--space-32px);
    display: flex;
    flex-direction: column;
    background: var(--white);
    box-shadow: -16px 0 60px rgba(0, 18, 37, .2);
}

.chat-panel header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.chat-panel h2 {
    margin: var(--space-2xs) 0 0;
    color: var(--blue-500);
    font-size: var(--font-xl);
}

.eyebrow {
    font-size: var(--font-sm);
    font-weight: 800;
}

.icon-button {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    color: var(--blue-500);
    background: var(--blue-50);
    font-size: var(--font-icon);
    cursor: pointer;
}

.chat-content {
    flex: 1;
    padding: var(--space-40px) 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-16px);
    overflow-y: auto;
}

.chat-message {
    max-width: 84%;
    padding: var(--space-16px) var(--space-18px);
    border-radius: 16px;
    line-height: var(--line-body);
}

.chat-message-agent {
    background: var(--blue-50);
    align-self: flex-start;
}

.chat-message-user {
    background: var(--blue-500);
    color: var(--white);
    align-self: flex-end;
}

.chat-form {
    display: flex;
    gap: var(--space-10px);
    padding-top: var(--space-18px);
    border-top: 1px solid var(--blue-100);
}

.chat-form input {
    flex: 1;
    min-width: 0;
    padding: var(--space-12px) var(--space-14px);
    border: 1px solid #b7c0ca;
    border-radius: var(--radius-sm);
    font: inherit;
}

/* ================================================================
   MODAL
   ================================================================ */

.modal {
    position: fixed;
    z-index: 1000;
    inset: 0;

    display: grid;
    place-items: center;

    padding: var(--space-2xl);
    background: rgba(0, 18, 37, 0.58);
    backdrop-filter: blur(3px);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 180ms ease,
        visibility 180ms ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* La seconda modal appare sopra quella principale */
#modal-overlay {
    z-index: 1100;
    background: rgba(0, 18, 37, 0.72);
    backdrop-filter: blur(6px);
}

.modal-container {
    width: min(100%, 720px);
    max-height: calc(100dvh - (var(--space-2xl) * 2));

    display: flex;
    flex-direction: column;

    overflow: hidden;
    color: var(--blue-900);
    background: var(--white);

    border: 1px solid var(--blue-100);
    border-radius: var(--radius-md);
    box-shadow: 0 24px 70px rgba(0, 18, 37, 0.28);

    transform: translateY(18px) scale(0.98);
    transition: transform 180ms ease;
}

.modal.show .modal-container {
    transform: translateY(0) scale(1);
}

.modal.small .modal-container {
    width: min(100%, 500px);
}

/* Header */

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-lg);
    padding: var(--space-md);
    background: var(--blue-50);
    border-bottom: 1px solid var(--blue-100);
}

.modal-title {
    margin: 0;
    color: var(--blue-500);
    font-size: var(--font-xl);
    line-height: var(--line-heading);
}

.modal-header .close {
    position: relative;
    flex: 0 0 auto;

    width: 44px;
    height: 44px;
    padding: 0;

    background: var(--white);
    border: 1px solid var(--blue-100);
    border-radius: 50%;

    cursor: pointer;

    transition:
        background-color 150ms ease,
        border-color 150ms ease,
        transform 150ms ease;
}

/* Le due linee che formano la X */

.modal-header .close::before,
.modal-header .close::after {
    content: "";

    position: absolute;
    top: 50%;
    left: 50%;

    width: 21px;
    height: 3px;

    background: var(--blue-500);
    border-radius: var(--radius-pill);

    transition: background-color 150ms ease;
}

.modal-header .close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.modal-header .close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.modal-header .close:hover {
    background: var(--red-500);
    border-color: var(--red-500);
    transform: rotate(4deg);
}

.modal-header .close:hover::before,
.modal-header .close:hover::after {
    background: var(--white);
}

.modal-header .close:focus-visible {
    outline: 3px solid rgba(0, 92, 185, 0.25);
    outline-offset: 3px;
}

/* Contenuto */

.modal-content {
    padding: var(--space-md);

    overflow-y: auto;
    overscroll-behavior: contain;

    color: var(--blue-800);
}

.modal-content> :first-child {
    margin-top: 0;
}

.modal-content> :last-child {
    margin-bottom: 0;
}

/* Footer e pulsanti */

.modal-buttons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--white);
    border-top: 1px solid var(--blue-100);
}

.modal-buttons:empty {
    display: none;
}

/* Form */

.modal-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.modal-form.full {
    grid-template-columns: 1fr;
}

.modal-form .check-line {
    margin-top: 0;
}

.modal-form-textarea {
    grid-column: 2;
    grid-row: 1 / span 4;
}

.modal-form-textarea .form-field {
    height: 100%;
}

.modal-form-textarea .form-field textarea {
    flex-grow: 1;
}

/* ================================================================
   LOADING
   ================================================================ */

#loading {
    position: fixed;
    z-index: 1200;
    inset: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);

    color: var(--white);
    background: rgba(0, 18, 37, 0.74);
    backdrop-filter: blur(5px);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 160ms ease,
        visibility 160ms ease;
}

#loading.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#loading::before {
    content: "";

    width: 58px;
    height: 58px;

    border: 5px solid rgba(255, 255, 255, 0.28);
    border-top-color: var(--white);
    border-right-color: var(--red-500);
    border-radius: 50%;

    animation: modus-loading 750ms linear infinite;
}

#loading::after {
    content: "Caricamento…";

    font-size: var(--font-body);
    font-weight: 700;
}

@keyframes modus-loading {
    to {
        transform: rotate(360deg);
    }
}

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

@media (max-width: 700px) {
    .modal {
        padding: var(--space-lg);
    }

    .modal-container {
        max-height: calc(100dvh - (var(--space-lg) * 2));
    }

    .modal-header,
    .modal-content {
        padding: var(--space-xl);
    }

    .modal-buttons {
        padding: var(--space-lg) var(--space-xl);
    }

    .modal-title {
        font-size: var(--font-mobile-lg);
    }
}

@media (max-width: 560px) {
    .modal {
        padding: var(--space-10px);
        align-items: end;
    }

    .modal-container,
    .modal.small .modal-container {
        width: 100%;
        max-height: calc(100dvh - var(--space-20px));
    }

    .modal-header,
    .modal-content {
        padding: var(--space-lg);
    }

    .modal-buttons {
        padding: var(--space-lg);
    }

    .modal-buttons .button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {

    .modal,
    .modal-container,
    #loading {
        transition: none;
    }

    #loading::before {
        animation-duration: 1500ms;
    }
}

/* ================================================================
   PAGINE DI ACCESSO E FORM
   ================================================================ */
.auth-page,
.profile-page,
.enrollment-page,
.not-found-page {
    display: flex;
    flex-direction: column;
}

.auth-main {
    flex: 1;
    display: grid;
    place-items: start center;
    margin-top: var(--space-3xl);
    padding-left: var(--space-24px);
    padding-right: var(--space-24px);
}

.auth-card {
    width: min(100%, var(--content-sm));
    text-align: center;
}

.auth-card h1 {
    margin: 0 0 var(--space-3xl);
    color: var(--blue-500);
    font-size: var(--font-display);
    line-height: var(--line-tight);
}

.auth-card p {
    margin: var(--space-lg) 0 0;
    font-size: var(--font-body);
    line-height: var(--line-body);
}

.auth-card p a {
    color: var(--blue-500);
}

.auth-form {
    display: grid;
    gap: var(--space-lg);
    text-align: left;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    min-width: 0;
    font-weight: 750;
    color: var(--blue-900);
}

.form-field small {
    margin-top: calc(var(--space-3px) * -1);
    font-size: var(--font-xs);
    font-weight: 400;
}

.form-field input,
.form-field textarea,
.form-field-switch {
    width: 100%;
    padding: var(--space-13px) var(--space-16px);
    border: 1px solid #c6c6c6;
    border-radius: var(--radius-md);
    color: var(--blue-900);
    background: var(--white);
    font: inherit;
    font-weight: 400;
}

.profile-main {
    flex: 1;
    width: min(100%, var(--content-md));
    margin: 0 auto;
    margin-top: var(--space-3xl);
}

.profile-main>h1 {
    margin: 0 0 var(--space-3xl);
    color: var(--blue-500);
    font-size: var(--font-display);
    line-height: var(--line-tight);
    text-align: center;
}

.profile-summary {
    display: grid;
    grid-template-columns: 1.05fr 1.22fr 1.22fr;
    gap: var(--space-12px);
    margin: 0 var(--space-2xs) var(--space-xl);
}

.profile-summary div {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xs);
    font-size: var(--font-small);
}

.profile-summary strong {
    color: var(--blue-500);
    font-size: var(--font-body);
}

.data-card {
    padding: var(--space-2xl);
    color: var(--blue-900);
    background: var(--blue-50);
    border: 1px solid var(--blue-500);
    border-radius: var(--radius);
}

.data-card h2 {
    margin: 0 0 var(--space-lg);
    padding-bottom: var(--space-lg);
    color: var(--blue-500);
    border-bottom: 1px solid #dfe6ed;
    font-size: var(--font-xl);
}

.data-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-lg) var(--space-40px);
}

.data-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xs);
    font-size: var(--font-copy);
}

.data-item.column-span-2 {
    grid-column: span 2;
}

.payment-data {
    margin-top: var(--space-lg);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-7px);
    font-size: var(--font-copy);
}

.data-grid .check-line {
    margin-top: 0 !important;
}

.check-line {
    margin-top: var(--space-26px);
    display: flex;
    align-items: flex-start;
    gap: .5em;
}

.check-line input {
    appearance: none;
    -webkit-appearance: none;
    flex: 0 0 auto;
    margin: 0;
    width: 18px;
    height: 18px;
    border: 1px solid var(--blue-500);
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    position: relative;
}

.check-line input:checked {
    background-color: var(--blue-500);
    border-color: var(--blue-500);
}

.check-line input:checked::after {
    content: "";
    position: absolute;
    width: 4px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    left: 5px;
    top: 1px;
    transform: rotate(45deg);
}

.check-line span {
    display: flex;
    flex-direction: column;
    gap: var(--space-3px);
}

.check-line small {
    color: #637083;
    font-weight: 400;
}

.profile-state-link {
    display: block;
    margin-top: var(--space-24px);
    text-align: center;
}

.pending-profile>h1 {
    margin-bottom: var(--space-5xl);
}

.pending-banner {
    margin: calc(var(--space-12px) * -1) 0 var(--space-lg);
    padding: var(--space-xl) var(--space-2xl);
    display: flex;
    align-items: center;
    gap: var(--space-28px);
    color: #8e160f;
    background: var(--red-50);
    border-radius: var(--radius);
}

.pending-banner img {
    width: 55px;
    height: 55px;
    object-fit: contain;
}

.pending-banner div {
    display: flex;
    flex-direction: column;
    gap: var(--space-7px);
}

.pending-banner strong {
    font-size: var(--font-subtitle);
}

/* ================================================================
   PERCORSO DI ADESIONE
   ================================================================ */
.enrollment-main {
    flex: 1;
    width: min(100%, var(--content-xl));
    margin: 0 auto;
    margin-top: var(--space-3xl);
}

.stepper {
    --progress: 0%;
    position: relative;
    margin: 0 0 var(--space-3xl);
    padding: 0;
    display: flex;
    justify-content: space-between;
    list-style: none;
}

.stepper::before,
.stepper::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: 31px;
    left: 0;
    height: 4px;
    border-radius: var(--radius-pill);
}

.stepper::before {
    width: 100%;
    background: #dfdfdf;
}

.stepper::after {
    width: var(--progress);
    background: var(--blue-500);
}

.stepper li {
    width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    color: #a4a4a4;
    text-align: center;
}

.stepper li>span {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid #d6d6d6;
    border-radius: 50%;
    background: var(--white);
    font-size: var(--font-control);
}

.stepper li.active {
    color: var(--blue-500);
    font-weight: 800;
}

.stepper li.active>span {
    color: var(--white);
    background: var(--blue-500);
    border-color: var(--blue-500);
}

.stepper small {
    font-size: var(--font-sm);
    white-space: nowrap;
}

.enrollment-intro {
    text-align: center;
}

.enrollment-intro h1 {
    margin: 0;
    color: var(--blue-500);
    font-size: var(--font-display);
    line-height: var(--line-tight);
}

.enrollment-intro p {
    margin: var(--space-sm) 0 0;
    font-size: var(--font-xl);
    line-height: var(--line-heading);
}

.enrollment-form,
.verify-form {
    width: min(100%, var(--content-md));
    margin: var(--space-3xl) auto 0;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-lg);
}

.field-full {
    grid-column: 1 / -1;
}

.convention-box {
    margin: var(--space-lg) 0;
    padding: var(--space-28px) var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--blue-50);
    border-radius: var(--radius-sm);
}

.convention-box h2 {
    margin: 0 0 var(--space-xs);
    color: var(--blue-500);
    font-size: var(--font-control);
}

.convention-box strong {
    display: block;
    margin-bottom: var(--space-5px);
}

.convention-box p {
    max-width: 600px;
    margin: 0;
    font-size: var(--font-xs);
}

.switch-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-24px);
    color: var(--blue-900);
    font-size: var(--font-small);
    font-weight: 750;
}

.switch-line input {
    appearance: none;
    flex: 0 0 auto;
    width: 40px;
    height: 24px;
    padding: var(--space-2px);
    border-radius: var(--radius-pill);
    background: #b8c2cc;
    cursor: pointer;
    transition: background .2s;
}

.switch-line input::before {
    content: "";
    display: block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .18);
    transition: transform .2s;
}

.switch-line input:checked {
    background: var(--blue-500);
}

.switch-line input:checked::before {
    transform: translateX(16px);
}

.terms-line small {
    text-decoration: underline;
}

.form-actions {
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #dfe3e8;
}

.text-link {
    color: var(--blue-800);
    text-decoration: none;
}

.text-link:hover {
    color: var(--blue-500);
    text-decoration: underline;
}

.text-button {
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.token-box {
    margin-bottom: var(--space-xl);
}

.token-box .check-line {
    margin-top: var(--space-lg);
}

.data-card-signin .switch-container {
    margin-top: var(--space-26px);
}

.confirmation {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.confirmation>img {
    width: 120px;
    height: 124px;
    margin-bottom: var(--space-32px);
}

.confirmation h1 {
    margin: 0;
    color: var(--blue-500);
    font-size: var(--font-display);
    line-height: var(--line-tight);
}

.confirmation p {
    margin: var(--space-xs) 0 0;
    font-size: var(--font-xl);
    line-height: var(--line-heading);
}

.confirmation .button {
    margin-top: var(--space-xl);
}

/* ================================================================
   PAGINA 404
   ================================================================ */
.not-found-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4xl);
    max-width: var(--content-lg);
    margin: auto;
    margin-top: var(--space-3xl);
}

.error-scribble {
    width: 190px;
    height: 190px;
    object-fit: contain;
}

.not-found-main section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.error-line {
    width: 88px;
    height: 6px;
    margin-bottom: var(--space-lg);
}

.not-found-main h1 {
    margin: 0;
    color: var(--blue-500);
    font-size: var(--font-error);
    line-height: var(--line-tight);
}

.not-found-main p {
    margin: var(--space-lg) 0;
    color: var(--blue-900);
    font-size: var(--font-mobile-lg);
    font-weight: 800;
    line-height: var(--line-heading);
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: calc(var(--space-1px) * -1) !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

body.a11y-enhanced {
    font-size: var(--a11y-font-scale);
}

.privacy-container {
    width: min(100%, var(--content-lg));
    margin: 0 auto;
    margin-top: var(--space-3xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.privacy-container h1 {
    color: var(--blue-500);
    font-size: var(--font-3xl);
    line-height: var(--line-tight);
    margin-bottom: var(--space-xl);
}

.privacy-container h2,
.privacy-container p,
.privacy-container ol {
    margin: 0;
}

.privacy-container p {
    color: var(--blue-800);
}

body .asw-menu-btn,
body .wx-widget-bubble {
    display: none !important;
}

/* ================================================================
   RESPONSIVE: DESKTOP COMPATTO
   Testo e illustrazioni occupano colonne separate.
   ================================================================ */
@media (max-width: 1500px) {
    :root {
        --page-gutter: var(--space-28px);
        --font-hero-title: 70px;
        --font-hero-copy: 36px;
        --font-section-title: 60px;
        --font-section-copy: 30px;
    }

    .hero,
    .home-cta {
        padding: var(--space-4xl) var(--space-3xl);
    }

    .hero-copy,
    .cta-copy {
        max-width: 620px;
    }
}

/* ================================================================
   RESPONSIVE: LAPTOP
   Le illustrazioni vengono ridotte mantenendo una colonna riservata.
   ================================================================ */
@media (max-width: 1250px) {
    :root {
        --page-gutter: var(--space-lg);
        --font-hero-title: 60px;
        --font-hero-copy: 32px;
        --font-section-title: 54px;
        --font-section-copy: 28px;
    }

    .hero,
    .home-cta {
        padding: var(--space-3xl) var(--space-2xl);
    }

    .hero-copy,
    .cta-copy {
        max-width: 526px;
    }

    .bubble-large {
        top: 160px;
        right: var(--space-lg);
        width: 280px;
    }

    .bubble-small {
        top: 300px;
        right: 250px;
        width: 150px;
    }

    .hero-scribble {
        width: 130px;
    }

    .cta-bubble-large {
        top: 190px;
        right: 112px;
        width: 245px;
    }

    .cta-bubble-small {
        top: 430px;
        right: var(--space-20px);
        width: 145px;
    }

    .cta-scribble {
        top: 330px;
        right: 230px;
        width: 170px;
    }
}

/* ================================================================
   RESPONSIVE: TABLET ORIZZONTALE
   Le illustrazioni passano sotto il testo.
   ================================================================ */
@media (max-width: 1000px) {
    :root {
        --page-gutter: var(--space-18px);
        --font-hero-title: 52px;
        --font-hero-copy: 28px;
        --font-section-title: 48px;
        --font-section-copy: 25px;
    }

    .hero-copy,
    .cta-copy {
        max-width: 100%;
    }

    .hero {
        padding-bottom: 368px;
    }

    .hero p {
        max-width: 760px;
    }

    .bubble-large {
        top: auto;
        right: var(--space-lg);
        bottom: var(--space-32px);
        width: 250px;
    }

    .bubble-small {
        top: auto;
        right: 230px;
        bottom: var(--space-56px);
        width: 135px;
    }

    .hero-scribble {
        right: initial;
        left: 40px;
        bottom: initial;
        top: calc(100% + var(--space-20px));
        width: 120px;
        transform: rotate(-90deg);
    }

    .home-cta {
        padding-bottom: 400px;
    }

    .cta-bubble-large {
        top: auto;
        right: 96px;
        bottom: 94px;
        width: 235px;
    }

    .cta-bubble-small {
        top: auto;
        right: var(--space-14px);
        bottom: var(--space-14px);
        width: 135px;
    }

    .cta-scribble {
        top: auto;
        right: 240px;
        bottom: 80px;
        width: 165px;
    }

    .site-footer {
        gap: var(--space-28px);
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-column: auto;
    }
}

/* ================================================================
   RESPONSIVE: TABLET
   ================================================================ */
@media (max-width: 900px) {
    :root {
        --page-gutter: var(--space-14px);
        --section-gap: var(--space-4xl);
        --font-hero-title: 50px;
        --font-hero-copy: 28px;
        --font-section-title: 46px;
        --font-section-copy: 24px;
    }

    .site-header {
        padding: var(--space-14px) var(--space-18px);
    }

    .brand-logo {
        width: 155px;
        height: auto;
    }

    .header-links {
        gap: var(--space-xl);
    }

    .header-links .button {
        font-size: var(--font-xs);
    }

    .login-link {
        font-size: var(--font-body);
    }

    .hero {
        margin-top: var(--space-32px);
        padding-top: var(--space-64px);
        padding-inline: var(--space-48px);
        padding-bottom: 340px;
    }

    .hero-copy {
        max-width: 100%;
    }

    .hero h1 {
        font-size: var(--font-hero-title);
    }

    .hero p {
        max-width: 100%;
        font-size: var(--font-hero-copy);
    }

    .bubble-large {
        top: auto;
        right: 22px;
        bottom: 32px;
        width: 230px;
        height: auto;
    }

    .bubble-small {
        top: auto;
        right: 210px;
        bottom: 56px;
        width: 125px;
        height: auto;
    }

    .hero-scribble {
        width: 110px;
        height: auto;
    }

    .benefits-section {
        margin-top: var(--section-gap);
    }

    .benefit-grid {
        gap: var(--space-lg);
    }

    .benefit-card {
        padding: var(--space-28px);
    }

    .benefit-card h3 {
        font-size: var(--font-mobile-lg);
    }

    .pricing-section {
        margin-block: var(--section-gap);
    }

    .price-grid {
        gap: var(--space-lg);
    }

    .price-card {
        padding: var(--space-50px) var(--space-28px);
    }

    .price {
        flex-direction: column;
    }

    .process-section {
        padding-block: var(--space-3xl);
    }

    .process-grid {
        gap: var(--space-lg);
    }

    .process-step p {
        font-size: var(--font-body);
    }

    .home-cta {
        margin-top: var(--section-gap);
        padding-top: var(--space-4xl);
        padding-inline: var(--space-3xl);
    }

    .cta-copy {
        max-width: 100%;
    }

    .cta-copy h2 {
        font-size: var(--font-mobile-display);
    }

    .cta-copy p,
    .cta-copy ul {
        font-size: var(--font-md);
    }

    .cta-scribble {
        right: 220px;
    }

    .site-footer {
        padding: var(--space-xl) var(--space-2xl);
    }

    .profile-main>h1,
    .pending-profile>h1 {
        margin-bottom: var(--space-4xl);
    }

    .enrollment-intro h1,
    .confirmation h1,
    .profile-main>h1,
    .auth-card h1 {
        font-size: var(--font-tablet-display);
    }

    .not-found-main {
        gap: var(--space-2xl);
    }

    .section-intro-admin {
        flex-direction: column;
    }

    .admin-buttons .button {
        padding: var(--space-5px) var(--space-7px);
        font-size: var(--font-sm);
    }
}

/* ================================================================
   RESPONSIVE: TABLET VERTICALE
   Riduce la zona grafica mantenendola sotto il contenuto.
   ================================================================ */
@media (max-width: 700px) {
    :root {
        --page-gutter: var(--space-12px);
        --font-hero-title: 46px;
        --font-hero-copy: 26px;
        --font-section-title: 42px;
        --font-section-copy: 23px;
    }

    .header-links .username,
    .login-link .text {
        display: none;
    }

    .hero {
        padding-top: var(--space-56px);
        padding-inline: var(--space-32px);
        padding-bottom: 298px;
    }

    .bubble-large {
        right: var(--space-18px);
        bottom: var(--space-24px);
        width: 205px;
    }

    .bubble-small {
        right: 185px;
        bottom: var(--space-48px);
        width: 110px;
    }

    .hero-scribble {
        right: 270px;
        width: 95px;
    }

    .home-cta {
        padding-top: var(--space-56px);
        padding-inline: var(--space-32px);
        padding-bottom: 350px;
    }

    .cta-bubble-large {
        right: 81px;
        bottom: 80px;
        width: 205px;
    }

    .cta-bubble-small {
        width: 118px;
    }

    .cta-scribble {
        right: 205px;
        bottom: var(--space-10px);
        width: 145px;
    }
}

/* ================================================================
   RESPONSIVE: MOBILE
   ================================================================ */
@media (max-width: 560px) {
    :root {
        --page-gutter: var(--space-10px);
        --section-gap: var(--space-72px);
        --font-hero-title: 44px;
        --font-hero-copy: 25px;
        --font-section-title: 38px;
        --font-section-copy: 21px;
    }

    .site-shell,
    .page-frame {
        padding: var(--space-10px);
    }

    .brand-logo {
        width: 126px;
    }

    .header-links {
        gap: var(--space-lg);
    }

    .header-links .button {
        padding: var(--space-10px) var(--space-13px);
    }

    .login-link {
        font-size: var(--font-mobile-step-number);
    }

    .hero {
        margin-top: var(--space-20px);
        padding-top: var(--space-48px);
        padding-inline: var(--space-26px);
    }

    .hero h1 {
        font-size: var(--font-hero-title);
    }

    .hero p {
        max-width: 100%;
        font-size: var(--font-hero-copy);
    }

    .button {
        padding: var(--space-13px) var(--space-lg);
        font-size: var(--font-subtitle);
    }

    .bubble-large {
        right: 12px;
        bottom: 24px;
        width: 205px;
    }

    .bubble-small {
        right: 178px;
        bottom: 50px;
        width: 106px;
    }

    .hero-scribble {
        left: 20px;
        width: 80px;
    }

    .section-intro {
        gap: var(--space-20px);
    }

    .section-intro h2 {
        font-size: var(--font-section-title);
    }

    .section-intro p {
        font-size: var(--font-section-copy);
    }

    .section-intro h2 br {
        display: none;
    }

    .benefits-section {
        margin-top: var(--section-gap);
    }

    .benefit-grid,
    .price-grid,
    .process-grid {
        grid-template-columns: 1fr;
    }

    .benefit-card h3 {
        margin-top: var(--space-lg);
    }

    .pricing-section {
        margin-block: var(--section-gap);
    }

    .price-grid {
        gap: var(--space-2xl);
    }

    .process-section {
        margin-inline: calc(var(--space-10px) * -1);
        padding: var(--space-56px) var(--space-24px);
    }

    .process-grid {
        margin-top: var(--space-56px);
        gap: var(--space-48px);
    }

    .process-step>span {
        margin-top: var(--space-lg);
    }

    .home-cta {
        margin-top: var(--section-gap);
        padding-top: var(--space-48px);
        padding-inline: var(--space-26px);
        padding-bottom: 330px;
    }

    .cta-copy {
        max-width: 100%;
    }

    .cta-copy h2 {
        font-size: var(--font-mobile-cta-title);
    }

    .cta-copy p,
    .cta-copy ul {
        font-size: var(--font-mobile-cta-copy);
    }

    .cta-bubble-large {
        top: auto;
        right: 68px;
        bottom: 74px;
        width: 180px;
        height: auto;
    }

    .cta-bubble-small {
        top: auto;
        right: 4px;
        bottom: 20px;
        width: 104px;
        height: auto;
    }

    .cta-scribble {
        top: auto;
        right: 168px;
        bottom: 40px;
        width: 138px;
        height: auto;
    }

    .site-footer {
        margin-top: var(--section-gap);
        padding: var(--space-32px) var(--space-24px);
    }

    .footer-brand {
        width: 220px;
        transform: scale(.84);
        transform-origin: left top;
    }

    .footer-phone {
        margin: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-xs);
        font-size: var(--font-copy);
    }

    .footer-links {
        flex-direction: column;
        font-size: var(--font-sm);
    }

    .floating-tools {
        left: 14px;
        right: 14px;
        bottom: 14px;
    }

    .accessibility-button {
        width: 50px;
        height: 50px;
    }

    .chat-launcher {
        padding: var(--space-13px);
    }

    .chat-launcher span {
        display: none;
    }

    .chat-panel {
        padding: var(--space-lg);
    }

    .chat-panel h2 {
        font-size: var(--font-mobile-lg);
    }

    .auth-card h1 {
        margin-bottom: var(--space-2xl);
        font-size: var(--font-mobile-display);
    }

    .profile-main>h1,
    .pending-profile>h1 {
        margin-bottom: var(--space-56px);
        font-size: var(--font-mobile-display);
    }

    .profile-summary {
        grid-template-columns: 1fr;
        gap: var(--space-18px);
    }

    .data-card {
        padding: var(--space-28px) var(--space-lg);
    }

    .data-grid {
        grid-template-columns: 1fr;
        gap: var(--space-18px);
    }

    .data-item.column-span-2 {
        grid-column: initial;
    }

    .pending-banner {
        padding: var(--space-24px);
        align-items: flex-start;
    }

    .pending-banner img {
        width: 42px;
        height: 42px;
    }

    .pending-banner strong {
        font-size: var(--font-body);
    }

    .stepper {
        margin-bottom: var(--space-48px);
    }

    .stepper li {
        width: 56px;
    }

    .stepper small {
        font-size: var(--font-mobile-step-label);
        white-space: normal;
    }

    .stepper li>span {
        width: 34px;
        height: 34px;
        font-size: var(--font-mobile-step-number);
    }

    .stepper::before,
    .stepper::after {
        top: 26px;
    }

    .enrollment-intro h1,
    .confirmation h1 {
        font-size: var(--font-mobile-title);
    }

    .enrollment-intro p {
        font-size: var(--font-mobile-form-subtitle);
    }

    .enrollment-form,
    .verify-form {
        margin-top: var(--space-2xl);
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .field-full {
        grid-column: auto;
    }

    .convention-box {
        align-items: flex-start;
        gap: var(--space-18px);
    }

    .convention-box .switch-line {
        align-self: center;
    }

    .switch-line {
        gap: var(--space-14px);
    }

    .form-actions {
        gap: var(--space-16px);
    }

    .confirmation>img {
        width: 90px;
        height: auto;
    }

    .confirmation p {
        font-size: var(--font-control);
    }

    .confirmation p br {
        display: none;
    }

    .not-found-main {
        padding: var(--space-52px) var(--space-20px);
        flex-direction: column;
        gap: var(--space-30px);
        align-items: flex-start;
    }

    .error-scribble {
        width: 125px;
        height: 125px;
    }

    .not-found-main h1 {
        font-size: var(--font-error-mobile);
    }

    .not-found-main p {
        font-size: var(--font-md);
    }

    .not-found-main p br {
        display: none;
    }
}

/* ================================================================
   RESPONSIVE: MOBILE COMPATTO
   ================================================================ */
@media (max-width: 400px) {
    :root {
        --page-gutter: var(--space-xs);
        --font-hero-title: 40px;
        --font-hero-copy: 22px;
        --font-section-title: 34px;
        --font-section-copy: 20px;
    }

    .hero {
        padding-inline: var(--space-20px);
        padding-bottom: 262px;
    }

    .bubble-large {
        right: var(--space-xs);
        width: 175px;
    }

    .bubble-small {
        right: 158px;
        width: 92px;
    }

    .hero-scribble {
        right: 170px;
        width: 90px;
    }

    .home-cta {
        padding-inline: var(--space-20px);
        padding-bottom: 320px;
    }

    .cta-copy h2 {
        font-size: 36px;
    }

    .cta-copy p,
    .cta-copy ul {
        font-size: var(--font-body);
    }

    .cta-bubble-large {
        right: 64px;
        width: 170px;
    }

    .cta-bubble-small {
        width: 98px;
    }

    .cta-scribble {
        right: 165px;
        width: 120px;
    }
}