/* Recensioni: slider con testo centrato. Senza JavaScript le recensioni restano una sotto l'altra. */
.gite-slider {
    --gs-colore: #2f6f4e;
    box-sizing: border-box;
    width: 100%;
}

.gite-slider *,
.gite-slider *::before,
.gite-slider *::after {
    box-sizing: border-box;
}

.gite-slider__slides {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gite-slide {
    margin: 0;
    padding: 0.5rem 0.25rem;
    text-align: center;
}

.gite-slide figure {
    margin: 0;
    padding: 0;
}

.gite-slide blockquote {
    position: relative;
    margin: 0 0 0.75rem;
    padding: 2.25rem 0.5rem 0;
    border: 0;
    font-style: italic;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.gite-slide blockquote::before {
    content: "\201C";
    position: absolute;
    top: -0.25rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3.5rem;
    line-height: 1;
    font-style: normal;
    font-family: Georgia, "Times New Roman", serif;
    color: var(--gs-colore);
}

.gite-slide figcaption {
    font-size: 0.9rem;
}

.gite-slide figcaption a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

/* Con JavaScript: una recensione alla volta, si scorre anche con il dito. */
.gite-slider.is-js .gite-slider__slides {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.gite-slider.is-js .gite-slider__slides::-webkit-scrollbar {
    display: none;
}

.gite-slider.is-js .gite-slide {
    flex: 0 0 100%;
    scroll-snap-align: center;
    scroll-snap-stop: always;
}

.gite-slider__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.gite-slider__nav[hidden] {
    display: none;
}

.gite-slider__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 1px solid currentColor;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.75;
}

.gite-slider__btn:hover,
.gite-slider__btn:focus-visible {
    opacity: 1;
}

.gite-slider__btn:focus-visible,
.gite-slider__punto:focus-visible {
    outline: 3px solid var(--gs-colore);
    outline-offset: 2px;
}

.gite-slider__punti {
    display: flex;
    gap: 0.25rem;
}

.gite-slider__punto {
    width: 1.5rem;
    height: 1.5rem;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    position: relative;
}

.gite-slider__punto::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: currentColor;
    opacity: 0.3;
}

.gite-slider__punto[aria-current="true"]::after {
    background: var(--gs-colore);
    opacity: 1;
}
