/*body {
    background: radial-gradient(
        #02000D 17.05%,
        #03000B 15.67%,
        #030009 10.05%,
        #01000E 7.89%,
        #02000B 7.6%
    );
}/*

/* Stili per le recensioni */
.reviews-slider {
    padding: 1rem!important;
    position: relative;
}

.reviews-slider .swiper-button-next,
.reviews-slider .swiper-button-prev {
    color: #02000D;
    transition: color 0.3s ease;
}

.reviews-slider .swiper-button-next:hover,
.reviews-slider .swiper-button-prev:hover {
    color: rgba(2, 0, 13, 0.7);
}

.reviews-slider .swiper-pagination {
    position: relative;
    bottom: -30px;
}

.reviews-slider .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(2, 0, 13, 0.3);
    opacity: 1;
    transition: all 0.3s ease;
}

.reviews-slider .swiper-pagination-bullet-active {
    background: #02000D;
    transform: scale(1.2);
}

@media screen and (max-width: 767px) {
    .reviews-slider {
        padding: 10px 30px 50px;
    }
    
    .reviews-slider .swiper-button-next,
    .reviews-slider .swiper-button-prev {
        transform: scale(0.8);
    }
    
    .reviews-slider .swiper-button-next {
        right: 5px;
    }
    
    .reviews-slider .swiper-button-prev {
        left: 5px;
    }
}

.review-card {
    background: #fff;
    border: 2px solid #fff;
    border-radius: 8px;
    padding: 24px;
    height: 450px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.review-card:hover {
    background: transparent;
}

.review-card::after {
    content: '';
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23666666'%3E%3Cpath d='M7 14l5-5 5 5z'/%3E%3C/svg%3E");
    background-size: contain;
    opacity: 0;
    transition: opacity 0.3s ease;
    transform: rotate(180deg);
}

.review-card:hover::after {
    opacity: 0.5;
}

/* Stili per le stelle */
.stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.star-icon {
    color: #FFD700;
    transition: color 0.2s ease;
}

.star-icon.empty {
    color: rgba(2, 0, 13, 0.3);
}

.review-card:hover .star-icon.empty {
    color: rgba(255, 255, 255, 0.3);
}

.stars.small .star-icon {
    width: 16px;
    height: 16px;
}

/* Layout delle valutazioni dettagliate */
.review-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 16px 0;
    padding: 16px;
    background: rgba(2, 0, 13, 0.1);
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.review-card:hover .review-details {
    background: rgba(255, 255, 255, 0.1);
}

.rating-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.rating-item .label {
    font-size: 14px;
    font-weight: 500;
    color: #02000D;
    transition: color 0.3s ease;
}

.review-card:hover .rating-item .label {
    color: rgba(255, 255, 255, 0.8);
}

.rating-value {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.numeric-rating {
    font-size: 16px;
    font-weight: 600;
    color: #02000D;
    transition: color 0.3s ease;
}

.review-card:hover .numeric-rating {
    color: #fff;
}

/* Stili per la modalità espansa */
.review-card.expanded {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    height: auto;
    max-height: 90vh;
    z-index: 1000;
    overflow-y: auto;
    cursor: auto;
    padding: 32px;
    background: #02000D;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
}

.modal-overlay.active {
    display: block;
}

.review-header {
    margin-bottom: 16px;
}

.review-author h3 {
    margin: 0;
    font-size: 18px;
    color: #02000D;
    transition: color 0.3s ease;
}

.review-card:hover .review-author h3 {
    color: #fff;
}

.author-info {
    font-size: 14px;
    color: rgba(2, 0, 13, 0.7);
    display: block;
    margin-top: 4px;
    transition: color 0.3s ease;
}

.review-card:hover .author-info {
    color: rgba(255, 255, 255, 0.7);
}

.review-rating {
    margin-top: 8px;
}

.review-date {
    font-size: 14px;
    color: rgba(2, 0, 13, 0.7);
    margin-top: 4px;
    transition: color 0.3s ease;
}

.review-card:hover .review-date {
    color: rgba(255, 255, 255, 0.7);
}

.review-content {
    flex-grow: 1;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

.review-content p {
    margin: 0;
    line-height: 1.6;
    color: #02000D;
    transition: color 0.3s ease;
}

.review-card:hover .review-content p {
    color: #fff;
}

.review-card:not(.expanded) .review-content p {
    display: -webkit-box;
    display: -moz-box;
    display: box;
    -webkit-line-clamp: 4;
    -moz-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    -moz-box-orient: vertical;
    box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.review-card:not(.expanded) .review-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    opacity: 1;
   /* background: linear-gradient(transparent, #fff);
    pointer-events: none;
    opacity: 1;
    transition: all 0.3s ease;*/
}

.review-card:hover .review-content::after {
    background: linear-gradient(transparent, transparent);
}

.visit-info {
    display: flex;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid rgba(2, 0, 13, 0.2);
    font-size: 14px;
    color: rgba(2, 0, 13, 0.7);
    margin-top: auto;
    transition: all 0.3s ease;
}

.review-card:hover .visit-info {
    border-top-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
}

/* Personalizzazione dei controlli dello slider */
.swiper-button-next,
.swiper-button-prev {
    color: #fff;
}

.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.5);
}

.swiper-pagination-bullet-active {
    background: #fff;
}

.close-modal {
    display: none;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 18px;
    line-height: 30px;
    text-align: center;
}

.review-card.expanded .close-modal {
    display: block;
}

/* Fix per la modalità espansa */
.review-card.expanded .swiper-slide {
    height: auto !important;
}

.review-card.expanded .review-content {
    margin: 20px 0;
}

.review-card.expanded .review-details {
    margin: 20px 0;
}

/* Stili per la card espansa che deve mantenere i colori dell'hover */
.review-card.expanded,
.review-card.expanded .review-author h3,
.review-card.expanded .author-info,
.review-card.expanded .review-date,
.review-card.expanded .review-content p,
.review-card.expanded .rating-item .label,
.review-card.expanded .numeric-rating {
    color: #fff;
}

.review-card.expanded .star-icon.empty {
    color: rgba(255, 255, 255, 0.3);
}

.review-card.expanded .review-details {
    background: rgba(255, 255, 255, 0.1);
}

.review-card.expanded .visit-info {
    border-top-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
}

/* Rimuovo gli stili del pulsante expand che non servono più */
.expand-button {
    display: none;
}

/* Stili per la modal */
.review-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.review-modal.active {
    display: block;
    opacity: 1;
    visibility: visible;
}

.review-modal .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.review-modal.active .modal-overlay {
    opacity: 1;
}

.review-modal .modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, calc(-50% + 30px)) scale(0.95);
    width: 70%;
    max-width: 450px;
    max-height: 80vh;
    height: auto;
    overflow-y: auto;
    z-index: 1002;
    background: rgba(255, 255, 255, 1);
    border: 2px solid #fff;
    border-radius: 8px;
    padding: 2rem;
    color: #02000D;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.review-modal.active .modal-content {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.review-modal .close-modal {
    display: block;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: none;
    color: #999;
    border: none;
    cursor: pointer;
    font-size: 28px;
    line-height: 32px;
    text-align: center;
    transition: background-color 0.3s ease;
    z-index: 1003;
}

