/* ==========================================================================
   SCOPED LIVE EMBEDS FROM FIGLI DI... (GIFT.HTML + OFFERTA CASA DI & BISTRÒ)
   ========================================================================== */

.figli-embed-window {
    position: relative;
    width: 100%;
    min-height: 550px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background-color: #1B1817;
    margin-bottom: 28px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
    display: flex;
    flex-direction: column;
    isolation: isolate;
}

/* ==========================================================================
   1. GIFT.HTML LIVE STAGE (#figli-gift-embed)
   ========================================================================== */
#figli-gift-embed {
    font-family: 'Source Sans 3', sans-serif;
    color: #FFFFFF;
    justify-content: center;
    align-items: center;
}

#figli-gift-embed #figli-particles-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

#figli-gift-embed .bg-gradient {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 100% 70% at 50% 100%, rgba(250, 91, 0, 0.09) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 15% 20%, rgba(250, 91, 0, 0.05) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 85% 10%, rgba(250, 91, 0, 0.04) 0%, transparent 50%),
        linear-gradient(170deg, #1f1b19 0%, #1B1817 40%, #110e0c 100%);
}

#figli-gift-embed .stage {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px 24px;
}

#figli-gift-embed .content {
    text-align: center;
    max-width: 560px;
    width: 100%;
}

#figli-gift-embed .kicker {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: #FA5B00;
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

#figli-gift-embed .kicker.visible {
    opacity: 1;
    transform: translateY(0);
}

#figli-gift-embed .gift-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.6rem, 4.5vw, 4.4rem);
    font-weight: 900;
    font-style: italic;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: #FFFFFF;
    margin: 0;
    overflow: hidden;
}

#figli-gift-embed .gift-title .word-wrap {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
}

#figli-gift-embed .gift-title .word {
    display: inline-block;
    transform: translateY(110%);
    opacity: 0;
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}

#figli-gift-embed .gift-title .word.visible {
    transform: translateY(0);
    opacity: 1;
}

#figli-gift-embed .gift-title .name-highlight {
    color: #FA5B00;
}

#figli-gift-embed .title-rule {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 24px 0;
    opacity: 0;
    transform: scaleX(0.4);
    transition: opacity 1s ease, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

#figli-gift-embed .title-rule.visible {
    opacity: 1;
    transform: scaleX(1);
}

#figli-gift-embed .rule-line {
    height: 1px;
    flex: 1;
    max-width: 90px;
    background: linear-gradient(90deg, transparent, rgba(250, 91, 0, 0.5));
}

#figli-gift-embed .rule-line.right {
    background: linear-gradient(270deg, transparent, rgba(250, 91, 0, 0.5));
}

#figli-gift-embed .rule-diamond {
    width: 6px;
    height: 6px;
    background: #FA5B00;
    transform: rotate(45deg);
    flex-shrink: 0;
    opacity: 0.75;
}

#figli-gift-embed .gift-description {
    font-size: clamp(0.92rem, 1.2vw, 1.04rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.75;
    max-width: 460px;
    margin: 0 auto 26px;
    text-wrap: balance;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

#figli-gift-embed .gift-description.visible {
    opacity: 1;
    transform: translateY(0);
}

#figli-gift-embed .gift-details {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

#figli-gift-embed .gift-details.visible {
    opacity: 1;
    transform: translateY(0);
}

#figli-gift-embed .detail-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.04em;
}

#figli-gift-embed .detail-item strong {
    color: #FFFFFF;
    font-weight: 600;
    margin-left: 2px;
}

#figli-gift-embed .detail-sep {
    width: 4px;
    height: 4px;
    background: #FA5B00;
    opacity: 0.55;
    border-radius: 50%;
}

#figli-gift-embed .cta-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

#figli-gift-embed .cta-wrapper.visible {
    opacity: 1;
    transform: translateY(0);
}

#figli-gift-embed .btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    padding: 15px 38px;
    background: #FA5B00;
    color: #FFFFFF;
    border-radius: 100px;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
    animation: figliPulseGlow 2.8s ease-in-out infinite 1s;
}

#figli-gift-embed .btn-cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 55px rgba(250, 91, 0, 0.6);
    animation-play-state: paused;
}

#figli-gift-embed .btn-cta svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex-shrink: 0;
}

#figli-gift-embed .btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 30px;
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.35s ease;
}

#figli-gift-embed .btn-ghost:hover {
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-2px);
}

