/* ═══════════════════════════════════════════════════════════
   PAGINA DICONO DI NOI — Stile Luxe
   File: /css/dicono_di_noi.css
═══════════════════════════════════════════════════════════ */

/* HERO */
.reviews-hero {
    padding: 140px 0 60px;
    background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.reviews-hero::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.06) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
}

.reviews-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(236, 72, 153, 0.08);
    color: #be185d;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.reviews-eyebrow-dot {
    width: 8px;
    height: 8px;
    background: #ec4899;
    border-radius: 50%;
    animation: reviews-eyebrow-pulse 2s ease-in-out infinite;
}

@keyframes reviews-eyebrow-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.4); }
}

.reviews-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 600;
    line-height: 1.1;
    color: #0a0a0a;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}

.reviews-title em {
    font-style: italic;
    color: #ec4899;
    font-weight: 500;
}

.reviews-sub {
    font-size: 18px;
    line-height: 1.6;
    color: #525252;
    max-width: 640px;
    margin: 0 auto 32px;
    position: relative;
    z-index: 1;
}

/* Meta info: media stelle */
.reviews-meta {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    padding: 14px 24px;
    background: white;
    border: 1px solid #f1f1f1;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    position: relative;
    z-index: 1;
}

.reviews-meta-stars {
    display: flex;
    gap: 3px;
}

.reviews-meta-stars .fa-star.filled { color: #f59e0b; }
.reviews-meta-stars .fa-star.empty { color: #e5e7eb; }
.reviews-meta-stars .fa-star { font-size: 16px; }

.reviews-meta-text {
    text-align: left;
}

.reviews-meta-text strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #0a0a0a;
}

.reviews-meta-text span {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}

/* ALERT FEEDBACK */
.reviews-alert-section {
    padding: 0 0 24px;
}

.reviews-alert {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 14px;
    max-width: 720px;
    margin: 0 auto;
}

.reviews-alert.success {
    background: rgba(34, 197, 94, 0.06);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: #166534;
}

.reviews-alert.danger {
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #991b1b;
}

.reviews-alert-icon {
    flex-shrink: 0;
    font-size: 22px;
}

.reviews-alert-text {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.reviews-alert-close {
    background: none;
    border: none;
    color: inherit;
    opacity: 0.5;
    cursor: pointer;
    font-size: 14px;
    padding: 4px 8px;
    transition: opacity 0.2s;
}

.reviews-alert-close:hover { opacity: 1; }

/* GRID RECENSIONI */
.reviews-grid-section {
    padding: 40px 0 80px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

/* CARD RECENSIONE */
.review-luxe {
    background: white;
    border: 1px solid #f1f1f1;
    border-radius: 18px;
    padding: 28px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.review-luxe::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ec4899, #be185d);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.review-luxe:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.review-luxe:hover::before {
    opacity: 1;
}

.review-stars {
    display: flex;
    gap: 3px;
    margin-bottom: 16px;
}

.review-stars .fa-star.filled { color: #f59e0b; }
.review-stars .fa-star.empty { color: #e5e7eb; }
.review-stars .fa-star { font-size: 16px; }

.review-titolo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 600;
    color: #0a0a0a;
    margin: 0 0 14px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.review-testo {
    font-size: 15px;
    line-height: 1.65;
    color: #4b5563;
    margin: 0 0 24px;
    font-style: italic;
    position: relative;
    padding-left: 16px;
    padding-right: 8px;
    border-left: 2px solid #f1f1f1;
    /* Scroll interno se testo lungo */
    max-height: 200px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(236, 72, 153, 0.3) transparent;
}

/* Scrollbar custom (Webkit: Chrome/Safari/Edge) */
.review-testo::-webkit-scrollbar {
    width: 4px;
}
.review-testo::-webkit-scrollbar-track {
    background: transparent;
}
.review-testo::-webkit-scrollbar-thumb {
    background: rgba(236, 72, 153, 0.25);
    border-radius: 10px;
    transition: background 0.2s;
}
.review-testo::-webkit-scrollbar-thumb:hover {
    background: rgba(236, 72, 153, 0.5);
}

/* Indicatore visivo che c'è altro testo (gradient fade in basso) */
.review-testo::after {
    content: '';
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    display: block;
    height: 24px;
    background: linear-gradient(180deg, transparent, white);
    margin-top: -24px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
}

/* Mostra il fade solo quando il testo scrolla davvero */
.review-luxe:hover .review-testo::after {
    opacity: 1;
}

/* AUTORE */
.review-autore {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 20px;
    border-top: 1px solid #f1f1f1;
}

.review-avatar-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.review-avatar-fallback {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ec4899, #be185d);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.review-autore-info {
    flex: 1;
    min-width: 0;
}

.review-autore-nome {
    font-size: 14px;
    font-weight: 700;
    color: #0a0a0a;
    margin-bottom: 2px;
    line-height: 1.3;
}

.review-autore-ruolo {
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.3;
}

/* VUOTO STATE */
.reviews-empty {
    text-align: center;
    padding: 60px 20px;
    max-width: 480px;
    margin: 0 auto;
}

.reviews-empty-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(190, 24, 93, 0.05));
    color: #ec4899;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 24px;
}

.reviews-empty-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 600;
    color: #0a0a0a;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.reviews-empty-text {
    font-size: 15px;
    line-height: 1.6;
    color: #6b7280;
    margin-bottom: 28px;
}

.reviews-empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #ec4899, #be185d);
    color: white;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 8px 20px rgba(236, 72, 153, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.reviews-empty-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(236, 72, 153, 0.4);
    color: white;
}

/* CTA FINALE */
.reviews-cta-section {
    padding: 80px 0 100px;
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
}

.reviews-cta {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.reviews-cta-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 600;
    line-height: 1.15;
    color: #0a0a0a;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.reviews-cta-title em {
    font-style: italic;
    color: #ec4899;
    font-weight: 500;
}

.reviews-cta-sub {
    font-size: 16px;
    line-height: 1.6;
    color: #6b7280;
    margin-bottom: 32px;
}

.reviews-cta-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.reviews-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #111827;
    color: white;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
}

.reviews-cta-primary:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
    color: white;
}

.reviews-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: #374151;
    text-decoration: none;
    padding: 14px 24px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 14px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.reviews-cta-secondary:hover {
    background: #f9fafb;
    color: #111827;
    border-color: #d1d5db;
}

/* RESPONSIVE MOBILE */
@media (max-width: 768px) {
    .reviews-hero { padding: 110px 0 40px; }
    .reviews-grid-section { padding: 20px 0 60px; }
    .reviews-grid { grid-template-columns: 1fr; gap: 16px; }
    .review-luxe { padding: 22px; }
    .reviews-cta-actions { flex-direction: column; align-items: stretch; }
    .reviews-cta-primary, .reviews-cta-secondary { justify-content: center; }
}
/* ═══════════════════════════════════════════════════════════
   FIX VISIBILITÀ — la pagina non usa index.js per anim,
   quindi rendiamo gli elementi sempre visibili
═══════════════════════════════════════════════════════════ */
.reviews-hero .anim,
.reviews-grid-section .anim,
.reviews-cta-section .anim,
.reviews-alert-section .anim,
.review-luxe.anim {
    opacity: 1 !important;
    transform: none !important;
}