/* ---------------------------------------------------------------------------------------*/
/* Fonts
/* ---------------------------------------------------------------------------------------*/
@font-face {
    font-family: "Arame";
    src: url("../fonts/Arame_Thin.ttf") format("truetype");
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Arame";
    src: url("../fonts/Arame_Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Arame";
    src: url("../fonts/Arame_Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ---------------------------------------------------------------------------------------*/
/* Root
/* ---------------------------------------------------------------------------------------*/
:root {
    color-scheme: light dark;
    
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    --color-primary: #E3000B;

    --color-neutral-100: #E9E9E9;
    --color-neutral-200: #DDDDDD;
    --color-neutral-300: #C7C7C7;
    --color-neutral-400: #A0A0A0;
    --color-neutral-500: #636363;
    --color-neutral-600: #333333;
    --color-neutral-700: #222222;
    --color-neutral-800: #161616;
    --color-neutral-900: #0F0F0F;

    --color-white: #FFFFFF;
    --color-black: #000000;

    --color-error: #FF0000;
    --color-success: #00FF77; 
}

/* ---------------------------------------------------------------------------------------*/
/* Hide ScrollBar
/* ---------------------------------------------------------------------------------------*/
body::-webkit-scrollbar,
body::-webkit-scrollbar {display: none;}
body {-ms-overflow-style: none;}
html {scrollbar-width: none;}

/* ---------------------------------------------------------------------------------------*/
/* Overall
/* ---------------------------------------------------------------------------------------*/
*,
*:after,
*:before {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ---------------------------------------------------------------------------------------*/
/* HTML
/* ---------------------------------------------------------------------------------------*/
html,
body {
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;

    color: var(--color-white);
    background-color: var(--color-black);
}

h1,h2,h3,h4,h5,h6,p { margin: 0; }

svg {
    max-width: none;
    height: auto;
    box-sizing: border-box;
    vertical-align: middle;
}

a,
button {
    color: inherit;
    text-decoration: inherit;
}

a {
    text-decoration: underline;
}

::selection {
    background-color: var(--color-primary);
    color: var(--color-white);
    text-shadow: none;
}

::-moz-selection {
    background-color: var(--color-primary);
    color: var(--color-white);
    text-shadow: none;
}

.max-width-container {
    width: 100%;
    height: 100%;
    min-height: inherit;

    max-width: 1920px;
    margin: 0 auto;
}

/* ---------------------------------------------------------------------------------------*/
/* Typography
/* ---------------------------------------------------------------------------------------*/
.title {
    font-family: "Arame", sans-serif;
    font-size: 48px;
    font-weight: 400;
    font-style: normal;
    text-transform: uppercase;
}

.sub-title {
    font-family: "Arame", sans-serif;
    font-size: 32px;
    font-weight: 700;
    font-style: normal;
    text-transform: uppercase;
}

.small-title {
    font-family: "Arame", sans-serif;
    font-size: 20px;
    font-weight: 700;
    font-style: normal;
    text-transform: uppercase;
}

.text {
    font-family: "WDXL Lubrifont TC", sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.3;
    font-style: normal;
}

.small-text {
    font-family: "WDXL Lubrifont TC", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.3;
    font-style: normal;
}

@media (width <= 1400px) {
    .title {
        font-size: 44px;
    }
}
@media (width <= 1200px) {
    .title {
        font-size: 42px;
    }
}
@media (width <= 992px) {
    .title {
        font-size: 38px;
    }

    .text {
        font-size: 18px;
    }

    .small-text {
        font-size: 13px;
    }
}
@media (width <= 480px) {
    .title {
        font-size: 34px;
    }

    .sub-title {
        font-size: 28px;
    }

    .small-title {
        font-size: 18px;
    }

    .text {
        font-size: 17px;
    }
}

@media (width <= 400px) {
    .title {
        font-size: 32px;
    }

    .text {
        font-size: 16px;
    }

    .small-text {
        font-size: 12px;
    }
}

/* ---------------------------------------------------------------------------------------*/
/* Margins
/* ---------------------------------------------------------------------------------------*/
.margin-bottom-6 {
    margin-bottom: 6px;
}

.margin-bottom-12 {
    margin-bottom: 12px;
}

.margin-bottom-24 {
    margin-bottom: 24px;
}

.margin-bottom-32 {
    margin-bottom: 32px;
}

.margin-bottom-48 {
    margin-bottom: 48px;
}

/* ---------------------------------------------------------------------------------------*/
/* Landing
/* ---------------------------------------------------------------------------------------*/
body {
    position: relative;
    overflow: hidden;
}

body.lock-scroll {
    overflow: hidden;
}

.header {
    position: absolute;

    top: 12px;
    left: 50%;
    transform: translateX(-50%);

    z-index: 999;
}

.header img {
    width: 180px;
}

.homepage {
    position: relative;

    width: 100vw;
    min-height: 100vh;
    padding: 182px 98px 98px 98px;

    background-image: url("../img/background/background.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.homepage .background-car {
    position: absolute;

    bottom: 20%;
    left: 0;
    opacity: 0.8;
    mix-blend-mode: overlay;

    max-width: -webkit-fill-available;
}

.homepage .text-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;

    margin-bottom: 60px;
}

.homepage .text-container .text {
    max-width: 45%;
}

.homepage .form-container {
    display: flex;
    align-items: stretch;
    justify-content: space-between;

    gap: 40px;
}

.homepage .form-container .left-side {
    position: relative;
    width: 45%;
}

.homepage .form-container .left-side__scroller {
    max-height: 40vh;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    scrollbar-gutter: stable both-edges;
    -webkit-overflow-scrolling: touch;

    display: flex;
    flex-direction: column;
    gap: 48px;

    transition: margin-top .35s cubic-bezier(.32, .72, 0, 1);
    will-change: margin-top;

    --fade-size: 12%;
    --safe-gap: 32px;

    padding-top: var(--safe-gap);
    padding-bottom: var(--safe-gap);

    -webkit-mask-image: linear-gradient(
        to bottom,
        transparent 0,
        #000 var(--fade-size),
        #000 calc(100% - var(--fade-size)),
        transparent 100%
    );
    mask-image: linear-gradient(
        to bottom,
        transparent 0,
        #000 var(--fade-size),
        #000 calc(100% - var(--fade-size)),
        transparent 100%
    );
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.homepage .form-container .left-side.offset-top .left-side__scroller {
    margin-top: calc(-1 * var(--safe-gap, 32px));
}

@media (prefers-reduced-motion: reduce) {
    .homepage .form-container .left-side__scroller { transition: none; }
}

.homepage .form-container .left-side__scroller::-webkit-scrollbar,
.homepage .form-container .left-side__scroller::-webkit-scrollbar {display: none;}
.homepage .form-container .left-side__scroller {-ms-overflow-style: none;}
.homepage .form-container .left-side__scroller {scrollbar-width: none;}

.left-side .scroll-hint {
    position: absolute;

    left: 50%;
    transform: translateX(-50%);
    bottom: 0;

    z-index: 5;
    opacity: 1;
    
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
}

.left-side .scroll-hint__pill {
    display: inline-flex;
    align-items: center;
    
    gap: 10px;
    padding: 8px 14px;
    border-radius: 999px;

    border: 1px solid rgba(255, 255, 255, .35);
    background: linear-gradient(180deg, rgba(255, 255, 255, .28) 0%, rgba(255, 255, 255, .18) 100%);

    backdrop-filter: blur(8px) saturate(1.2);
    -webkit-backdrop-filter: blur(8px) saturate(1.2);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .45),
        inset 0 -1px 0 rgba(255, 255, 255, .25),
        0 8px 20px rgba(0, 0, 0, .25);
}

.left-side .scroll-hint__chevs {
    display: inline-flex;
    flex-direction: column;

    gap: 2px;
    transform: translateY(-4px);
}

.left-side .scroll-hint__chev {
    width: 8px;
    height: 8px;

    border-left: 2px solid var(--color-white);
    border-bottom: 2px solid var(--color-white);

    transform: rotate(-45deg);
    animation: hint-down 1.7s infinite;
}

.left-side .scroll-hint__chev:nth-child(2) {
    animation-delay: .15s;
}

@keyframes hint-down {
    0% { transform: translateY(-2px) rotate(-45deg); opacity: 0; }
    10% { transform: translateY(-2px) rotate(-45deg); opacity: 0.2; }
    50% { transform: translateY(2px) rotate(-45deg); opacity: 1; }
    90% { transform: translateY(6px) rotate(-45deg); opacity: 0; }
    100% { transform: translateY(6px) rotate(-45deg); opacity: 0; }
}

.left-side.is-scrolling .scroll-hint {
    opacity: 0;
}

.left-side.at-bottom .scroll-hint__chevs {
    transform: translateY(4px);
}

.left-side.at-bottom .scroll-hint__chev {
    transform: rotate(135deg);
    animation-name: hint-up;
}

@keyframes hint-up {
    0% { transform: translateY(2px) rotate(135deg); opacity: 0; }
    10% { transform: translateY(2px) rotate(135deg); opacity: 0.2; }
    50% { transform: translateY(-2px) rotate(135deg); opacity: 1; }
    90% { transform: translateY(-6px) rotate(135deg); opacity: 0; }
    100% { transform: translateY(-6px) rotate(135deg); opacity: 0; }
}

.homepage .form-container .right-side {
    width: 55%;
}

.homepage .form-container .step {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 24px;
}

.homepage .form-container .step .step-indicator {
    position: relative;

    width: 10%;
    max-width: 60px;
    min-width: 60px;
    height: -webkit-fill-available;

    background: linear-gradient(180deg, #E3000B 0%, rgba(227, 0, 11, 0.00) 100%);
}

.homepage .form-container .step .step-indicator .dot {
    position: absolute;

    top: 25px;
    left: 50%;
    transform: translateX(-50%);

    width: 10px;
    height: 10px;

    background-color: var(--color-white);
}

.homepage .form-container .step .step-indicator .dot-2 {
    top: 40px;
}

.homepage .form-container .step .step-indicator .dot-3 {
    top: 55px;
}

.homepage .form-container .step .step-content {
    width: 90%;
}

.homepage .form-container .step .step-content .lists {
    list-style: none;
}

.homepage .form-container .right-side form {
    display: flex;
    flex-direction: column;

    gap: 16px;
}

.homepage .form-container .right-side .double-field {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 16px;
}

.homepage .form-container .right-side .double-field .bg-field {
    width: 100%;
}

.homepage .form-container .right-side .double-field .bg-field input {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    padding: 16px;
    gap: 10px;
    flex-shrink: 0;

    width: 100%;

    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .3);
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, .4) 0%, rgba(255, 255, 255, .3) 100%);

    backdrop-filter: blur(8px) saturate(1.2);
    -webkit-backdrop-filter: blur(8px) saturate(1.2);

    font-family: "Arame", sans-serif;
    font-size: 16px;
    font-weight: 400;
    font-style: normal;
    text-transform: uppercase;

    color: var(--color-white);
}

.homepage .form-container .right-side .double-field .bg-field input::placeholder {
    font-family: "Arame", sans-serif;
    font-size: 16px;
    font-weight: 400;
    font-style: normal;
    text-transform: uppercase;

    color: var(--color-black);
    opacity: 0.5;
}

.homepage .form-container .right-side .bg-consent {
    position: relative;

    display: flex;
    align-items: center;

    margin-left: 6px;
}

.homepage .form-container .right-side .bg-consent input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
}

.homepage .form-container .right-side .bg-consent label {
    position: relative;
    padding-left: 32px;

    cursor: pointer;
    line-height: 1.1
}

.homepage .form-container .right-side .bg-consent label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 18px;
    height: 18px;
    border: 2px solid var(--color-white);
    background: transparent;
    border-radius: 0;         /* squadrato */
    box-sizing: border-box;
}