#figli-gift-embed .btn-ghost svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@keyframes figliPulseGlow {
    0%, 100% { box-shadow: 0 8px 28px rgba(250, 91, 0, 0.4); }
    50%      { box-shadow: 0 8px 48px rgba(250, 91, 0, 0.75), 0 0 80px rgba(250, 91, 0, 0.2); }
}

/* ==========================================================================
   2. OFFERTA.HTML LIVE SHOWCASE (#figli-offerta-embed — CASA DI & BISTRÒ)
   ========================================================================== */
#figli-offerta-embed {
    font-family: 'Source Sans 3', sans-serif;
    color: #FFFFFF;
    background-color: #1B1817;
    justify-content: flex-start;
}

#figli-offerta-embed .offerta-tabs-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #110F0E;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 12px;
    gap: 10px;
}

#figli-offerta-embed .offerta-tab-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    color: #FFFFFF;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
}

#figli-offerta-embed .offerta-tab-btn .tab-eyebrow {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #a0a0a0;
    margin-bottom: 2px;
    transition: color 0.3s ease;
}

#figli-offerta-embed .offerta-tab-btn .tab-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #FFFFFF;
}

#figli-offerta-embed .offerta-tab-btn.active {
    border-color: #FA5B00;
    background: rgba(250, 91, 0, 0.1);
}

#figli-offerta-embed .offerta-tab-btn.active .tab-eyebrow {
    color: #FA5B00;
}

#figli-offerta-embed .offerta-panel {
    display: none;
    flex-direction: column;
    flex: 1;
    animation: offertaSlideIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

#figli-offerta-embed .offerta-panel.active {
    display: flex;
}

@keyframes offertaSlideIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

#figli-offerta-embed .carousel {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #2a2523;
    flex-shrink: 0;
}

#figli-offerta-embed .carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    width: 100%;
    height: 100%;
    scrollbar-width: none;
}

#figli-offerta-embed .carousel-track::-webkit-scrollbar {
    display: none;
}

#figli-offerta-embed .carousel-slide {
    flex: 0 0 100%;
    min-width: 100%;
    scroll-snap-align: center;
    position: relative;
    height: 100%;
}

#figli-offerta-embed .carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#figli-offerta-embed .carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px 18px 14px;
    background: linear-gradient(transparent, rgba(27, 24, 23, 0.95));
    font-weight: 500;
    color: #FFFFFF;
    font-size: 0.9rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

#figli-offerta-embed .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(27, 24, 23, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #FFFFFF;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

#figli-offerta-embed .carousel-btn:hover {
    background: #FA5B00;
    border-color: #FA5B00;
    transform: translateY(-50%) scale(1.08);
}

#figli-offerta-embed .carousel-btn.prev { left: 12px; }
#figli-offerta-embed .carousel-btn.next { right: 12px; }

#figli-offerta-embed .carousel-btn svg {
    width: 18px;
    height: 18px;
    stroke: #FFFFFF;
    stroke-width: 2;
    fill: none;
}

#figli-offerta-embed .offerta-info-body {
    padding: 22px 24px 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

#figli-offerta-embed .offerta-head-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#figli-offerta-embed .eyebrow {
    color: #FA5B00;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
}

#figli-offerta-embed h4 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.65rem, 2.4vw, 2.15rem);
    font-weight: 700;
    line-height: 1.1;
    color: #FFFFFF;
    margin: 0 0 6px 0;
}

#figli-offerta-embed .location-pin {
    color: #a0a0a0;
    font-size: 0.85rem;
    margin: 0;
}

#figli-offerta-embed .rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

#figli-offerta-embed .rating-score {
    background: #FA5B00;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 1.15rem;
    padding: 6px 11px;
    border-radius: 6px;
    line-height: 1;
}

#figli-offerta-embed .rating-text strong {
    display: block;
    color: #FFFFFF;
    font-size: 0.92rem;
    line-height: 1.2;
}

#figli-offerta-embed .rating-text span {
    color: #FA5B00;
    font-size: 0.76rem;
}

#figli-offerta-embed .features-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
    margin: 0;
    padding: 0;
}

#figli-offerta-embed .features-list li {
    position: relative;
    padding-left: 20px;
    font-size: 0.9rem;
    color: #EAEAEA;
    line-height: 1.4;
}

#figli-offerta-embed .features-list li::before {
    content: "✓";
    color: #FA5B00;
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 700;
}

@media (max-width: 600px) {
    .figli-embed-window {
        min-height: 490px;
    }
    #figli-offerta-embed .features-list {
        grid-template-columns: 1fr;
    }
    #figli-offerta-embed .carousel {
        height: 210px;
    }
}
