@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Titillium+Web:wght@300;400;600;700&display=swap');

:root {
    --color-light: #f9f8f5;
    --color-dark: #222222;
    --color-error: #ff0000;
    --color-bg-dark: var(--color-dark);
    --color-bg-light: var(--color-light);
    --color-bg-white: #ffffff;
    --color-bg: #f7f6f2;
    --color-border-dark: var(--color-dark);
    --color-border-gray: #dad6cf;
    --color-border-light: var(--color-light);
    --color-primary-alt: #007BBD;
    --color-primary: #00AFD7;
    --color-primary-highlight: #D9E8E5;
    --color-success: #437a22;
    --color-surface: var(--color-bg-light);
    --color-text-dark: var(--color-dark);
    --color-text-gray: #595959;
    --color-text-light: var(--color-light);
    --color-text: #28251d;
    --color-text-muted: #787878;
    --red: #dc3545;
    --content-default: 1140px;
    --content-narrow: 760px;
    --font-body: 'Titillium Web', sans-serif;
    --font-display: 'Montserrat', sans-serif;
    --radius-full: 9999px;
    --radius-lg: 0.75rem;
    --radius-md: 0.5rem;
    --radius-sm: 0.375rem;
    --radius-xl: 1rem;
    --shadow-lg: 0 18px 50px oklch(0.2 0.01 80 / 0.12);
    --shadow-md: 0 10px 30px oklch(0.2 0.01 80 / 0.09);
    --shadow-sm: 0 1px 2px oklch(0.2 0.01 80 / 0.06);
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-1: 0.25rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --text-2xl: clamp(2.2rem, 1.4rem + 2.4vw, 4rem);
    --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
    --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
    --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --transition: 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

*,
::before,
:after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: none;
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
    text-size-adjust: none;
}

body {
    background: var(--color-bg);
    color: var(--color-text-dark);
    font-family: var(--font-body), sans-serif;
    font-size: var(--text-base);
    line-height: 1.5;
    min-height: 100dvh;
    text-rendering: optimizeLegibility;
}

ul,
li {
    list-style: none;
    padding: 0px;
    margin: 0px;
}

img {
    display: inline-block;
    max-width: 100%;
    vertical-align: middle;
}

a {
    color: var(--color-text-gray);
    cursor: pointer;
    text-decoration: none;
}

    input,
    select,
    button,
    a:hover,
    a:focus,
    a:visited {
        outline: none !important;
        text-decoration: none;
        font-family: var(--font-body), sans-serif;
    }

    a:hover {
        color: var(--color-primary) !important;
    }

h1,
h2,
h3 {
    background: none;
    font-family: var(--font-display), sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin: 0px;
    position: relative;
    text-wrap: balance;
}

h1 {
    font-size: var(--text-2xl);
}

h4,
h5 {
    font-family: var(--font-display), sans-serif;
    letter-spacing: -0.02em;
    position: relative;
    text-wrap: balance;
}

/**
====================================================================
    Utility Classes 
====================================================================
***/

.justify-content-between {
    -ms-flex-pack: justify !important;
    justify-content: space-between !important;
}

.align-items-start {
    -ms-flex-align: start !important;
    align-items: flex-start !important;
}

.text-center {
    text-align: center;
}

.mt-3,
.my-3 {
    margin-top: 1rem !important
}

.mb-3,
.my-3 {
    margin-bottom: 1rem !important
}

.mb-5,
.my-5 {
    margin-bottom: 3rem !important
}

.pt-2,
.py-2 {
    padding-top: .5rem !important
}

.pb-2,
.py-2 {
    padding-bottom: .5rem !important
}

.pt-3,
.py-3 {
    padding-top: 1rem !important
}

.pb-3,
.py-3 {
    padding-bottom: 1rem !important
}

.pr-3,
.px-3 {
    padding-right: 1rem !important
}

.pl-3,
.px-3 {
    padding-left: 1rem !important
}

.auto-container {
    position: static;
    max-width: 1300px;
    padding: 0px 15px;
    margin: 0 auto;
}

.container {
    margin: 0 auto;
    width: min(1120px, calc(100% - 2rem));
    max-width: var(--content-default);
}

.section {
    padding-block: clamp(var(--space-12), 8vw, var(--space-24));
    padding: 44px 0;
}

.section-tight {
    padding-block: clamp(var(--space-8), 6vw, var(--space-16));
}

a.primary-btn,
button.primary-btn {
    background-color: var(--color-primary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-primary);
    color: var(--color-text-light);
    cursor: pointer;
    font-size: 18px;
    padding: 5px 12px;
    position: relative;
    transition: all 0.2s ease-in-out;
    white-space: nowrap;
    align-self: center;
    line-height: inherit;
}

    a.primary-btn:hover,
    button.primary-btn:hover {
        background-color: var(--color-text-light);
        color: var(--color-primary);
    }

