/* ---- SHARED-PAGES STYLES ---- */

/* ── Reviews Section ───────────────────────────── */
.reviews-section {
    padding: var(--section-padding);
}

.reviews-header {
    text-align: center;
    margin-bottom: 48px;
}

/* ── Estetica Luxury per Header Recensioni ── */
.reviews-header h2 {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    color: var(--dark);
    line-height: 1.1;
    margin-bottom: 30px;
    font-weight: 500;
}

.reviews-header h2 em {
    font-style: italic;
    color: var(--gold);
    font-weight: 400;
}

/* ── Overrides Stile per Widget Elfsight (Integrazione Design System) ── */
.reviews-widget-container .elfsight-app-40af295c-20cc-4fae-a6b3-fc89e168ead9 {
    max-width: 100%;
}

.reviews-widget-container {
    --eapps-google-reviews-badge-background-color: transparent !important;
    --eapps-google-reviews-review-background-color: var(--white) !important;
}

.reviews-widget-container [class*="eapps-google-reviews"],
.reviews-widget-container [class*="Widget__WidgetContainer"] * {
    font-family: var(--font-sans), sans-serif !important;
}

.reviews-widget-container [class*="WidgetBackground__Container"] {
    background-color: transparent !important;
}

.reviews-widget-container [class*="Header__HeaderContainer"] {
    background: var(--ivory-light) !important;
    border-radius: var(--radius-lg, 12px) !important;
    border: 1px solid var(--border-light) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02) !important;
}

.reviews-widget-container [class*="CarouselItem__Container"],
.reviews-widget-container [class*="ReviewItem__Container"] {
    background: var(--white) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-lg, 12px) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04) !important;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}

.reviews-widget-container [class*="CarouselItem__Container"]:hover,
.reviews-widget-container [class*="ReviewItem__Container"]:hover {
    transform: translateY(-5px) !important;
    border-color: var(--gold-bg) !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08) !important;
}

.reviews-widget-container [class*="Star__StarIcon"] path {
    fill: var(--gold) !important;
}

.reviews-widget-container [class*="ReviewText__ReviewTextContainer"] {
    font-size: 0.95rem !important;
    font-style: italic !important;
    color: var(--text-dark) !important;
    line-height: 1.6 !important;
}

.reviews-widget-container [class*="FreeLink__Container"] {
    opacity: 0.2 !important;
    filter: grayscale(1) !important;
    transition: opacity 0.3s !important;
}
.reviews-widget-container [class*="FreeLink__Container"]:hover {
    opacity: 1 !important;
}

/* -------------------------------------- */

/* ── Scroll Animations ─────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}


/* -------------------------------------- */

@media (max-width: 768px) {
    /* ── Story rows (Chi Siamo) ── */
    .story-row,
    .story-row.story-reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: 32px;
        margin-bottom: 80px;
    }

    .story-row.story-reverse>* {
        direction: ltr;
    }

    .story-image-wrap {
        height: 280px;
        box-shadow: none;
    }

    .story-text {
        padding: 0;
    }

    .story-text h2 {
        font-size: 2rem;
        margin-bottom: 20px;
    }

    .story-text p {
        font-size: 1rem;
    }

    .story-section {
        padding: 60px 0 20px;
    }

    /* ── About hero ── */
    .about-hero {
        min-height: 50vh;
        height: 50vh;
    }

    /* ── Intro glass card (Chi Siamo / Servizi) ── */
    .intro-glass-card {
        padding: 40px 24px;
    }

    /* ── Contact section (Chi Siamo) ── */
    .contact-details-side {
        padding: 40px 24px;
    }

    /* ── Lenti split section (index) ── */
    .section#lenti .p-5 {
        padding: 2rem 1.5rem;
    }

    /* ── News featured card ── */
    .news-featured-content {
        padding: 30px 24px;
    }


