.gtc-carousel-wrapper {
    padding: 5rem;
    margin: auto;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    align-items: center;
    height: 90vh;
}

#gtc-carousel {
    position: relative;
    width: 100%;
    max-width: 100%;
}

.gtc-slide {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 0;
    pointer-events: none;
    transition: opacity 0.6s ease-in-out;
}

.gtc-slide.active {
    opacity: 1;
    position: relative;
    pointer-events: auto;
}

.gtc-slide-left {
    max-width: 65%;
    flex: 1 1 65%;
    display: flex;
    flex-direction: column;
}

.gtc-slide-top {
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gtc-slide-left h2 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.gtc-slide-left h3 {
    font-size: 1rem;
    font-style: italic;
    margin-bottom: 0;
}

.gtc-slide-bottom {
    color: var(--template-tirdcolor);
}

.gtc-slide-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 300px;
}

.gtc-slide-bottom p {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.gtc-slide-bg-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.gtc-slide-left p {
    color: var(--template-tirdcolor);
    margin: 0;
}

.gtc-slide-img img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.gtc-slide-dots {
    position: absolute;
    right: -15px;
    top: 15px;
    width: 40px;
    height: 90px;
    background-image: radial-gradient(white 2px, transparent 2px);
    background-size: 10px 10px;
}

.gtc-search-wrapper {
    margin-bottom: 2rem !important;
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    margin: auto;
}

.gtc-search-wrapper form {
    display: flex;
    align-items: flex-start;
    width: 100%;
}

.gtc-search-wrapper button {
    background: var(--template-maincolor);
    border: none;
    box-shadow: -4px -4px 8px #ffffff, 4px 4px 8px #cc151c;
    border-radius: 0 30px 30px 0;
    color: white;
    padding: 12px 20px;
    cursor: pointer;
    flex-shrink: 0;
    height: 100%;
}

.gtc-search-wrapper button:hover {
    background-color: var(--template-maincolor);
}

.gtc-carousel-dots {
    text-align: center;
}

.gtc-carousel-dots .dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 6px;
    background: #f0f2f5;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: -4px -4px 8px #ffffff, 4px 4px 8px #aeaec0;
}

.gtc-carousel-dots .dot:hover {
    transform: scale(0.98) translateY(0);
    box-shadow: inset -4px -4px 8px #ffffff, inset 4 px 4px 8px #aeaec0;
}

.gtc-carousel-dots .dot.active {
    background-color: var(--template-maincolor);
}

.gtc-carousel-bottom-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.gtc-input-container {
    position: relative;
    flex-grow: 1;
    background-color: #f0f2f5;
    display: flex;
    flex-direction: column;
    border-radius: 30px 0 0 30px;
    overflow: visible;
    box-shadow: -4px -4px 8px #ffffff, 0px 4px 8px #aeaec0;
    z-index: 1;
}

.gtc-input-container.has-suggestions {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

#search-carousel {
    font-style: italic;
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    outline: none;
    width: 100%;
    background: transparent;
    border-radius: 30px 0 0 0;
}

.gtc-autocomplete-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    z-index: 2;
    background: #f0f2f5;
    border-radius: 0 0 0.1rem 0.1rem;
    box-shadow: -4px 0px 8px #ffffff, 4px 4px 8px #aeaec0;
}

.gtc-autocomplete-list.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.gtc-autocomplete-item {
    padding: 1rem;
    font-size: 16px;
    color: var(--template-tirdcolor);
    border-bottom: 1px solid #f3f3f3;
    cursor: pointer;
    background: #f0f2f5;
    transition: all 0.2s ease-in-out;
}

ul.gtc-autocomplete-list li.gtc-autocomplete-item.active,
.gtc-autocomplete-item:hover {
    background: var(--template-maincolor);
    color: white;
}

.gtc-input-box {
    position: relative;
    border: 1px solid #ccc;
    border-radius: 30px 0 0 30px;
    overflow: hidden;
}

.gtc-search-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background: var(--template-maincolor);
    color: white;
    border: none;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    height: 100%;
    flex-shrink: 0;
}

.gtc-autocomplete-loader {
    font-style: italic;
    padding: 0.5rem;
    color: var(--template-tirdcolor);
}

input.input-error::placeholder {
    color: var(--template-maincolor) !important;
    opacity: 1;
}
.gtc-suggestion-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gtc-suggestion-img {
    width: 10%;
    height: 10%;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.gtc-suggestion-label {
    flex: 1;
    line-height: 1.2;
}

/* Webkit scrollbar personalizzata (Chrome, Edge) */
.gtc-autocomplete-list::-webkit-scrollbar {
    width: 6px;
}

.gtc-autocomplete-list::-webkit-scrollbar-track {
    background: transparent;
}

.gtc-autocomplete-list::-webkit-scrollbar-thumb {
    border-radius: 2rem;
    box-shadow: inset -4px -4px 8px #d1d9e6,
        inset 4px 4px 8px #d1d9e6;
}

@media (max-width: 926px) {
    .gtc-slide-left h2 {
        font-size: 27px;
    }

    .gtc-slide-left h3 {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .gtc-carousel-wrapper {
        padding: 1rem;
        height: 100vh;
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
    }

    .gtc-slide-content {
        align-items: center;
        height: 200px;
    }

    .gtc-slide-img {
        max-width: 80%;
        margin-top: 1rem;
    }

    .gtc-slide-left {
        max-width: 100%;
    }

    .gtc-slide-top {
        flex-direction: column-reverse;
        text-align: center;
    }

    .gtc-slide-bg-wrapper {
        min-height: 80px;
    }

    .gtc-carousel-bottom-wrapper {
        margin-top: 1rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        position: relative;
    }

    .gtc-slide-bg-wrapper {
        min-height: 100px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
}

@media (max-width: 593px) {
    .gtc-slide-content {
        height: 240px;
    }

    .gtc-carousel-wrapper {
        margin-top: 1rem;
    }
}

@media (max-width: 414px) {
    .gtc-carousel-wrapper {
        margin-top: 0;
    }

    .gtc-slide-content {
        display: flex;
        justify-content: space-evenly;
        flex-direction: column;
        gap: 1rem;
        height: 250px;
    }
}