a.secondary-btn,
button.secondary-btn {
    background-color: var(--color-text-light);
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-primary);
    color: var(--color-text-dark);
    cursor: pointer;
    font-size: 18px;
    padding: 5px 12px;
    transition: all 0.2s ease-in-out;
    white-space: nowrap;
    align-self: center;
    line-height: inherit;
}

    a.secondary-btn:hover,
    button.secondary-btn:hover {
        background-color: var(--color-bg-white);
        border: 1px solid var(--color-primary);
        color: var(--color-primary);
    }

    a.primary-btn.disabled,
    button.primary-btn:disabled,
    a.secondary-btn:disabled,
    button.secondary-btn:disabled {
        background-color: grey;
        border: 1px solid grey;
        color: var(--color-text-light);
        cursor: auto;
    }


button.primary-btn.btn--loading:hover::after {
    border-top-color: var(--color-primary);
}

button.primary-btn.btn--loading::after {
    animation: spinner-rotate 1s ease infinite;
    border-radius: 50%;
    border: 4px solid transparent;
    border-top-color: var(--color-text-light);
    bottom: 0;
    content: "";
    height: 16px;
    left: 0;
    margin: auto;
    position: absolute;
    right: 0;
    top: 0;
    width: 16px;
}

button.secondary-btn.btn--loading:hover::after {
    border-top-color: var(--color-text-light);
}

button.secondary-btn.btn--loading::after {
    animation: spinner-rotate 1s ease infinite;
    border-radius: 50%;
    border-top-color: var(--color-primary);
    border: 4px solid transparent;
    bottom: 0;
    content: "";
    height: 16px;
    left: 0;
    margin: auto;
    position: absolute;
    right: 0;
    top: 0;
    width: 16px;
}

.btn--loading .button__text {
    opacity: 0;
    visibility: hidden;
}

/***

====================================================================
	Header
====================================================================

 ***/

.main-header {
    background: color-mix(in oklab, var(--color-bg) 88%, transparent);
    border-bottom: 1px solid color-mix(in oklab, var(--color-text-dark) 10%, transparent);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 999;
}

    .main-header .header-upper {
        background: var(--color-bg);
        align-items: center;
        backdrop-filter: blur(14px);
        display: flex;
        flex-wrap: nowrap;
        gap: 10px;
        justify-content: space-between;
        max-height: 90px;
        position: relative;
    }

    .main-header .nav-outer {
        -moz-transition: all 500ms ease;
        -ms-transition: all 500ms ease;
        -o-transition: all 500ms ease;
        -webkit-transition: all 500ms ease;
        display: none;
        float: left;
        margin: auto 15px;
        position: relative;
        text-align: center;
        transition: all 500ms ease;
        width: 100%;
    }

    .main-header .logo {
        width: clamp(180px, 47%, 400px);
        padding: 10px 0;
    }

.mobile-menu .logo {
    min-width: clamp(69px, 50%, 229px);
}

.main-header.fixed-header {
    box-shadow: var(--shadow-sm);
}

.main-menu {
    -moz-transition: all 300ms ease;
    -ms-transition: all 300ms ease;
    -o-transition: all 300ms ease;
    -webkit-transition: all 300ms ease;
    display: inline-block;
    position: relative;
    transition: all 300ms ease;
}

    .main-menu .navigation {
        display: flex;
        font-size: 21px;
        gap: 15px;
        margin: 0px;
        position: relative;
        text-align: center;
        width: 100%;
    }

        .main-menu .navigation > li {
            margin: 0;
        }

            .main-menu .navigation > li > a {
                line-height: inherit;
                font-weight: inherit;
                padding: 0;
                color: var(--color-text-gray);
            }


                .main-menu .navigation > li > a:before {
                    content: unset;
                }

.nav-actions {
    align-items: center;
    display: none;
    font-size: 21px;
    gap: 0.75rem;
    position: relative;
}

    .nav-actions a {
        position: relative;
    }

.mobile-actions {
    align-items: center;
    display: flex;
    font-size: 21px;
    gap: 0.75rem;
    position: relative;
}

.mobile-nav-toggler {
    color: var(--color-primary);
    cursor: pointer;
    float: right;
    font-size: 30px;
    line-height: 40px;
    padding: 10px 0px;
    position: relative;
    text-align: right;
}