.review-modal .close-modal:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Stili per l'animazione della modal */
.review-modal .modal-content {
    opacity: 0;
    transform: translate(-50%, -45%);
    transition: all 0.3s ease;
}

.review-modal.active .modal-content {
    opacity: 1;
    transform: translate(-50%, -50%);
}

/* Nascondi la scrollbar ma mantieni la funzionalità */
.review-modal .modal-content {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.review-modal .modal-content::-webkit-scrollbar {
    display: none;
}

.review-modal .modal-content .review-author h3,
.review-modal .modal-content .review-content p,
.review-modal .modal-content .rating-item .label,
.review-modal .modal-content .numeric-rating {
    color: #02000D;
}

.review-modal .modal-content .author-info,
.review-modal .modal-content .review-date {
    color: rgba(2, 0, 13, 0.7);
}

.review-modal .modal-content .review-details {
    background: rgba(2, 0, 13, 0.1);
}

.review-modal .modal-content .visit-info {
    margin-top: 10px;
    padding-top: 10px;
    font-size: 0.9em;
    margin-bottom: 0;
    padding-bottom: 0;
}

.review-modal .modal-content .star-icon.empty {
    color: rgba(2, 0, 13, 0.3);
}

.original-date {
    font-size: 0.85em;
    color: rgba(2, 0, 13, 0.5);
    margin-left: 5px;
}

.container.recensioni{
    margin-inline: auto;
    
}

.review-title{
    font-size: 2.5rem;
    padding-bottom: 2rem;
    font-weight: 600;
    color: var(--chicca-giallo);
    font-family: var(--della-respira);
    font-size: clamp(2rem, 2.5vw + 1rem, 3.5rem);
    letter-spacing: clamp(0.05ch, 0.1vw + 0.05ch, 0.1ch);
    line-height: clamp(2.5rem, 3vw + 1.5rem, 4rem);
    text-transform: capitalize;
    text-align: center;
    font-weight: 400;
}

.review-modal .review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.review-modal .review-author {
    flex: 1;
    margin-right: 15px;
}

.review-modal .review-rating {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-top: 0;
}

.review-modal .stars {
    margin-bottom: 5px;
    margin-top: 0;
}

.review-modal .review-date {
    font-size: 0.85em;
    color: rgba(2, 0, 13, 0.6);
}

.review-modal .review-content {
    margin: 15px 0;
    max-height: 150px;
    overflow-y: auto;
}

.review-modal .review-content p {
    margin: 0;
    line-height: 1.5;
}

.review-modal .review-details {
    margin: 10px 0;
    padding: 10px;
    border-radius: 6px;
}

.review-modal .rating-item {
    margin-bottom: 5px;
}

.review-modal .rating-item:last-child {
    margin-bottom: 0;
}

/* Stili per il sistema di traduzione */
.translation-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.translation-loading.visible {
    opacity: 1;
}

.translation-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #EDB012;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Stili per le transizioni di testo */
.text-transition-wrapper {
    position: relative;
    overflow: hidden;
}

.text-transition-old,
.text-transition-new {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.text-transition-new {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

/* Animazione per le transizioni di testo */
.text-transition {
    position: relative;
    overflow: hidden;
}

.text-transition-old,
.text-transition-new {
    display: block;
    width: 100%;
}

.text-transition-old {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.text-transition-new {
    opacity: 1;
}