/* spunta: quadratino bianco interno, nessuna transizione/effetto */
.homepage .form-container .right-side .bg-consent label::after {
    content: "";
    position: absolute;

    left: 4px;
    top: 6px;

    width: 10px;
    height: 10px;

    background: var(--color-white);

    border-radius: 0;
    opacity: 0;

    transition: opacity 0.1s ease-in-out;
}

.homepage .form-container .right-side .bg-consent input[type="checkbox"]:checked + label::after {
    opacity: 1;
}

.homepage .form-container .right-side .bg-consent input[type="checkbox"]:focus + label::before,
.homepage .form-container .right-side .bg-consent label:hover::before {
    outline: none;
    box-shadow: none;
}

.homepage .form-container .right-side .submit {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    padding: 16px;
    gap: 10px;
    flex-shrink: 0;

    width: 100%;

    font-family: "Arame", sans-serif;
    font-size: 16px;
    font-weight: 400;
    font-style: normal;
    text-transform: uppercase;

    cursor: pointer;

    border-radius: 999px;
    border: 1px solid rgba(255, 0, 0, .3);
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.12);
    background: linear-gradient(180deg, rgba(255, 0, 0, .3) 0%, rgba(255, 0, 0, .2) 100%);

    backdrop-filter: blur(8px) saturate(1.2);
    -webkit-backdrop-filter: blur(8px) saturate(1.2);
}