.mobile-menu {
    height: 100%;
    max-width: 100%;
    opacity: 0;
    padding-right: 30px;
    position: fixed;
    right: 0;
    top: 0;
    visibility: hidden;
    width: 300px;
    z-index: 999999;
}

    .mobile-menu .nav-logo {
        padding: 20px 20px;
        position: relative;
        text-align: center;
    }

        .mobile-menu .nav-logo img {
            width: 220px;
        }

.mobile-menu-visible {
    overflow: hidden;
}

    .mobile-menu-visible .mobile-menu {
        opacity: 1;
        visibility: visible;
    }

.mobile-menu .menu-backdrop {
    -ms-transform: translateX(101%);
    -webkit-transform: translateX(101%);
    background: rgba(0, 0, 0, 0.90);
    height: 100%;
    position: fixed;
    right: 0;
    top: 0;
    transform: translateX(101%);
    width: 100%;
    z-index: 1;
}

.mobile-menu-visible .mobile-menu .menu-backdrop {
    -moz-transition: all 0.4s ease;
    -ms-transform: translateX(0%);
    -ms-transition: all 0.4s ease;
    -o-transition: all 0.4s ease;
    -webkit-transform: translateX(0%);
    -webkit-transition: all 0.4s ease;
    opacity: 0.9;
    transform: translateX(0%);
    transition: all 0.4s ease;
    visibility: visible;
}

.mobile-menu .menu-box {
    -ms-transform: translateX(101%);
    -webkit-transform: translateX(101%);
    background: var(--color-bg-light);
    border-radius: 0px;
    height: 100%;
    left: 0px;
    max-height: 100%;
    opacity: 0;
    overflow-y: auto;
    padding: 0px 0px;
    position: absolute;
    top: 0px;
    transform: translateX(101%);
    visibility: hidden;
    width: 100%;
    z-index: 5;
}

.mobile-menu-visible .mobile-menu .menu-box {
    -moz-transition: all 0.3s ease 400ms;
    -ms-transform: translateX(0%);
    -ms-transition: all 0.3s ease 400ms;
    -o-transition: all 0.3s ease 400ms;
    -webkit-transform: translateX(0%);
    -webkit-transition: all 0.3s ease 400ms;
    opacity: 1;
    transform: translateX(0%);
    transition: all 0.3s ease 400ms;
    visibility: visible;
}

.mobile-menu .close-btn {
    -moz-transition: all 0.5s ease;
    -ms-transform: translateY(-50px);
    -ms-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    -webkit-transform: translateY(-50px);
    -webkit-transition: all 0.5s ease;
    color: var(--color-text-dark);
    cursor: pointer;
    font-size: 14px;
    line-height: 30px;
    position: absolute;
    right: 3px;
    text-align: center;
    top: 3px;
    transform: translateY(-50px);
    transition: all 0.5s ease;
    width: 30px;
    z-index: 10;
}

.mobile-menu-visible .mobile-menu .close-btn {
    -ms-transform: translateY(0px);
    -webkit-transform: translateY(0px);
    transform: translateY(0px);
}

.mobile-menu .close-btn:hover {
    color: var(--color-primary);
}

.mobile-menu .navigation {
    border-top: 1px solid rgba(0, 0, 0, 0.10);
    display: block;
    position: relative;
}

    .mobile-menu .navigation li {
        border-bottom: 1px solid rgba(0, 0, 0, 0.10);
        display: block;
        font-family: 'Titillium Web', sans-serif;
        position: relative;
    }

        .mobile-menu .navigation li > ul > li:last-child {
            border-bottom: none;
        }

        .mobile-menu .navigation li > ul > li:first-child {
            border-top: 1px solid rgba(0, 0, 0, 0.10);
        }

        .mobile-menu .navigation li > a {
            color: var(--color-text-dark);
            display: block;
            font-size: 15px;
            font-weight: 500;
            line-height: 24px;
            padding: 10px 20px;
            position: relative;
            text-transform: capitalize;
        }

            .mobile-menu .navigation li.current > a,
            .mobile-menu .navigation li > a:hover {
                color: var(--color-primary);
            }

        .mobile-menu .navigation li.dropdown .dropdown-btn {
            color: var(--color-text-dark);
            cursor: pointer;
            font-size: 16px;
            height: 44px;
            line-height: 44px;
            position: absolute;
            right: 0px;
            text-align: center;
            top: 0px;
            width: 44px;
            z-index: 5;
        }

            .mobile-menu .navigation li.dropdown .dropdown-btn:after {
                border-left: 1px solid rgba(0, 0, 0, 0.10);
                content: '';
                height: 24px;
                left: 0px;
                position: absolute;
                top: 10px;
                width: 1px;
            }

        .mobile-menu .navigation li > ul,
        .mobile-menu .navigation li > ul > li > ul {
            display: none;
        }



