@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 400;
    src: url('/fonts/Nunito/Nunito-Regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 700;
    src: url('/fonts/Nunito/Nunito-Bold.woff2') format('woff2');
}
@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 800;
    src: url('/fonts/Nunito/Nunito-ExtraBold.woff2') format('woff2');
}

@font-face {
    font-family: 'Source Sans Pro';
    font-style: normal;
    font-weight: 300;
    src: local('Source Sans Pro Light'), local('SourceSansPro-Light'), url('/fonts/SourceSansPro/SourceSansPro300.woff2') format('woff2'), url('/fonts/SourceSansPro/SourceSansPro300.woff') format('woff'), url('/fonts/SourceSansPro/SourceSansPro300.eot?#iefix') format('embedded-opentype');
}

@font-face {
    font-family: 'Source Sans Pro';
    font-style: italic;
    font-weight: 300;
    src: local('Source Sans Pro Light Italic'), local('SourceSansPro-LightItalic'), url('/fonts/SourceSansPro/SourceSansPro300Italic.woff2') format('woff2'), url('/fonts/SourceSansPro/SourceSansPro300Italic.woff') format('woff'), url('/fonts/SourceSansPro/SourceSansPro300Italic.eot?#iefix') format('embedded-opentype');
}

@font-face {
    font-family: 'Source Sans Pro';
    font-style: normal;
    font-weight: 400;
    src: local('Source Sans Pro Regular'), local('SourceSansPro-Regular'), url('/fonts/SourceSansPro/SourceSansProRegular.woff2') format('woff2'), url('/fonts/SourceSansPro/SourceSansProRegular.woff') format('woff'), url('/fonts/SourceSansPro/SourceSansProRegular.eot?#iefix') format('embedded-opentype');
}

@font-face {
    font-family: 'Source Sans Pro';
    font-style: italic;
    font-weight: 400;
    src: local('Source Sans Pro Italic'), local('SourceSansPro-Italic'), url('/fonts/SourceSansPro/SourceSansProItalic.woff2') format('woff2'), url('/fonts/SourceSansPro/SourceSansProItalic.woff') format('woff'), url('/fonts/SourceSansPro/SourceSansProItalic.eot?#iefix') format('embedded-opentype');
}

@font-face {
    font-family: 'Source Sans Pro';
    font-style: normal;
    font-weight: 600;
    src: local('Source Sans Pro SemiBold'), local('SourceSansPro-SemiBold'), url('/fonts/SourceSansPro/SourceSansPro600.woff2') format('woff2'), url('/fonts/SourceSansPro/SourceSansPro600.woff') format('woff'), url('/fonts/SourceSansPro/SourceSansPro600.eot?#iefix') format('embedded-opentype');
}

@font-face {
    font-family: 'Source Sans Pro';
    font-style: italic;
    font-weight: 600;
    src: local('Source Sans Pro SemiBold Italic'), local('SourceSansPro-SemiBoldItalic'), url('/fonts/SourceSansPro/SourceSansPro600Italic.woff2') format('woff2'), url('/fonts/SourceSansPro/SourceSansPro600Italic.woff') format('woff'), url('/fonts/SourceSansPro/SourceSansPro600Italic.eot?#iefix') format('embedded-opentype');
}

@font-face {
    font-family: 'Source Sans Pro';
    font-style: italic;
    font-weight: 700;
    src: local('Source Sans Pro Bold Italic'), local('SourceSansPro-BoldItalic'), url('/fonts/SourceSansPro/SourceSansPro700Italic.woff2') format('woff2'), url('/fonts/SourceSansPro/SourceSansPro700Italic.woff') format('woff'), url('/fonts/SourceSansPro/SourceSansPro700Italic.eot?#iefix') format('embedded-opentype');
}

@font-face {
    font-family: 'Source Sans Pro';
    font-style: normal;
    font-weight: 700;
    src: local('Source Sans Pro Bold'), local('SourceSansPro-Bold'), url('/fonts/SourceSansPro/SourceSansPro700.woff2') format('woff2'), url('/fonts/SourceSansPro/SourceSansPro700.woff') format('woff'), url('/fonts/SourceSansPro/SourceSansPro700Italic.eot?#iefix') format('embedded-opentype');
}

/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}
body {
    line-height: 1;
}
ol, ul {
    list-style: none;
}
blockquote, q {
    quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}
