body {
    font-family: 'Lato', sans-serif;
}

.step {
    display: none;
    width: 100%;
    height: 100vh;
}

.step.active {
    display: flex;
    flex-direction: column;
    position: relative;
}

#dataPreview {
    margin-top: 100px; /* spaziatura sotto il logo */
}

#dataPreview .cta-style {
    text-align: center;
    width: 100%;
}

.step.active {
    display: flex;
}

.logo {
  width: 300px;
}

.logo-top-left {
    position: absolute;
    top: 30px;
    left: 30px;
    width: 120px; /* o quanto vuoi */
}

/* Loader */
#loader {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: #fff;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

#loader img {
    width: 100px;
    animation: spin-sequence 1.8s ease-out forwards;
}

@keyframes spin-sequence {
    0% {
        transform: rotate(0deg);
    }
    20% {
        transform: rotate(720deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

.cta-input {
    width: 100%;
    background-color: transparent;
    border: none;
    border-bottom: 2px solid #aaa;
    outline: none;
    padding: 0.5rem 0;
    font-size: 1.2rem;
    text-align: center;
    color: black;
}

.cta-input::placeholder {
    color: #bbb;
    letter-spacing: 0.05em;
    font-weight: 400;
}

.cta-input:focus {
}

.cta-style {
    background: #fff;
    color: #000;
    text-transform: uppercase;
    padding: 0.8rem 2rem;
    border: 2px solid black;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
    max-width: 300px;
    &.dark {
        background-color: black;
        color: white;
    }
}

.cta-style:hover {
    background: #f1f1f1;
    color: black;
    border: 2px solid black;
}

.next-button {
    --border-color: #000;
    --bg-color: #fff;
    --text-color: #000;
    --accent-color: #000;
    padding: 0.8rem 2rem;
    border: 2px solid var(--border-color);
    background-color: var(--bg-color);
    color: var(--text-color);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: color 0.4s ease;
    z-index: 1;
}

.next-button::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    background: var(--accent-color);
    z-index: -1;
    transition: all 0.5s ease;
}

.next-button:hover::before {
    height: 500%;
}

.next-button:hover {
    color: #fff;
}

input.is-invalid {
    border-color: red !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 0, 0, 0.25);
}

.autocomplete-results {
    max-height: 200px;
    overflow-y: auto;
    z-index: 9999;
    border: 1px solid #ccc;
}
.autocomplete-item:hover {
    background-color: #f8f9fa;
}

.fade-in-preview {
    opacity: 0;
    transform: translateY(-10px);
    animation: fadeSlideIn 0.6s ease forwards;
}

@keyframes fadeSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#step-6 .cta-style, #step-5 .cta-style{
    white-space: nowrap;        /* Impedisce l’andata a capo */
    overflow: hidden;           /* Nasconde il contenuto in eccesso */
    text-overflow: ellipsis;    /* Mostra i "..." */
}