@media (width <= 1600px) {
    .homepage .text-container .text {
        max-width: 50%;
    }
}
@media (width <= 1400px) {
    .homepage {
        padding: 168px 64px 64px 64px;
    }
    
    .homepage .form-container {
        gap: 100px;
    }

    .homepage .text-container .text {
        max-width: 60%;
    }
}
@media (width <= 1200px) {
    .homepage .background-car {
        max-width: 80%;
    }

    .homepage .form-container {
        gap: 80px;
    }

    .homepage .text-container .text {
        max-width: 70%;
    }
}
@media (width <= 992px) {
    body {
        overflow: auto;
    }

    .homepage {
        padding: 182px 24px 24px 24px;
    }

    .homepage .background-car {
        bottom: 0;
        max-width: 70%;
        bottom: 30%;
    }

    .homepage .text-container .text {
        max-width: 80%;
    }

    .homepage .form-container {
        flex-direction: column;
        gap: 60px;
    }

    .homepage .form-container .left-side,
    .homepage .form-container .right-side {
        width: 100%;
    }

    .homepage .form-container .left-side__scroller {
        max-height: none;
        overflow-y: hidden;
    
        -webkit-mask-image: none;
        mask-image: none;
    }

    .homepage .form-container .step {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    
    .homepage .form-container .step .step-indicator {
        height: 10%;
        max-height: 60px;
        min-height: 60px;

        max-width: none;
        width: -webkit-fill-available;
    
        background: linear-gradient(90deg, #E3000B 0%, rgba(227, 0, 11, 0.00) 100%);
    }
    
    .homepage .form-container .step .step-indicator .dot {
        position: absolute;
    
        left: 25px;
        top: 50%;
        transform: translateY(-50%);
    
        width: 10px;
        height: 10px;
    
        background-color: var(--color-white);
    }
    
    .homepage .form-container .step .step-indicator .dot-2 {
        left: 40px;
    }
    
    .homepage .form-container .step .step-indicator .dot-3 {
        left: 55px;
    }

    .homepage .form-container .step .step-content {
        width: 100%;
    }

    .left-side .scroll-hint {
        display: none;
    }
}
@media (width <= 768px) {
    .homepage .background-car {
        max-width: 90%;
    }

    .homepage .text-container .text {
        max-width: 90%;
    }

    .homepage .form-container .right-side .double-field {
        flex-direction: column;
    }
}
@media (width <= 480px) {
    .homepage .background-car {
        max-width: -webkit-fill-available;
    }

    .homepage .text-container .text {
        max-width: 100%;
    }
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.toast {
    position: fixed;

    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    padding: 16px;
    gap: 10px;
    flex-shrink: 0;

    font-family: "Arame", sans-serif;
    font-size: 16px;
    font-weight: 400;
    font-style: normal;
    text-transform: uppercase;

    cursor: pointer;

    border-radius: 999px;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.12);

    backdrop-filter: blur(8px) saturate(1.2);
    -webkit-backdrop-filter: blur(8px) saturate(1.2);

    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
    z-index: 9999;
}
.toast.success {
    pointer-events: auto;
    opacity: 1;
    border: 1px solid rgba(0, 128, 64, .3);
    background: linear-gradient(180deg, rgba(0, 128, 64, .6) 0%, rgba(0, 128, 64, .5) 100%);
}
.toast.error {
    pointer-events: auto;
    opacity: 1;
    border: 1px solid rgba(255, 0, 0, .3);
    background: linear-gradient(180deg, rgba(255, 0, 0, .3) 0%, rgba(255, 0, 0, .2) 100%);
}

input.is-invalid,
select.is-invalid,
textarea.is-invalid {
    outline: 1px solid rgba(0, 0, 0, 0.3);
    outline-offset: 1px;
}
.is-invalid {
    filter: drop-shadow(0 0 0 rgba(255,0,0,0));
}


button[disabled],
input[type="submit"][disabled],
.button[disabled] {
    opacity: .6;
    cursor: not-allowed;
}

button[data-loading="true"]::after,
input[type="submit"][data-loading="true"]::after {
    content: '';
    display: inline-block;
    margin-left: 8px;
    width: 1em;
    height: 1em;
    border-radius: 50%;
    border: 2px solid currentColor;
    border-right-color: transparent;
    animation: sc-spin .6s linear infinite;
    vertical-align: -2px;
}

@keyframes sc-spin {
    to { transform: rotate(360deg); }
}

.not-registered-pop-up {
    position: fixed;
    z-index: 999999;
    inset: 0;

    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;

    background-color: #00000090;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);

    transition: opacity .18s ease-out, visibility .18s ease-out;
}

.not-registered-pop-up[aria-hidden="true"] {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.not-registered-pop-up[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.not-registered-pop-up .pop-up-content {
    position: relative;

    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;

    max-width: 500px;
    margin: 24px;
    padding: 24px;

    border-radius: 24px;
    border: 1px solid rgba(255, 0, 0, .3);
    background: linear-gradient(180deg, rgba(255, 0, 0, .3) 0%, rgba(255, 0, 0, .2) 100%);
    backdrop-filter: blur(8px) saturate(1.2);
    -webkit-backdrop-filter: blur(8px) saturate(1.2);

    transform: translateY(6px) scale(.985);
    transition: transform .18s ease-out, opacity .18s ease-out;
    opacity: .0;
}

.not-registered-pop-up[aria-hidden="false"] .pop-up-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.not-registered-pop-up .pop-up-content .nrp-close {
    align-self: flex-end;

    font-size: 28px;
    margin-bottom: 14px !important;

    border: none;
    background: transparent;
    cursor: pointer;
}

.not-registered-pop-up .pop-up-content .title {
    line-height: 1;
    margin-bottom: 24px;
}

.not-registered-pop-up .form {
    margin-top: 12px;
    flex: 1 1 auto;

    width: 100%;
    min-height: 0;
    max-height: 400px;

    overflow: auto;
    padding-right: 6px;
    display: flex;
    flex-direction: column;
    gap: 16px;

    background-color: var(--color-white) !important;
}

#inrecruiting_form {
    width: 100%;
    background-color: var(--color-white) !important;
}

.not-registered-pop-up .pop-up-content .registration-button {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    padding: 16px;
    margin-top: 24px;
    gap: 10px;
    flex-shrink: 0;

    width: 100%;

    font-family: "Arame", sans-serif;
    font-size: 16px;
    font-weight: 400;
    font-style: normal;
    text-transform: uppercase;

    cursor: pointer;

    border-radius: 999px;
    border: 1px solid rgba(255, 0, 0, .3);
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.12);
    background: linear-gradient(180deg, rgba(255, 0, 0, .3) 0%, rgba(255, 0, 0, .2) 100%);

    backdrop-filter: blur(8px) saturate(1.2);
    -webkit-backdrop-filter: blur(8px) saturate(1.2);
}

.thankyou-homepage {
    padding: 0;
}

.thankyou-homepage .max-width-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.thankyou-homepage .thankyou-text-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;

    margin: 24px;
}

.thankyou-homepage .thankyou-text-container .text {
    max-width: 45%;
}

.thankyou-homepage .thankyou-text-container .join-button {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    padding: 16px;
    margin-top: 24px;
    gap: 10px;
    flex-shrink: 0;

    width: 100%;
    max-width: 300px;

    font-family: "Arame", sans-serif;
    font-size: 16px;
    font-weight: 400;
    font-style: normal;
    text-transform: uppercase;

    cursor: pointer;

    border-radius: 999px;
    border: 1px solid rgba(255, 0, 0, .3);
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.12);
    background: linear-gradient(180deg, rgba(255, 0, 0, .3) 0%, rgba(255, 0, 0, .2) 100%);

    backdrop-filter: blur(8px) saturate(1.2);
    -webkit-backdrop-filter: blur(8px) saturate(1.2);
}