/* -------------------------------------- */

}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        text-align: center;
        justify-content: center;
    }

    /* Hero ribbon — 480px: 2×2 grid */
    .hero-ribbon {
        flex-wrap: wrap;
        padding: 12px 16px;
    }

    .hero-ribbon-item {
        flex: 0 0 calc(50% - 1px);
    }

    .hero-ribbon-dot {
        display: none;
    }

    .stats-bar .container {
        flex-direction: column;
        align-items: center;
    }

    .stat-item {
        flex: none;
    }

    .grid-4 {
        grid-template-columns: 1fr;
    }

    .brands-track {
        gap: 24px;
    }

    .booking-left h1 {
        font-size: 1.6rem;
    }

    /* ── Story rows further compact ── */
    .story-row,
    .story-row.story-reverse {
        gap: 20px;
        margin-bottom: 60px;
    }

    .story-image-wrap {
        height: 220px;
    }

    /* ── Team grid single column ── */
    .team-grid {
        grid-template-columns: 1fr;
    }

    /* ── Service card body padding ── */
    .service-card-min-body {
        padding: 24px 20px;
    }

    /* ── Contact card ── */
    .contact-premium-card {
        border-radius: 0;
    }

    .contact-details-side {
        padding: 32px 16px;
    }

    .map-side {
        min-height: 280px;
    }

    /* ── Legal ── */
    .legal-card {
        padding: 24px 16px;
    }

    .legal-content {
        margin: 40px auto;
    }
}

/* ── Desktop Carousels (News/Reviews) ─────────────────────────── */
@media (min-width: 769px) {
    .desktop-carousel {
        display: flex !important;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 30px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .desktop-carousel::-webkit-scrollbar {
        display: none;
    }

    .desktop-carousel>* {
        flex: 0 0 380px;
        scroll-snap-align: start;
        max-width: 380px;
    }

    .desktop-carousel .review-card {
        flex: 0 0 340px;
        max-width: 340px;
    }
}

/* ── Google Reviews Section (Manual Fallback) ── */
.reviews-section {
    background: var(--white);
    padding: 100px 0;
}

.reviews-header {
    margin-bottom: 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.reviews-google-badge {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    background: var(--white);
    padding: 12px 24px;
    border-radius: 100px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    margin-top: 24px;
}

.google-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.google-stars {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    color: #fbbc04;
    /* Google Star Color */
    font-weight: 700;
}

.google-stars span {
    color: var(--dark);
    margin-left: 4px;
}

.google-source {
    font-size: 0.7rem;
    color: var(--text-light);
    font-weight: 500;
}

.review-card {
    background: var(--ivory-light);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition);
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold-bg);
}

.review-stars {
    color: #fbbc04;
    font-size: 0.8rem;
    margin-bottom: 16px;
    display: flex;
    gap: 2px;
}

.review-card p.review-text {
    font-size: 0.8rem;
    line-height: 1.3;
    color: var(--text-dark);
    font-style: italic;
    flex: 1;
}

.review-author-name {
    font-weight: 700;
    font-size: 0.90rem;
    color: var(--dark);
    margin-bottom: 4px;
}

.review-verified {
    font-size: 0.65rem;
    font-weight: 600;
    color: #34a853;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* ── Animation Helpers ─────────────────────────── */
.js-enabled .animate-up,
.js-enabled .grid-animate>*,
.js-enabled .hero-content>* {
    opacity: 0;
    will-change: transform, opacity;
}

/* Fallback if JS fails or for initial reveal */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {

    .animate-up,
    .reveal,
    .grid-animate>* {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

@media (max-width: 768px) {
    .reviews-google-badge {
        flex-direction: column;
        text-align: center;
        border-radius: var(--radius);
        padding: 20px;
    }

    .google-info {
        align-items: center;
        margin-top: 8px;
    }
}



/* -------------------------------------- */



/* ── CTA Banner ────────────────────────────────── */
.cta-banner {
    position: relative;
    padding: 120px 0;
    text-align: center;
    overflow: hidden;
    color: var(--white);
}

.cta-banner-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.cta-banner-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 8, 4, 0.95) 0%, rgba(184, 146, 62, 0.2) 100%);
}

.cta-banner .container {
    position: relative;
    z-index: 1;
}

.cta-banner h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 24px;
    color: var(--white);
    line-height: 1.1;
}

.cta-banner h2 em {
    color: var(--gold);
    font-style: italic;
}

.cta-banner .btn-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}


/* -------------------------------------- */

