/* ─────────────────────────────────────────
   Aura Instagram Feed — Stili v1.1
   ───────────────────────────────────────── */

.aura-ig-feed {
    display: flex;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}

/* ── LAYOUT: FILA ORIZZONTALE (scroll) ── */
.aura-ig-layout-row {
    flex-direction: row;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
    align-items: stretch;
    scrollbar-width: thin;
    scrollbar-color: #c9b49a transparent;
}
.aura-ig-layout-row::-webkit-scrollbar { height: 4px; }
.aura-ig-layout-row::-webkit-scrollbar-thumb { background: #c9b49a; border-radius: 4px; }

.aura-ig-layout-row .aura-ig-item {
    flex: 0 0 200px;
    height: 280px;
}

/* ── LAYOUT: GRIGLIA ── */
.aura-ig-layout-grid {
    flex-wrap: wrap;
}
.aura-ig-layout-grid .aura-ig-item {
    flex: 1 1 calc(25% - 12px);
    min-width: 160px;
    aspect-ratio: 1 / 1;
}

/* ── LAYOUT: MASONRY / SFALSATO (riga unica orizzontale) ── */
.aura-ig-layout-masonry {
    flex-wrap: nowrap;
    overflow-x: auto;
    align-items: center;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: #c9b49a transparent;
}
.aura-ig-layout-masonry::-webkit-scrollbar { height: 4px; }
.aura-ig-layout-masonry::-webkit-scrollbar-thumb { background: #c9b49a; border-radius: 4px; }

.aura-ig-layout-masonry .aura-ig-item {
    flex: 0 0 200px;
    min-width: 0;
}
/* Alterna altezze per effetto sfalsato */
.aura-ig-layout-masonry .aura-ig-item:nth-child(odd)  { height: 290px; }
.aura-ig-layout-masonry .aura-ig-item:nth-child(even) { height: 215px; }

/* ── SINGOLO ITEM ── */
.aura-ig-item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 10px;
    text-decoration: none;
    background: #f0ebe4;
    cursor: pointer;
}

.aura-ig-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.aura-ig-item:hover img { transform: scale(1.06); }

/* ── PLAY ICON (video/reel) ── */
.aura-ig-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: opacity 0.2s;
}
.aura-ig-item:hover .aura-ig-play { opacity: 0.7; }

/* ── OVERLAY CAPTION ── */
.aura-ig-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 14px;
    box-sizing: border-box;
}
.aura-ig-item:hover .aura-ig-overlay { opacity: 1; }

.aura-ig-caption {
    color: #fff;
    font-size: 0.78rem;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── DOTS CAROSELLO (mobile) ── */
.aura-ig-dots {
    display: none;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
}
.aura-ig-dots .aura-ig-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ccc;
    transition: background 0.2s;
}
.aura-ig-dots .aura-ig-dot.active { background: #8b6f4e; }

/* ── BOTTONE "VEDI SU INSTAGRAM" ── */
.aura-ig-cta-wrap {
    text-align: center;
    margin-top: 20px;
}
.aura-ig-cta {
    display: inline-block;
    padding: 10px 28px;
    border: 1.5px solid #8b6f4e;
    border-radius: 30px;
    color: #8b6f4e;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: background 0.25s, color 0.25s;
    background: transparent;
}
.aura-ig-cta:hover {
    background: #8b6f4e;
    color: #fff;
}

/* ─────────────────────────────────────────
   MOBILE  (≤ 640px)
   ───────────────────────────────────────── */
@media (max-width: 640px) {

    /* CAROSELLO mobile */
    .aura-ig-mobile-carousel {
        overflow-x: auto;
        flex-wrap: nowrap;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 0;
    }
    .aura-ig-mobile-carousel::-webkit-scrollbar { display: none; }

    .aura-ig-mobile-carousel .aura-ig-item {
        flex: 0 0 80vw;
        height: 80vw;
        scroll-snap-align: center;
        margin-top: 0 !important;
        aspect-ratio: 1 / 1 !important;
    }

    .aura-ig-mobile-carousel + .aura-ig-dots { display: flex; }

    /* STACK mobile */
    .aura-ig-mobile-stack {
        flex-direction: column;
        overflow-x: visible;
        flex-wrap: nowrap;
    }
    .aura-ig-mobile-stack .aura-ig-item {
        flex: 0 0 auto;
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        margin-top: 0 !important;
    }

    /* Griglia → 2 colonne su mobile */
    .aura-ig-layout-grid.aura-ig-mobile-stack .aura-ig-item,
    .aura-ig-layout-masonry.aura-ig-mobile-stack .aura-ig-item {
        flex: 1 1 calc(50% - 6px);
    }
}

/* ── FRECCE NAVIGAZIONE (desktop) ── */
.aura-ig-wrap {
    position: relative;
}
.aura-ig-arrow-l,
.aura-ig-arrow-r {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.92);
    border: 1px solid #e0d8cf;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.25s, background 0.2s;
    padding: 0;
}
.aura-ig-arrow-l { left: -18px; }
.aura-ig-arrow-r { right: -18px; }
.aura-ig-arrow-l:hover,
.aura-ig-arrow-r:hover { background: #fff; }
.aura-ig-arrow-l svg,
.aura-ig-arrow-r svg { display: block; }

@media (max-width: 640px) {
    .aura-ig-arrow-l,
    .aura-ig-arrow-r { display: none; }
}