@media (width <= 1600px) {
    .thankyou-homepage .thankyou-text-container .text {
        max-width: 50%;
    }
}
@media (width <= 1400px) {
    .thankyou-homepage .thankyou-text-container .text {
        max-width: 60%;
    }
}
@media (width <= 1200px) {
    .thankyou-homepage .thankyou-text-container .text {
        max-width: 70%;
    }
}
@media (width <= 992px) {
    .thankyou-homepage .thankyou-text-container .text {
        max-width: 80%;
    }

    .toast {
        width: calc(100% - 48px);
    }
}
@media (width <= 768px) {
    .thankyou-homepage .thankyou-text-container .text {
        max-width: 90%;
    }
}
@media (width <= 480px) {
    .thankyou-homepage .thankyou-text-container .text {
        max-width: 100%;
    }
}

	/* ---------------------------------------------------------------------------------------*/
	/* Cookie Banner (sempre visibile, stile glass come toast/popup)
	/* ---------------------------------------------------------------------------------------*/
	.cookie-banner {
		position: fixed;
		right: 24px;
		bottom: 24px;
		z-index: 99999;

		max-width: 420px;
		width: 92vw;

		border-radius: 24px;
		border: 1px solid rgba(255, 255, 255, .25);
		background: linear-gradient(180deg, rgba(255, 255, 255, .28) 0%, rgba(255, 255, 255, .18) 100%);
		backdrop-filter: blur(8px) saturate(1.2);
		-webkit-backdrop-filter: blur(8px) saturate(1.2);

		box-shadow:
			inset 0 1px 0 rgba(255, 255, 255, .45),
			inset 0 -1px 0 rgba(255, 255, 255, .25),
			0 8px 20px rgba(0, 0, 0, .25);
	}

	.cookie-banner .cookie-banner-content {
		display: flex;
		flex-direction: column;
		padding: 18px;
	}

	.cookie-banner .cookie-banner-actions {
		display: flex;
		align-items: center;
		justify-content: flex-end;
		gap: 10px;
		margin-top: 6px;
	}

	.cookie-banner .cookie-button {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		text-align: center;

		padding: 12px 16px;
		gap: 10px;
		flex-shrink: 0;

		cursor: pointer;

		border-radius: 999px;
		border: 1px solid rgba(255, 255, 255, .3);
		box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.12);
		background: linear-gradient(180deg, rgba(255, 255, 255, .4) 0%, rgba(255, 255, 255, .3) 100%);

		backdrop-filter: blur(8px) saturate(1.2);
		-webkit-backdrop-filter: blur(8px) saturate(1.2);

		color: var(--color-white);
		transition: transform .08s ease;
	}

	.cookie-banner .cookie-button:active { transform: translateY(1px); }

	.cookie-banner .cookie-button-accept {
		border: 1px solid rgba(255, 0, 0, .3);
		background: linear-gradient(180deg, rgba(255, 0, 0, .3) 0%, rgba(255, 0, 0, .2) 100%);
	}

	/* ---------------------------------------------------------------------------------------*/
	/* Cookie Preferences Pop-up (clona lo stile del tuo .not-registered-pop-up)
	/* ---------------------------------------------------------------------------------------*/
	.cookie-pop-up {
		position: fixed;
		z-index: 999999;
		inset: 0;

		display: flex;
		justify-content: center;
		align-items: center;
		flex-direction: column;

		background-color: #00000090;
		backdrop-filter: blur(2px);
		-webkit-backdrop-filter: blur(2px);

		transition: opacity .18s ease-out, visibility .18s ease-out;
	}

	.cookie-pop-up[aria-hidden="true"] {
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
	}

	.cookie-pop-up[aria-hidden="false"] {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}

	/* riuso del tuo .pop-up-content come stile base */
	.cookie-pop-up .pop-up-content {
		position: relative;

		display: flex;
		justify-content: center;
		align-items: flex-start;
		flex-direction: column;
		text-align: left;

		max-width: 640px;
		margin: 24px;
		padding: 24px;

		border-radius: 24px;
		border: 1px solid rgba(255, 0, 0, .3);
		background: linear-gradient(180deg, rgba(255, 0, 0, .3) 0%, rgba(255, 0, 0, .2) 100%);
		backdrop-filter: blur(8px) saturate(1.2);
		-webkit-backdrop-filter: blur(8px) saturate(1.2);

		transform: translateY(6px) scale(.985);
		transition: transform .18s ease-out, opacity .18s ease-out;
		opacity: .0;
	}

	.cookie-pop-up[aria-hidden="false"] .pop-up-content {
		transform: translateY(0) scale(1);
		opacity: 1;
	}

	.cookie-pop-up .cookie-modal-close {
		align-self: flex-end;

		margin-bottom: 14px !important;

		border: none;
		background: transparent;
		cursor: pointer;
	}

	/* elenco e righe */
	.cookie-pop-up .cookie-list {
		display: flex;
		flex-direction: column;
		list-style: none;
		width: 100%;
	}

	.cookie-pop-up .cookie-item {
		padding: 16px;
		border-radius: 16px;
		border: 1px solid rgba(255, 255, 255, .2);
		background: linear-gradient(180deg, rgba(255, 255, 255, .18) 0%, rgba(255, 255, 255, .12) 100%);
		backdrop-filter: blur(6px) saturate(1.1);
		-webkit-backdrop-filter: blur(6px) saturate(1.1);
	}

	.cookie-pop-up .cookie-item-head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
	}

	.cookie-pop-up .cookie-chip {
		display: inline-flex;
		align-items: center;
		justify-content: center;

		padding: 6px 10px;
		border-radius: 999px;

		border: 1px solid rgba(255, 255, 255, .3);
		background: linear-gradient(180deg, rgba(255, 255, 255, .4) 0%, rgba(255, 255, 255, .28) 100%);
	}

	.cookie-pop-up .cookie-chip-locked {
		border: 1px solid rgba(255, 255, 255, .35);
		background: linear-gradient(180deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .22) 100%);
	}

	/* toggle come i tuoi checkbox */
	.cookie-pop-up .cookie-toggle {
		position: relative;
		display: inline-flex;
		align-items: center;
	}

	.cookie-pop-up .cookie-toggle-input {
		position: absolute;
		opacity: 0;
		width: 1px;
		height: 1px;
		margin: 0;
	}

	.cookie-pop-up .cookie-toggle-label {
		position: relative;
		padding-left: 32px;
		cursor: pointer;
		line-height: 1.1;
	}

	.cookie-pop-up .cookie-toggle-label::before {
		content: "";
		position: absolute;
		left: 0;
		top: 2px;
		width: 18px;
		height: 18px;
		border: 2px solid var(--color-white);
		background: transparent;
		border-radius: 0;
		box-sizing: border-box;
	}

	.cookie-pop-up .cookie-toggle-label::after {
		content: "";
		position: absolute;
		left: 4px;
		top: 6px;
		width: 10px;
		height: 10px;
		background: var(--color-white);
		border-radius: 0;
		opacity: 0;
		transition: opacity 0.1s ease-in-out;
	}

	.cookie-pop-up .cookie-toggle-input:checked + .cookie-toggle-label::after {
		opacity: 1;
	}

	.cookie-pop-up .cookie-modal-actions {
		display: flex;
		justify-content: flex-end;
		gap: 10px;
		width: 100%;
		margin-top: 16px;
	}

	/* bottoni: riuso stile della tua .registration-button */
	.cookie-pop-up .registration-button {
		display: flex;
		align-items: center;
		justify-content: center;
		text-align: center;

		padding: 16px;
		gap: 10px;
		flex-shrink: 0;

		width: auto;
		min-width: 160px;

		cursor: pointer;

		border-radius: 999px;
		border: 1px solid rgba(255, 0, 0, .3);
		box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.12);
		background: linear-gradient(180deg, rgba(255, 0, 0, .3) 0%, rgba(255, 0, 0, .2) 100%);

		backdrop-filter: blur(8px) saturate(1.2);
		-webkit-backdrop-filter: blur(8px) saturate(1.2);
	}

	/* variante “reject” nel pop-up preferenze */
	.cookie-pop-up .cookie-button-reject {
		border: 1px solid rgba(255, 255, 255, .25);
		background: linear-gradient(180deg, rgba(255, 255, 255, .24) 0%, rgba(255, 255, 255, .18) 100%);
	}

	@media (width <= 480px) {
		.cookie-banner { right: 12px; bottom: 12px; }
		.cookie-pop-up .pop-up-content { margin: 16px; padding: 18px; }
		.cookie-pop-up .registration-button { width: 100%; }
	}

    .cookie-banner[aria-hidden="true"] {
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transform: translateY(6px);
		transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
	}
