/* Trust Section */
.trust-section {
    padding: 60px 20px;
    background-color: #f7f7f7;
    display: flex;
    justify-content: center;
    align-items: center;
}

.trust-content {
    background-color: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
    max-width: 800px;
    text-align: center;
}

.trust-content h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1d1d1f;
}

.trust-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    text-align: left;
}

/* Review Entry Section */
.review-entry-section {
    padding: 40px 20px;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.review-entry-section > h2 { /* "Le nostre recensioni" */
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: #1d1d1f;
}

.review-cards {
    display: block;
}

.review-card {
    cursor: pointer;
    margin-bottom: 20px;
    padding: 5px 0;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    text-align: left;
    width: auto;
    transition: none !important;
    transform: none !important;
}

.review-card:hover h3 {
    color: #007aff;
}

.review-card h3 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 5px;
    color: #1d1d1f;
    transition: color 0.2s;
}

.review-card p {
    font-size: 1rem;
    color: #555;
    margin: 0;
}

/* Modal Styling */
.review-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(29, 29, 31, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-content {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 30px 40px;
    border-radius: 12px;
    width: 90%;
    max-width: 950px; /* Wider for the carousel */
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    animation: modal-fade-in 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modal-fade-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.close {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}
.close:hover {
    color: #333;
}

.modal-content > h2 {
    font-size: 1.8rem;
    font-weight: 600;
    text-align: left;
    margin-bottom: 25px;
}

/* Horizontal Carousel inside Modal */
.carousel-container {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 20px;
    margin-bottom: -20px; /* Hide scrollbar visually if it overflows */
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: #ccc #f1f1f1; /* Firefox */
}

.carousel::-webkit-scrollbar {
    height: 8px;
}
.carousel::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
.carousel::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}
.carousel::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

.carousel-item {
    flex: 0 0 auto;
    width: 300px;
    margin-right: 20px;
    scroll-snap-align: start;
    background-color: #f7f7f7;
    border-radius: 10px;
    padding: 20px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 150px;
}

.carousel-item p {
    font-size: 1rem;
    font-style: normal;
    line-height: 1.5;
    color: #333;
    margin-bottom: 15px;
}

.carousel-item .rating {
    color: #ffb400;
    font-size: 1.2rem;
}