* {
    box-sizing: border-box;
}
html {
    --color-background-light: #fff;
    --color-background: #f3f8fc;
    --color-background-medium: #e8f4fdff;
    --color-background-dark: #333;
    --color-primary: #0076c7;
    --color-important: #fdd065;
    --color-warn: #fdd065;
    --color-warn-light: #fff4d6;
    --color-danger: #d9534f;
    --color-danger-light: #f6d6d5;
    --color-success: #5cb85c;
    --color-text-light: #fff;
    --color-text-muted: #888;
    --color-text: #043254;
    --color-border: #dbeaf6;
    --height-app-header: 60px;
    --height-app-banner: 220px;
    --width-app-menu: 250px;
    font-family: 'Nunito', sans-serif;
    overflow-x: hidden;
}

html, body {
    position: relative;
    z-index: 0;
    line-height: 1.3;
    scrollbar-width: thin;
    scrollbar-color: var(--color-text) var(--color-background-light);
    background-color: var(--color-background);
    color: var(--color-text);
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 16px;
    height: var(--height-app-header);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 0 16px;
    background-color: var(--color-background-light);
}

    .app-header .app-logo {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 20px;
        font-weight: 800;
        color: var(--color-text);
    }

@media (min-width: 768px) {
    .app-header .btn-menu {
        display: none;
    }
}