/***

====================================================================
Main Footer
====================================================================

***/

svg.svg-icon {
    width: 1em;
    height: 1em;
    vertical-align: -.125em;
    flex-shrink: 0;
    fill: currentColor;
}

.main-footer .svg-icon {
    color: var(--color-primary);
}

.main-footer {
    /*position:relative;*/
    color: var(--color-text-light);
    background-color: var(--color-bg-dark);
    font-size: 20px;
    /*position: absolute;*/
    left: 0;
    /*bottom: 0;*/

    width: 100%;
    overflow: hidden;
    padding-bottom: 15px;
}

    .main-footer .widgets-section {
        text-align: center;
        position: relative;
        padding: 5% 0 2% 0;
    }

/* Footer List */

.footer-list {
    position: relative;
}

    .footer-list li {
        position: relative;
        line-height: 1.2;
        list-style: none;
        float: left;
        clear: left;
        padding: 0;
        margin: 0;
    }

        .footer-list li a,
        .footer-list li span {
            position: relative;
            color: var(--color-text-light);
            font-size: 17px;
            font-weight: 200;
            -webkit-transition: all 300ms ease;
            -ms-transition: all 300ms ease;
            -o-transition: all 300ms ease;
            -moz-transition: all 300ms ease;
            transition: all 300ms ease;
        }

        .footer-list li strong a {
            font-weight: 600;
        }

        .footer-list li a:hover {
            color: var(--color-text-light);
        }

.footer-main-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px 30px;
    padding: 50px 0 30px;
    align-items: center;
    justify-items: center;
}

.footer-logo {
    max-width: 260px;
    width: 100%;
    height: auto;
    display: block;
}

.social-links { display: flex; gap: 15px; flex-wrap: wrap; }
.social-links svg {
    color: var(--color-text-light) !important;
}
.social-links a {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid #555; color: #A6A6A6; transition: var(--transition);
}
.social-links a:hover { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-white); }


.newsletter-label {
    display: block;
    font-size: 14px;
    margin-bottom: 10px;
    line-height: 1.4;
    color: var(--color-text-light);
}

.newsletter-form {
    display: flex;
    gap: 8px;
    width: 100%;
}

.newsletter-input {
    flex: 1 1 auto;
    min-width: 0;
    color: #fff;
    background: transparent;
    border-bottom: 1px solid var(--color-border-gray);
}

.newsletter-btn {
    flex: 0 0 auto;
    white-space: nowrap;
    padding-top: 6px;
    padding-bottom: 6px;
}

.footer-divider {
    border: none;
    border-top: 1px solid #cdcdcd;
    margin: 30px 12px;
    opacity: 0.35;
}

.footer-badges-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding-bottom: 40px;
}

.footer-badge-logo {
    width: 130px;
    height: auto;
}

.footer-institutional-logo {
    max-width: 560px;
    width: 100%;
    height: auto;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.15);
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
}

.footer-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 30px;
    font-size: 12px;
    color: #A6A6A6;
    text-align: center;
}

    .footer-bottom-inner a {
        color: #A6A6A6;
        text-decoration: none;
        transition: color 0.2s;
    }

        .footer-bottom-inner a:hover {
            color: #fff;
        }

.footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
}

/* 
    =============================================
   RESPONSIVE
   ============================================= 
   */

/* Tablet landscape → 3 colonne */
@media (max-width: 1100px) {
    .footer-main-row {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .footer-col--newsletter {
        grid-column: 1 / -1;
        /* si espande su tutta la riga */
    }

    .newsletter-form {
        max-width: 420px;
    }
}

@media (max-width: 768px) {
    .footer-main-row {
        grid-template-columns: 1fr 1fr;
        gap: 30px 24px;
    }

    .footer-col--brand {
        grid-column: 1 / -1;
    }

    .footer-col--newsletter {
        grid-column: 1 / -1;
    }

    .newsletter-form {
        max-width: 100%;
    }

    .footer-institutional-logo {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .footer-main-row {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 36px 0 20px;
    }

    .footer-col--brand,
    .footer-col--newsletter {
        grid-column: auto;
    }

    .footer-logo {
        max-width: 200px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        gap: 6px;
    }

    .footer-legal-links {
        justify-content: center;
    }
}

.split {
    align-items: start;
    display: grid;
    gap: var(--space-8);
}


/***

====================================================================
	Modal Dialog
====================================================================

 ***/
.dav-modal,
.dav-loading-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--space-4, 1rem);
    background: rgba(10, 12, 30, 0.62);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
}

    .dav-modal.is-open {
        display: flex;
    }