.app-banner {
    height: var(--height-app-banner);
    position: relative;
    background: linear-gradient(to bottom, #fff 0%, #dbeaf6 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    flex-direction: column;
    z-index: 2;
}

.vector-wave {
    position: absolute;
    bottom: -40px;
    left: -10%;
    width: 120%;
    height: 100px;
    background: var(--color-background);
    border-radius: 50% / 100% 100% 0 0;
    z-index: 1;
}

.vector-wave-2 {
    position: absolute;
    bottom: -30px;
    right: -20%;
    width: 120%;
    height: 120px;
    background: rgba(0, 118, 199, 0.1);
    border-radius: 50% / 100% 100% 0 0;
    z-index: 0;
}

.vector-ship-icon {
    position: absolute;
    right: 10%;
    bottom: 20px;
    font-size: 160px;
    color: var(--color-primary);
    opacity: 0.1;
    transform: rotate(-5deg);
    z-index: 0;
}

.cloud {
    position: absolute;
    background: #fff;
    border-radius: 20px;
    opacity: 0.6;
}

.c1 {
    width: 100px;
    height: 40px;
    top: 40px;
    left: 10%;
}

.c2 {
    width: 60px;
    height: 25px;
    top: 80px;
    left: 20%;
    opacity: 0.4;
}

.app-banner-content {
    z-index: 2;
    text-align: center;
}

.logo-mockup {
    max-width: 320px;
}

.app-banner-tagline {
    color: var(--color-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-top: 10px;
    background: rgba(255,255,255,0.8);
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
}

.app-content {
    display: flex;
}

.app-main, .app-menu {
    min-height: calc(100vh - var(--height-app-header));
    position: relative;
}

.app-menu {
    position: fixed;
    z-index: 2;
    background-color: var(--color-background-medium);
    width: 80%;
    max-width: var(--width-app-menu);
    padding: 16px;
}

.app-main {
    position: relative;
    z-index: 1;
    margin-left: var(--width-app-menu);
}

@media (max-width: 767px) {
    .app-main {
        margin-left: 0;
    }

    .app-menu {
        box-shadow: 8px 0 4px -6px rgba(0, 0, 0, 0.2);
    }

        .app-menu:not(.is-open) {
            display: none;
        }
}

.app-menu ul {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

.app-menu .app-menu-title {
    font-size: 14px;
    color: var(--color-text-muted);
    margin: 0 0 24px 16px;
}

.app-main {
    width: 100%;
}

.app-footer {
    position: relative;
    z-index: 3;
    background: var(--color-background-dark);
    color: var(--color-text-light);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem 1.5rem;
    gap: 0.25rem;
    text-align: center;
    height: auto;
}

.centered {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.row {
    display: flex;
    flex-direction: row;
    gap: 16px;
    justify-content: space-between;
    align-items: flex-start;
}

    .row > * {
        width: 100%;
    }

@media (max-width: 767px) {
    .row {
        flex-direction: column;
    }
}

.ignore {
    display: contents;
}

hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 16px 0;
}

.app-footer-links a {
    color: inherit;
    text-decoration: none;
}

    .app-footer-links a:hover {
        text-decoration: underline;
    }

.header-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-right: 1.5rem;
}

    .header-links a {
        color: var(--color-text);
        text-decoration: none;
        font-size: 0.9rem;
    }

        .header-links a:hover {
            text-decoration: underline;
        }

.app-menu {
    padding-bottom: 4rem;
}

.app-menu-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-text-secondary, #a0aec0);
}

@media (max-width: 991.98px) {
    .header-links {
        display: none;
    }
}

.btn {
    display: flex;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 10px;

    align-items: center;
    cursor: pointer;
    text-decoration: none;
    outline: none;
    border: none;
    
    width: 100%;
}

.btn[disabled] {
    cursor: not-allowed;
}

.btn.btn-primary {
    justify-content: center;
    font-size: 18px;
    background-color: var(--color-primary);
    color: var(--color-text-light);
    border: 2px solid var(--color-primary);
}

.btn.btn-primary:hover {
    background-color: var(--color-background-medium);
    color: var(--color-text);
}

.btn.btn-primary:focus-visible {
    border: 2px solid var(--color-text);
}

.btn.btn-secondary {
    justify-content: center;
    font-size: 16px;
    border-radius: 4px;
    background-color: var(--color-background-light);
    color: var(--color-text);
    border: 2px dashed var(--color-border);
    padding: 12px 16px;
}

.btn.btn-secondary:hover {
    background-color: var(--color-background-medium);
}

.btn.btn-secondary:focus-visible {
    border: 2px solid var(--color-primary);
}

.btn.btn-icon {
    width: 40px;
    height: 40px;
    justify-content: center;
    font-size: 18px;
    background-color: transparent;
    border-radius: 50%;
    color: var(--color-primary);
}

.btn.btn-icon:hover {
    background-color: var(--color-background-medium);
}

.btn.btn-icon:focus-visible {
    border: 2px solid var(--color-primary);
}

.btn.btn-icon.btn-icon-danger {
    color: var(--color-danger);
}


.btn.btn-paypal {
    justify-content: center;
    font-size: 18px;
    background-color: #fccf00;
    color: #000000;
    border: 2px solid #fccf00;
}

.btn.btn-paypal:hover {
    background-color: #ffe8b3;
    color: var(--color-text);
}

.btn.btn-paypal:focus-visible {
    border: 2px solid var(--color-text);
}   

.btn.btn-nav {
    line-height: 24px;
    background-color: var(--color-background-medium);
    color: var(--color-text);
}

.btn.btn-nav.active {
    background-color: var(--color-primary);
    color: var(--color-text-light);
}

.btn-menu {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 46px;
    height: 46px;

    cursor: pointer;
    
    background-color: transparent;
    color: var(--color-text);
    padding: 8px 27px;
    outline: none;
    border: none;
    font-size: 24px;
}
dialog{
    display: flex;
    width: 400px;
    min-height: 200px;
    
    flex-direction: column;
    justify-content: space-between;

    position: sticky;
    top: 30%;

    background: var(--color-background);
    z-index: 4;
    border: none;
    border-radius: 8px;
    margin: 0 auto;
}


.dialog-backdrop {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 3;
}

dialog h2 {
    font-weight: bold;
    margin-bottom: 16px;
}
.dialog-content {
    margin-bottom: 24px;
}

.dialog-actions {
    display: flex;
    gap: 8px;
}
.input, .input > label {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.input > legend {
    margin-bottom: 8px;    
}

.label, .input > label, .input > legend {
    color: var(--color-text-muted);
}

.input input {
    border-radius: 6px;
    font-size: 20px;
    padding: 4px 8px;
    outline: none;
    border: 2px solid var(--color-border);
    line-height: 28px;
}

input[disabled] {
    cursor: not-allowed;
    background-color: var(--color-background-medium);
}

.validation-error {
    color: var(--color-danger);
}

.input:has(.validation-error:not(:empty)) input, .input:has(.validation-error:not(:empty)) .choices__inner {
    border-color: var(--color-danger);
}

/* Text */
.input input[type="text"] {
    width: 100%;
}
.input input[type="text"]:focus {
    border: 2px solid var(--color-primary);
}

/* Radio */
.input .input-radio {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
}

.input .input-radio label {
    background-color: var(--color-background-light);
    border: 2px solid var(--color-border);
    color: var(--color-text);
    
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;

    font-weight: bold;
    user-select: none;
}

.input .input-radio label:focus-within {
    border-color: var(--color-primary);
}

.input .input-radio label:has(input:checked) {
    background-color: var(--color-background-medium);
}

.input .input-radio label:has(input:disabled) {
    color: var(--color-text-muted);
    background-color: var(--color-background-light);
    cursor: not-allowed;
}

.input .input-radio input {
    opacity: 0;
    position: absolute;
    pointer-events: none;
}

.input .input-radio-vertical {
    height: 200px;
    overflow-y: auto;
    flex-wrap: nowrap;
    flex-direction: column;
    padding: 8px;
    border: solid 1px var(--color-border);
    border-radius: 8px;
}

/* select */
.input-select{
    color: var(--color-text);
}
.input-select .choices {
    margin-bottom: 0 !important;
}
.input-select .choices__inner {
    min-height: 40px !important;
    padding: 0 8px !important;
}
.input-select .choices__input{
    border-radius: 0;
    line-height: 16px;
    border: none;
    padding: 6px !important;
    background-color: var(--color-background-medium) !important;
}

.input-select .choices__inner .choices__item {
    max-height: 28px;
}

.input-select .choices__item{
    display: flex;
}

.input-select .choices__inner, .input-select select{
    height: 40px;
    
    border: 2px solid var(--color-border);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 18px;
    line-height: 28px;
    background-color: var(--color-background-light);
    outline: none;
}

.input-select .is-focused .choices__inner {
    border-color: var(--color-primary);
}

.input-select img{
    width: 24px;
    object-fit: contain;
    margin-right: 8px;
}

.input-select .choices__list--dropdown{
    border: none;
}

/* Language select */
.language-select {
    width: unset !important;
}

/* Time */
.input input[type="time"] {
    border: 2px solid var(--color-border);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 18px;
    color: var(--color-text);
    background-color: var(--color-background-light);
}

/* Checkbox */
.input-checkbox label {
    flex-direction: row-reverse;
    justify-content: start;
    align-items: center;
    gap: 8px;
}

@media (min-width: 768px) {
    .input.input-checkbox:before {
        content: '';
        height: 20px;
    }
}

input[type="checkbox"] {
    transform: scale(1.4);
}

input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--color-primary);
}
.page {
    position: relative;
    z-index: 2;
    min-height: calc(100vh - var(--height-app-header) - var(--height-app-banner));
    background: var(--color-background);
    padding: 24px 0 48px;
}

.page header {
    font-size: 24px;
    font-weight: bold;
}

.page header h1 {
    max-width: 800px;
    margin: 0 auto;
    padding: 16px;
}
.panel {
    border-radius: 4px;
    padding: 16px;
    background-color: var(--color-background-light);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.panel .panel-header {
    font-size: 1.5em;
    margin-bottom: 12px;
    font-weight: bold;
}

.panel.panel-warn {
    border-left: 6px solid var(--color-warn);
    background-color: var(--color-warn-light);
    line-height: 20px;
}

.panel.panel-danger {
    border-left: 6px solid var(--color-danger);
    background-color: var(--color-danger-light);
    line-height: 20px;
}

.panel.panel-info {
    border-left: 6px solid var(--color-primary);
    background-color: var(--color-background-medium);
    line-height: 20px;
}

.panel.panel-warn .panel-header,
.panel.panel-danger .panel-header,
.panel.panel-info .panel-header {
    font-size: 16px;
}
.spinner {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    position: relative;
    animation: rotate 1s linear infinite
}

.spinner::before {
    content: "";
    box-sizing: border-box;
    position: absolute;
    inset: 0px;
    border-radius: 50%;
    border: 5px solid var(--color-primary);
    animation: prixClipFix 2s linear infinite ;
}


.main-spinner .spinner::before {
    border-color: var(--color-background-light);
}

.main-spinner {
    position: sticky;
    top: 30%;

    display: flex;
    justify-content: center;
}

@keyframes rotate {
    100%   {transform: rotate(360deg)}
}

@keyframes prixClipFix {
    0%   {clip-path:polygon(50% 50%,0 0,0 0,0 0,0 0,0 0)}
    25%  {clip-path:polygon(50% 50%,0 0,100% 0,100% 0,100% 0,100% 0)}
    50%  {clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,100% 100%,100% 100%)}
    75%  {clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,0 100%,0 100%)}
    100% {clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,0 100%,0 0)}
}
.summary {
    display: grid;
    grid-template-columns: max-content auto;
    gap: 8px 12px;
}

.summary .summary-label:after {
    content: ":";
}

.summary .summary-value {
    font-weight: bold;
}

.tariffe {
    margin: 32px 0;
}

.tariffa {
    display: flex;
    justify-content: space-between;
    padding: 8px 16px;
    font-size: 18px;
    border-radius: 4px;
    background: var(--color-background-medium);
    margin-bottom: 8px;
}

.tariffa.tariffa-total {
    font-weight: bold;
    background: var(--color-important);
}