.dav-modal__dialog {
    width: min(100%, 560px);
    background: color-mix(in oklab, var(--color-surface, #fff) 88%, white);
    border: 1px solid color-mix(in oklab, var(--color-text, #111) 10%, transparent);
    border-radius: 1rem;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.22);
    overflow: hidden;
    transform: translateY(18px) scale(0.98);
    opacity: 0;
    transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1), opacity 200ms ease;
}

.dav-modal.is-open .dav-modal__dialog {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.dav-modal__header,
.dav-modal__body,
.dav-modal__footer {
    padding-left: clamp(1.25rem, 3vw, 2rem);
    padding-right: clamp(1.25rem, 3vw, 2rem);
}

.dav-modal__header {
    padding-top: clamp(1.25rem, 3vw, 1.75rem);
    padding-bottom: 1rem;
    border-bottom: 1px solid color-mix(in oklab, var(--color-text, #111) 8%, transparent);
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
}

.dav-modal__title {
    margin: 0;
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text, #111);
}

    .dav-modal__title span {
        display: inline-block;
        padding-bottom: 0.25rem;
        border-bottom: 2px solid var(--color-primary, #6d5dfc);
    }

.dav-modal__close {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--color-text-muted, #666);
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    flex: 0 0 auto;
    transition: background 180ms ease, color 180ms ease;
}

    .dav-modal__close:hover {
        background: color-mix(in oklab, var(--color-text, #111) 8%, transparent);
        color: var(--color-text, #111);
    }

.dav-modal__body {
    padding-top: 1.25rem;
    display: flex;
    padding-bottom: 1.25rem;
    justify-content: space-between;
    align-items: center;
}

.dav-modal__text {
    margin: 0;
    line-height: 1.7;
    color: var(--color-text, #111);
    text-wrap: pretty;
}

.dav-modal__footer {
    padding-top: 0;
    padding-bottom: clamp(1.25rem, 3vw, 1.75rem);
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 640px) {
    .dav-modal__footer {
        justify-content: stretch;
    }

        .dav-modal__footer .primary-btn {
            width: 100%;
        }
}


.dav-modal__spinner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

    .dav-modal__spinner svg {
        width: 100%;
        height: 100%;
        animation: spinner-rotate 1s linear infinite;
        stroke: var(--color-primary, #6d5dfc);
        stroke-linecap: round;
    }
    
@keyframes spinner-rotate {
    to { transform: rotate(360deg); }
}

.modal-badge {
    line-height: 1rem;
    margin-bottom: 7px;
}

/**
====================================================================
    Card
====================================================================
 ***/

:where(.dav-card, .hero-panel, .content-panel) {
    background: linear-gradient(180deg, var(--color-light), #f9f8f5);
    border: 1px solid color-mix(in oklab, var(--color-text) 10%, transparent);
    box-shadow: var(--shadow-lg);
    padding: var(--space-4);
    position: relative;
    border-radius: var(--radius-xl);
}

    :where(.dav-card, .hero-panel)::after {
        background: color-mix(in oklab, var(--color-primary) 12%, transparent);
        content: "";
        filter: blur(28px);
        height: 3rem;
        inset: auto 1.25rem -1.25rem 1.25rem;
        position: absolute;
        z-index: -1;
    }

.dav-card h2 {
    font-size: 28px;
    margin-bottom: 8px;
}

.dav-card h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-3);
}

.dav-card p,
.dav-card li {
    font-size: var(--text-base);
}

.hero {
    padding-bottom: var(--space-16);
    padding-top: clamp(var(--space-8), 8vw, var(--space-12));
}

.hero-grid {
    align-items: center;
    display: grid;
    gap: var(--space-10);
}

.hero-copy h1 {
    font-size: var(--text-2xl);
    font-weight: 700;
    line-height: 1em;
    margin-bottom: var(--space-5);
    margin-top: var(--space-5);
    max-width: 11ch;
}

.hero-copy p {
    font-size: var(--text-lg);
    font-weight: 400;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3);
    margin-top: var(--space-6);
}

.hero-proof {
    color: var(--color-text-muted);
    display: flex;
    flex-wrap: wrap;
    font-size: var(--text-sm);
    gap: var(--space-3);
    margin-top: var(--space-5);
}

    .hero-proof span {
        align-items: center;
        display: inline-flex;
        font-size: 18px;
        gap: 0.55rem;
    }

        .hero-proof span::before {
            background: var(--color-primary);
            border-radius: 50%;
            content: "";
            height: 0.38rem;
            width: 0.38rem;
        }

.hero-panel h2 {
    font-size: 28px;
    margin-bottom: 8px;
}

.hero-panel p {
    font-size: 15px;
    margin-bottom: 18px;
}

.eyebrow {
    align-items: center;
    background: var(--color-primary-highlight);
    border-radius: var(--radius-full);
    color: var(--color-primary);
    display: inline-flex;
    font-size: var(--text-xs);
    font-weight: 700;
    gap: var(--space-2);
    letter-spacing: 0.06em;
    padding: 0.45rem 0.85rem;
    text-transform: uppercase;
    width: fit-content;
}

    .eyebrow::before {
        background: currentColor;
        border-radius: 50%;
        content: "";
        height: 0.5rem;
        width: 0.5rem;
    }

.lead {
    font-size: clamp(1.06rem, 1rem + .5vw, 1.25rem);
    max-width: 52ch;
    text-wrap: balance;
}

    .ring-wrap {
        text-align: center;
    }
    
input,
select,
textarea,
.form-control {
    background: #fff;
    border-radius: 5px;
    border: 1px solid var(--color-border-gray);
    color: var(--color-text);
    font-size: 15px;
    padding: 0 14px;
    font-family: inherit;
}

    select:focus,
    input:focus,
    textarea:focus,
    .form-control:focus {
        border-color: var(--color-primary);
        outline: 2px solid color-mix(in oklab, var(--color-primary) 20%, transparent);
    }

textarea,
.form-control-textarea {
    padding: 12px 14px;
    min-height: 120px;
    resize: vertical;
}

.form {
    display: grid;
    gap: 14px;
}

.field {
    display: grid;
    gap: 5px;
}

    .field input,
    .field select,
    .field textarea {
        width: 100%;
        min-height: 50px;
    }

    .field textarea {
        min-height: 120px;
        padding: 12px 14px;
    }

.cards {
    display: grid;
    gap: 16px;
}

.helper {
    color: var(--color-text-gray);
    font-size: 13px;
}

.inline {
    align-items: center;
    color: var(--color-text-gray);
    display: flex;
    font-size: 14px;
    gap: 10px;
    margin: 0;
}

    .inline input {
        min-height: auto;
        width: auto;
    }

.compat-grid,
.pricing-grid,
.faq-grid {
    display: grid;
    gap: var(--space-4);
    align-items: start;
}

.problem-list,
.benefit-list,
.check-list {
    display: grid;
    gap: var(--space-4);
}

.problem-item,
.benefit-item,
.faq-item,
.check-item {
    background: var(--color-surface);
    border-radius: 1rem;
    border: 1px solid color-mix(in oklab, var(--color-text) 10%, transparent);
    padding: var(--space-5);
}

    .problem-item strong,
    .benefit-item strong,
    .faq-item strong,
    .check-item strong {
        display: block;
        margin-bottom: 0.35rem;
    }

    .faq-item .answer {
        padding-top: var(--space-3);
    }

    .faq-item details {
        cursor: pointer;
    }

    .faq-item summary {
        align-items: center;
        color: var(--color-text);
        display: flex;
        font-weight: 700;
        gap: var(--space-3);
        justify-content: space-between;
        list-style: none;
    }

        .faq-item summary::-webkit-details-marker {
            display: none;
        }

        .faq-item summary::after {
            color: var(--color-primary);
            content: '+';
            font-size: 1.25rem;
        }

    .faq-item details[open] summary::after {
        content: '−';
    }

details p {
    padding-top: 10px;
}

.callout {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    margin-top: 12px;
}

    .callout a {
        color: var(--color-primary);
        font-size: 13px;
        font-weight: 700;
    }

.alert-box {
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 15px;
    margin-bottom: 20px;
    line-height: 1.5;
}

    .alert-box.alert-success {
        background: color-mix(in oklab, var(--color-success, #28a745) 12%, transparent);
        color: var(--color-success, #155724);
        border: 1px solid color-mix(in oklab, var(--color-success, #28a745) 30%, transparent);
    }

    .alert-box.alert-error {
        background: color-mix(in oklab, var(--color-error, #e74c3c) 12%, transparent);
        color: var(--color-error, #721c24);
        border: 1px solid color-mix(in oklab, var(--color-error, #e74c3c) 30%, transparent);
    }

    .alert-box p {
        margin-bottom: 0;
    }
    
label {
    color: var(--color-text);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 0;
}


/***

====================================================================
	7. Scroll To Top style
====================================================================

 ***/

.scroll-to-top {
    position: fixed;
    bottom: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    color: var(--color-primary);
    font-size: 24px;
    z-index: 100;
    cursor: pointer;
    background: var(--color-bg-light);
    display: none;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-primary);
    padding: 0;
    transition: all .3s ease
}

.scroll-to-top:hover {
    color: var(--color-light);
    background: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.scroll-to-top:hover svg.svg-icon {
    color: var(--color-light);
}

.section h2 {
    font-size: clamp(1.7rem, 1.2rem + 1.5vw, 2.6rem);
    margin-bottom: 12px;
    margin-top: 14px;
}

.section-title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-4);
}

.section-copy {
    font-size: var(--text-base);
    text-wrap: balance;
}

.cta-band {
    background: var(--color-text);
    border-radius: 1.5rem;
    color: var(--color-text-light);
    display: grid;
    gap: var(--space-5);
    padding: var(--space-8);
}

    .cta-band p {
        color: color-mix(in oklab, var(--color-text-light) 80%, transparent);
    }


.steps {
    display: grid;
    gap: var(--space-4);
    margin-top: var(--space-8)
}

.step {
    position: relative;
    padding: var(--space-6);
    background: var(--color-surface);
    border: 1px solid color-mix(in oklab, var(--color-text) 10%, transparent);
    border-radius: 1.15rem
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-text-light);
    font-size: var(--text-sm);
    font-weight: 700;
    margin-bottom: var(--space-4)
}

.step h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-3)
}


/***

====================================================================
	CHECKOUT
====================================================================

 ***/

/***

====================================================================
	TRUST STRIP
====================================================================

 ***/

/* ── Trust strip ─────────────────────────────── */
.trust-strip {
    border-top: 1px solid var(--color-border-gray);
    border-bottom: 1px solid var(--color-border-gray);
    background: color-mix(in oklab, var(--color-surface) 80%, var(--color-bg));
}

.trust-grid {
    display: grid;
    gap: var(--space-4);
    padding-block: var(--space-6);
}

.trust-item {
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    border: 1px solid color-mix(in oklab, var(--color-text) 10%, transparent);
}

    .trust-item strong {
        display: block;
        margin-bottom: 0.25rem;
    }

    .trust-item p {
        font-size: var(--text-sm);
    }


/***

====================================================================
	PASSWORD WRAP
====================================================================

 ***/


/* ── Password wrap ────────────────────────────── */
.pw-wrap {
    position: relative;
}

    .pw-wrap input {
        padding-right: 3rem;
    }

.pw-toggle {
    position: absolute;
    right: var(--space-3);
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-muted);
    font-size: var(--text-base);
    padding: 0;
    line-height: 1;
    display: none;
}

/***

====================================================================
	END OF PW WRAP
====================================================================

 ***/
/***

====================================================================
	Account / Tabs
====================================================================

 ***/
.account-grid {
    display: grid;
    gap: var(--space-8);
}

.account-nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    list-style: none;
    padding: 0;
    margin: 0;
}

    .account-nav a {
        display: flex;
        align-items: center;
        gap: var(--space-2);
        padding: var(--space-2) var(--space-3);
        border-radius: var(--radius-md);
        color: var(--color-text-gray);
        font-size: var(--text-sm);
        transition: background var(--transition), color var(--transition);
    }

        .account-nav a:hover {
            background: color-mix(in oklab, var(--color-primary) 8%, transparent);
            color: var(--color-primary);
        }

        .account-nav a.active {
            background: var(--color-primary);
            color: var(--color-text-light);
            font-weight: 600;
        }

.sec-title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-4);
}

.tab-pane {
    display: none;
}

    .tab-pane.active {
        display: block;
    }


/***

====================================================================
	Device info
====================================================================

 ***/

.sub-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    padding: var(--space-3) 0;
    border-bottom: 1px solid color-mix(in oklab, var(--color-text) 8%, transparent);
}

.sub-info {
    flex: 1;
}

.sub-name {
    font-weight: 600;
    font-size: var(--text-base);
}

.plan-badge {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 700;
    padding: 0.15em 0.6em;
    border-radius: var(--radius-sm);
    background: var(--color-primary-highlight);
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sub-meta {
    display: grid;
    gap: var(--space-1);
    font-size: var(--text-sm);
    color: var(--color-text-gray);
    margin: var(--space-2) 0 0;
}

.transaction-id {
    font-family: monospace;
    font-size: var(--text-xs);
    word-break: break-all;
}

.revision-date {
    display: block;
    font-size: var(--text-sm);
    color: var(--color-text-gray);
    margin-bottom: var(--space-4);
}

@media (max-width: 759px) {
    .hero-copy p {
        font-size: var(--text-base);
    }
}

@media (min-width: 760px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    }

    .trust-grid {
        grid-template-columns: repeat(3, 1fr)
    }

    .steps {
        grid-template-columns: repeat(3, minmax(0, 1fr))
    }
}

@media only screen and (max-width: 430px) {

    body {
        padding-top: 0;
    }

    ul {
        height: auto;
        position: static;
    }

    li {
        display: block;
    }

        li a {
            white-space: normal;
        }

    a.active:after {
        display: none;
    }
}

@media(min-width:760px) {
    .faq-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

select[disabled] {
    opacity: .5;
    cursor: not-allowed;
}

.checkout-layout {
    display: flex;
    flex-wrap: wrap;
    max-width: 950px;
    margin: 0 auto;
    background: var(--color-bg-light);
    justify-content: center;
    align-items: stretch;
}

.checkout-form {
    flex: 1 1 420px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.checkout-form-inner {
    display: flex;
    flex-direction: column;
}

.checkout-form-inner > .field-group {
    margin-bottom: 1rem;
}

.checkout-sidebar {
    flex: 1 1 380px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.section-title {
    font-size: var(--text-lg);
    margin-top: 0.5rem;
}

.field-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

#dati-fattura {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.35s ease, margin-bottom 0.35s ease;
    margin-bottom: 0;
}

#dati-fattura.visible {
    max-height: 800px;
    opacity: 1;
    margin-bottom: 1rem;
}

#companyVatCountry-group,
#companyVat-group {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.3s ease;
    flex: 1 1;
    min-width: 0;
}

#companyVatCountry-group.visible,
#companyVat-group.visible {
    max-height: 55px;
    opacity: 1;
}

.field-group {
    flex: 1 1;
    min-width: 0;
}

.field-group-full {
    flex: 1 1 100%;
}

.field-group-sm {
    flex: 1 1 120px;
    min-width: 100px;
}

.field-group input,
.field-group select {
    width: 100%;
    height: 55px;
    padding: 10px 25px;
    line-height: 28px;
    box-sizing: border-box;
}

.checkout-nav {
    display: flex;
    gap: 0;
    padding: 0;
    margin: 0 0 1.5rem 0;
    list-style: none;
    font-size: 18px;
}

.checkout-nav li {
    flex: 1;
    display: flex;
    justify-content: center;
}

.checkout-tab-link {
    display: block;
    width: 100%;
    text-align: center;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-border-gray);
    color: var(--color-text-gray);
    background: none;
    transition: border-color 0.2s, color 0.2s;
}

.checkout-tab-link.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}


#no-fattura,
#privato,
#azienda {
    display: block;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.35s ease, margin-bottom 0.35s ease;
    margin-bottom: 0;
}

#no-fattura.active,
#privato.active,
#azienda.active {
    max-height: 250px;
    opacity: 1;
}

#no-fattura.active,
#azienda.active {
    margin-bottom: 1rem;
}

#payment-data.active {
    display: block;
    max-height: none;
    opacity: 1;
}

#payment-method.active {
    display: block;
    max-height: none;
    opacity: 1;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.payment-option {
    display: block;
    cursor: pointer;
}

.payment-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.payment-option-body {
    background: #fff;
    box-shadow: 5px 0 20px rgb(0 0 0 / 10%);
    border-radius: 10px;
    padding: 1.5rem;
    border: 2px solid transparent;
    transition: border-color .15s, box-shadow .15s;
}

.payment-option input[type="radio"]:checked + .payment-option-body {
    border-color: var(--color-primary);
    box-shadow: 5px 0 20px rgb(0 0 0 / 10%), 0 0 0 3px color-mix(in oklab, var(--color-primary) 18%, transparent);
}

.payment-option-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.payment-option-row .svg-icon {
    width: 32px;
    height: 32px;
}

#stripe-elements {
    min-height: 40px;
}

.checkbox-label {
    display: block;
    position: relative;
    padding-left: 40px;
    cursor: pointer;
    user-select: none;
    font-size: 18px;
    font-weight: 600;
}

.checkbox-label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-label .checkmark {
    position: absolute;
    top: 4px;
    left: 0.4rem;
    height: 20px;
    width: 20px;
    background: transparent;
    border: 1px solid var(--color-primary);
    border-radius: 4px;
}

.checkbox-label:hover input ~ .checkmark {
    background: var(--color-bg-light);
}

.checkbox-label input:checked ~ .checkmark {
    background: var(--color-primary);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-label input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-label .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.coupon-badge {
    flex: 1;
    height: 40px;
    padding: 5px 15px;
    border: 1px solid var(--color-primary);
    border-radius: 4px;
    display: flex;
    align-items: center;
    font-weight: 600;
    color: var(--color-primary);
}

.coupon-remove-btn {
    padding: 0 8px;
    font-size: 14px;
    white-space: nowrap;
    cursor: pointer;
    background: none;
    border: 1px solid var(--red);
    color: var(--red);
    border-radius: 4px;
    height: 40px;
}

.discount-row {
    justify-content: space-between;
    align-items: center;
    color: var(--color-primary);
}


