/* =========================================================================
   Shoppi — Home 2026
   Header sottile + feed di contenuti shoppable + footer a colonne.
   Caricato DOPO home.css: qui stanno solo le differenze, non una seconda
   copia del design system (i token --primary-color, --accent-red, ecc.
   vengono da home.css).
   ========================================================================= */

/* Questo foglio viene usato anche fuori dalla home (pagina preferiti), dove
   home.css — che definisce i token — non e` caricato: senza queste dichiarazioni
   i bottoni finivano bianchi su bianco. Stessi valori di home.css, quindi sulla
   home non cambia niente. */
:root {
    --primary-color: #2d324c;
    --shoppi-purple: #6c5ce7;
    --accent-red: #ff4757;
    --accent-yellow: #ffa502;
    --text-dark: #2d3436;
    --text-muted: #636e72;
    --border-light: #dfe6e9;
    --bg-light: #f8f9fa;
    --bg-secondary: #f1f2f6;
    --white: #ffffff;
}

/* ---------- 1. Header: meno alto, piu` fermo ----------------------------- */

/* `dist/css/styles.css` — il foglio dell'era Bootstrap 3 — ha un selettore
   lunghissimo che comprende `.header`:
       .fullwidth,.header,.content,… { float:left; width:100% }
   Il nostro <header class="header"> finisce quindi flottato. Finche' in home
   lo copre il <main> (che ha sfondo e z-index) non si nota, ma su ogni altra
   pagina il contenuto che segue si ritrova zero larghezza disponibile e
   collassa: testo presente nel DOM e schermo bianco.
   Si toglie il float solo al nostro header (`header.header`), cosi' le pagine
   legacy che usano `.header` su un <div> restano come sono. */
header.header {
    float: none;
    width: auto;
}

.top-bar {
    background: #1e293b;
    color: #fff;
    padding: 6px 0;
    font-size: 0.8rem;
    width: 100%;
}

.top-bar-dropdown>a {
    padding: 4px 10px;
    font-size: 0.8rem;
}

.top-bar-menu {
    gap: 0.35rem;
}

.top-bar-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    transition: background 0.2s ease, color 0.2s ease;
}

.top-bar-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.top-bar-link--sell {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.ship-to-label {
    opacity: 0.7;
    font-weight: 500;
}

.ship-to-flag {
    width: 18px !important;
    height: 13px !important;
    border-radius: 2px;
}

.ship-to-country {
    font-weight: 700;
}

.header-main {
    padding: 0.6rem 0;
}

.header-bar {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.header-bar .logo img {
    max-height: 34px;
}

.header-bar .search-container {
    flex: 1 1 auto;
    max-width: none;
    margin: 0;
}

.header-bar .search-input {
    padding: 10px 120px 10px 44px;
    font-size: 0.92rem;
    border-radius: 10px;
    box-shadow: none;
    border-color: var(--border-light);
    background: var(--white);
}

.header-bar .search-input:focus {
    transform: none;
    box-shadow: 0 0 0 3px rgba(45, 50, 76, 0.08);
}

.header-bar .search-icon {
    left: 16px;
    font-size: 0.95rem;
}

.header-bar .search-button {
    right: 3px;
    padding: 8px 22px;
    border-radius: 8px;
    font-size: 0.88rem;
    box-shadow: none;
    display: block;
}

.header-bar .search-button:hover {
    transform: translateY(-50%);
    box-shadow: none;
}

.header-actions {
    gap: 0.5rem;
    flex: 0 0 auto;
}

.header-action {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border-radius: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.header-action:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
}

.header-action__icon {
    position: relative;
    display: inline-flex;
}

.header-action__badge {
    position: absolute;
    top: -7px;
    right: -9px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 9px;
    background: var(--accent-red);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 16px;
    text-align: center;
}

.btn-ghost,
.btn-solid {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.btn-ghost {
    border: 1px solid var(--border-light);
    color: var(--primary-color);
}

.btn-ghost:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-solid {
    background: var(--accent-red);
    color: #fff;
    border: 1px solid var(--accent-red);
}

.btn-solid:hover {
    background: #ff3344;
    color: #fff;
}

/* Barra categorie.
   `overflow-x: auto` sulla barra intera tagliava il menu a tendina di "Tutte
   le categorie": lo scorrimento ora e` solo sulla lista, e la tendina vive
   fuori da quel contenitore. */
.thematic-menu-bar {
    padding: 0;
    background: var(--white);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    overflow: visible;
    position: relative;
    z-index: 1040;
}

.thematic-bar-inner {
    display: flex;
    align-items: center;
    gap: 4px;
}

.thematic-all {
    flex: 0 0 auto;
}

.thematic-scroll {
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    white-space: nowrap;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.thematic-scroll::-webkit-scrollbar {
    display: none;
}

.thematic-menu-list {
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.thematic-menu-item {
    display: inline-block;
}

.thematic-menu-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 9px 12px;
    border-radius: 0;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.thematic-menu-link:hover {
    background: transparent;
    transform: none;
    color: var(--primary-color);
}

.thematic-menu-link--all {
    color: var(--primary-color);
    font-weight: 700;
}

.thematic-menu-link.highlight {
    color: var(--accent-red);
    font-weight: 700;
}

@media (max-width: 991px) {
    .header-bar {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .header-bar .logo {
        order: 1;
    }

    .header-bar .header-actions {
        order: 2;
        margin-left: auto;
    }

    .header-bar .search-container {
        order: 3;
        flex-basis: 100%;
    }

    .header-action__txt {
        display: none;
    }
}

@media (max-width: 575px) {
    /* Su schermo stretto la barra in cima andava a capo e il paese finiva
       sotto ai propri link. Si toglie l'etichetta "Spedisci in" e resta la
       bandiera col nome, che e` l'informazione vera. */
    .top-bar {
        font-size: 0.72rem;
    }

    /* home.css impila questa barra in colonna sotto i 576px, il che con le
       nuove voci diventa un blocco di tre righe prima ancora del logo. */
    .top-bar .container {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0.4rem;
    }

    .ship-to-label {
        display: none;
    }

    /* home.css invertiva l'ordine quando la barra era in colonna: tornata in
       riga, il paese resta a sinistra come sul desktop. */
    .top-bar-contact {
        order: 0;
    }

    .top-bar-menu {
        order: 0;
        gap: 0.1rem;
    }

    .top-bar-dropdown>a {
        padding: 4px 6px;
    }
}

/* ---------- 2. Le storie dei negozi ------------------------------------- */

/* Le storie erano `inline-flex` dentro un contenitore `nowrap`, e le scatole
   inline si allineano sulla PRIMA RIGA DI TESTO: con nomi di negozio di
   lunghezza diversa — e i domini interi lo sono — chi andava a capo si
   trascinava dietro anche il cerchio, e la fila usciva a scalini. Con flex e
   `align-items: flex-start` i cerchi partono tutti dalla stessa quota e il
   nome, sotto, occupa due righe fisse. */
.discovery-categories.is-merchants #discoveryCollectionsContainer {
    display: flex;
    align-items: flex-start;
    gap: 26px;
    white-space: normal;
}

/* Rete di sicurezza per la lista di ripiego (categorie), che resta inline. */
.category-story {
    vertical-align: top;
}

.discovery-categories.is-merchants .category-story {
    flex: 0 0 auto;
    width: 104px;
    margin-right: 0;
    text-align: center;
}

.discovery-categories.is-merchants .story-circle {
    width: 76px;
    height: 76px;
    padding: 2px;
    margin: 0 auto 10px;
}

/* Una riga sola, troncata. I nomi qui sono spesso domini interi: mandarli a
   capo li spezza in mezzo al TLD ("prismlondon.co / m"), che si legge peggio
   di un troncamento onesto. */
.discovery-categories.is-merchants .category-story span {
    display: block;
    width: 100%;
    font-size: 0.78rem;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.story-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.story-initial {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.4rem;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--shoppi-purple) 100%);
}

/* ---------- 2b. Le storie del negozio (visore a schermo intero) ---------- */

.shop-story {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: none;
    align-items: center;
    justify-content: center;
}

.shop-story.is-open {
    display: flex;
}

.shop-story__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 14, 22, 0.92);
    backdrop-filter: blur(6px);
}

.shop-story__stage {
    position: relative;
    width: min(430px, 100vw);
    height: min(860px, 100vh);
    background: #0d0f14;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

@media (max-width: 575px) {
    .shop-story__stage {
        border-radius: 0;
    }
}

/* barre di avanzamento */
.shop-story__bars {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    z-index: 4;
    display: flex;
    gap: 4px;
}

.shop-story__bar {
    flex: 1 1 0;
    height: 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.28);
    overflow: hidden;
}

.shop-story__bar span {
    display: block;
    height: 100%;
    width: 0;
    background: #fff;
}

.shop-story__bar.is-done span {
    width: 100%;
}

.shop-story__bar.is-live span {
    animation: shop-story-fill linear forwards;
}

@keyframes shop-story-fill {
    from { width: 0; }
    to { width: 100%; }
}

.shop-story__top {
    position: absolute;
    top: 22px;
    left: 12px;
    right: 12px;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.shop-story__who {
    display: flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    color: #fff;
    min-width: 0;
}

.shop-story__avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    flex: 0 0 34px;
    background: rgba(255, 255, 255, 0.15) center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    color: #fff;
}

.shop-story__names {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.shop-story__name {
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shop-story__when {
    font-size: 0.72rem;
    opacity: 0.7;
}

.shop-story__close {
    border: 0;
    background: none;
    color: #fff;
    font-size: 1.2rem;
    padding: 4px 8px;
    cursor: pointer;
    opacity: 0.85;
}

.shop-story__close:hover {
    opacity: 1;
}

.shop-story__media {
    position: absolute;
    inset: 0;
    background: #0d0f14 center/cover no-repeat;
}

.shop-story__media::after {
    /* Il testo in basso deve restare leggibile su qualunque foto. */
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55) 0%, transparent 26%, transparent 40%, rgba(0, 0, 0, 0.85) 100%);
}

.shop-story__nav {
    position: absolute;
    top: 60px;
    bottom: 190px;
    width: 34%;
    z-index: 3;
    cursor: pointer;
}

.shop-story__nav--prev {
    left: 0;
}

.shop-story__nav--next {
    right: 0;
}

.shop-story__bottom {
    position: relative;
    z-index: 4;
    margin-top: auto;
    padding: 16px 16px 18px;
    color: #fff;
}

.shop-story__title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shop-story__eyebrow {
    margin: 0 0 8px;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    opacity: 0.65;
}

.shop-story__eyebrow.is-hidden,
.shop-story__sells.is-hidden {
    display: none;
}

.shop-story__sells {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-bottom: 12px;
    scrollbar-width: none;
}

.shop-story__sells::-webkit-scrollbar {
    display: none;
}

.shop-story__sell {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 220px;
    padding: 6px 12px 6px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
    color: #fff;
    text-decoration: none;
}

.shop-story__sell:hover {
    background: rgba(255, 255, 255, 0.24);
    color: #fff;
}

.shop-story__sell img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 30px;
}

.shop-story__sell-txt {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.shop-story__sell-name {
    font-size: 0.74rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shop-story__sell-price {
    font-size: 0.8rem;
    font-weight: 800;
}

.shop-story__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 999px;
    background: #fff;
    color: #14161d;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
}

.shop-story__cta:hover {
    color: #14161d;
    opacity: 0.9;
}

.shop-story__loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    z-index: 5;
}

/* ---------- 3. Il feed --------------------------------------------------- */

.section--feed {
    padding-top: 1.75rem;
    padding-bottom: 2.5rem;
}

.feed-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.feed-tabs {
    display: inline-flex;
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 3px;
    gap: 2px;
}

.feed-tab {
    border: 0;
    background: transparent;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.feed-tab:hover {
    color: var(--primary-color);
}

.feed-tab.is-active {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.feed-count {
    margin: 0;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.feed-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

@media (min-width: 1200px) {
    .feed-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .feed-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.feed-skeleton {
    height: 420px;
    border-radius: 14px;
    background: linear-gradient(100deg, var(--bg-secondary) 30%, #fafbfc 50%, var(--bg-secondary) 70%);
    background-size: 220% 100%;
    animation: feed-shimmer 1.3s linear infinite;
}

@keyframes feed-shimmer {
    from { background-position: 180% 0; }
    to { background-position: -80% 0; }
}

/* --- la card --- */

.feed-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.feed-card:hover {
    box-shadow: 0 12px 28px rgba(45, 50, 76, 0.1);
    transform: translateY(-2px);
}

.feed-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
}

.feed-card__store {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.feed-card__avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 34px;
    background: var(--bg-secondary);
}

.feed-card__avatar--letter {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--shoppi-purple) 100%);
}

.feed-card__store-txt {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.feed-card__store-name {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.feed-card__meta {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.feed-card__dot {
    margin: 0 3px;
}

.feed-follow {
    flex: 0 0 auto;
    border: 1px solid var(--border-light);
    background: var(--white);
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.feed-follow:hover {
    border-color: var(--primary-color);
}

.feed-follow .feed-follow__tick {
    display: none;
    margin-left: 5px;
    font-size: 0.65rem;
}

.feed-follow.is-following {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.feed-follow.is-following .feed-follow__tick {
    display: inline-block;
}

.feed-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: var(--bg-secondary);
    cursor: pointer;
    overflow: hidden;
}

.feed-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.feed-card:hover .feed-card__img {
    transform: scale(1.03);
}

.feed-card__play,
.feed-card__zoom {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    backdrop-filter: blur(4px);
}

.feed-card__play {
    inset: 0;
    margin: auto;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    font-size: 1.05rem;
    padding-left: 4px;
}

.feed-card__zoom {
    right: 10px;
    bottom: 10px;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.4);
    font-size: 0.72rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.feed-card:hover .feed-card__zoom {
    opacity: 1;
}

.feed-card__body {
    padding: 14px;
    flex: 1 1 auto;
}

.feed-card__title {
    margin: 0 0 12px;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--primary-color);
    cursor: pointer;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.feed-card__eyebrow {
    margin: 0 0 8px;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* --- cosa si compra dentro il contenuto --- */

.feed-sells {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.feed-sell {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-light);
    border-radius: 10px;
    padding: 6px 8px 6px 6px;
}

.feed-sell__link {
    display: flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    color: inherit;
    min-width: 0;
    flex: 1 1 auto;
}

.feed-sell__img {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    object-fit: cover;
    flex: 0 0 38px;
    background: var(--bg-secondary);
}

.feed-sell__txt {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.feed-sell__title {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.feed-sell__price {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--accent-red);
}

.feed-sell__add {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    background: var(--white);
    color: var(--primary-color);
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.feed-sell__add:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: #fff;
}

.feed-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-top: 1px solid var(--border-light);
}

.feed-card__cta {
    border: 0;
    background: none;
    padding: 0;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--primary-color);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.feed-card__cta i {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

.feed-card__cta:hover i {
    transform: translateX(3px);
}

.feed-card__wish {
    border: 0;
    background: none;
    padding: 4px;
    color: var(--text-muted);
    font-size: 0.95rem;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.feed-card__wish:hover,
.feed-card__wish.is-wished {
    color: var(--accent-red);
}

.feed-card__wish.is-wished {
    transform: scale(1.1);
}

.feed-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.feed-empty h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 6px;
}

.btn-load-more {
    border: 1px solid var(--border-light);
    background: var(--white);
    color: var(--primary-color);
    border-radius: 999px;
    padding: 12px 34px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-load-more:hover {
    border-color: var(--primary-color);
    background: var(--bg-light);
}

/* ---------- 3b. Pagina preferiti ---------------------------------------- */

.wishlist-state {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--text-muted);
}

.wishlist-state i {
    font-size: 2.6rem;
    opacity: 0.35;
    margin-bottom: 1rem;
    display: block;
}

.wishlist-state h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.wishlist-state p {
    max-width: 46ch;
    margin: 0 auto 1.5rem;
    font-size: 0.92rem;
}

.wishlist-state__actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.wish-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    overflow: hidden;
}

.wish-card__media {
    display: block;
    aspect-ratio: 4 / 3;
    background: var(--bg-secondary);
}

.wish-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wish-card.is-noimg .wish-card__media img {
    visibility: hidden;
}

.wish-card__body {
    padding: 12px 14px;
    flex: 1 1 auto;
}

.wish-card__title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    margin-bottom: 6px;
}

.wish-card__price {
    display: block;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--accent-red);
}

.wish-card__foot {
    padding: 10px 14px;
    border-top: 1px solid var(--border-light);
}

.wish-card__remove {
    border: 0;
    background: none;
    padding: 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
}

.wish-card__remove:hover {
    color: var(--accent-red);
}

/* =========================================================================
   3c. ARMONIZZAZIONE — il resto della home parla la lingua del feed.

   Sotto al feed convivevano tre linguaggi diversi: titoli in gradiente
   sfumato, card con ombre da 40px e angoli da 24px, icone con gradienti
   arancioni, un altro rosso per i link. Qui non si riscrive niente: si
   riportano quelle sezioni alle stesse regole della card del feed —
   fondo bianco, bordo da 1px, angoli 14px, ombra solo al passaggio del
   mouse, blu Shoppi per i titoli e rosso solo dove si compra.
   ========================================================================= */

/* --- ritmo verticale e intestazioni di sezione --- */

.section {
    padding: 2.75rem 0;
}

.section-alt {
    /* Il gradiente diagonale faceva sembrare la sezione un blocco a parte. */
    background: var(--bg-light);
}

.section-header {
    text-align: left;
    margin-bottom: 1.5rem;
}

.section-header h2,
.section-alt h2,
.app-download-section h2 {
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: -0.4px;
    line-height: 1.25;
    margin-bottom: 6px;
    /* Via il testo in gradiente: era l'unico posto della pagina in cui il
       titolo non era del colore del marchio. */
    background: none;
    -webkit-text-fill-color: currentColor;
    color: var(--primary-color);
}

.section-header p,
.section-alt>.container>.row p.text-muted {
    font-size: 0.92rem;
    color: var(--text-muted);
    max-width: none;
    margin: 0;
}

/* --- capsula città, ora sopra al feed --- */

.hyperlocal-capsule {
    background: var(--white) !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid var(--border-light);
    border-radius: 999px;
    padding: 6px 16px !important;
    margin-bottom: 1.25rem;
    gap: 10px;
    box-shadow: none;
    animation: none;
}

.hyperlocal-capsule:hover {
    transform: none;
    box-shadow: none;
}

.hyperlocal-capsule .city-label {
    font-size: 0.78rem;
}

.hyperlocal-capsule .weather-mini-icon i {
    font-size: 0.95rem;
    filter: none;
}

.local-news-pill {
    background: transparent;
    padding: 0;
    font-size: 0.78rem;
}

/* --- collezioni in voga --- */

.discovery-item {
    border-radius: 14px;
}

.discovery-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(45, 50, 76, 0.1);
}

.discovery-tag {
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary-color);
}

.discovery-item h3 {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.discovery-item p {
    font-size: 0.82rem;
    opacity: 0.85;
}

/* --- perché Shoppi --- */

.feature-card {
    padding: 20px;
    border-radius: 14px;
    text-align: left;
    box-shadow: none;
    border: 1px solid var(--border-light);
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(45, 50, 76, 0.1);
}

.feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    /* Le icone erano gli unici elementi in gradiente arancio della pagina. */
    background: var(--bg-secondary);
    color: var(--primary-color);
    font-size: 1.05rem;
    margin: 0 0 14px;
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.88rem;
    margin: 0;
}

/* --- Shoppi Discovery (le pillole editoriali) --- */

.news-magazine-v2 {
    gap: 1.25rem;
}

.news-card-premium {
    border-radius: 14px;
    border: 1px solid var(--border-light);
    box-shadow: none;
    overflow: hidden;
    background: var(--white);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    display: flex;
    flex-direction: column;
}

/* Il "Details" seguiva la fine del testo, quindi ballava a mezz'aria da una
   card all'altra. Ancorato in fondo si legge come una riga sola. */
.news-content-v2 {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.news-content-v2 .news-footer-btn {
    margin-top: auto;
}

.news-card-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(45, 50, 76, 0.1);
}

.news-card-premium .news-category-label,
.news-card-premium .news-date-badge {
    border-radius: 999px;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    box-shadow: none;
}

.news-card-premium .news-category-label {
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary-color);
}

.news-card-premium .news-date-badge {
    background: rgba(13, 15, 20, 0.6);
    color: #fff;
}

.news-content-v2 h3 {
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--primary-color);
}

.news-content-v2 p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.news-footer-btn {
    background: none;
    padding: 0;
    border: 0;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.news-footer-btn i {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

.news-footer-btn:hover {
    color: var(--primary-color);
}

.news-footer-btn:hover i {
    transform: translateX(3px);
}

/* Il bottone "Leggi tutti i post" era l'unico pieno rosso della zona
   editoriale: il rosso in questa pagina significa "si compra". */
.section-alt .btn-primary {
    background: var(--white) !important;
    border: 1px solid var(--border-light) !important;
    color: var(--primary-color) !important;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 9px 20px;
}

.section-alt .btn-primary:hover {
    border-color: var(--primary-color) !important;
    background: var(--bg-light) !important;
}

/* --- carosello notizie in fondo --- */

/* Slick da` a ogni slide l'altezza del suo contenuto: le card finivano
   scalinate. Con la traccia in flex si allungano tutte quanto la piu` alta. */
.news-section .slick-track {
    display: flex;
    align-items: stretch;
}

.news-section .slick-slide {
    height: auto;
}

.news-section .slick-slide>div,
.news-section .slick-slide>div>.news-card {
    height: 100%;
}

.news-section .news-card {
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    border: 1px solid var(--border-light);
    box-shadow: none;
    overflow: hidden;
}

.news-section .news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(45, 50, 76, 0.1);
}

.news-section .news-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--primary-color);
}

.news-section .news-date {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.news-section .news-excerpt {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.news-section .news-content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.news-section .read-more-link {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    margin-top: auto;
}

/* --- scarica l'app --- */

.app-download-section {
    background: var(--bg-light);
    padding: 2.75rem 0;
}

.app-download-section .lead {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.75rem;
}

.app-promo {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.5rem;
    align-items: center;
}

.app-promo__shot {
    text-align: center;
}

.app-promo__shot img {
    max-height: 420px;
    max-width: 100%;
}

.app-promo__eyebrow {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.app-perks {
    list-style: none;
    margin: 0 0 1.75rem;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.5rem;
}

.app-perk {
    display: flex;
    align-items: flex-start;
    gap: 11px;
}

.app-perk__icon {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--white);
    border: 1px solid var(--border-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.app-perk__txt {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.app-perk__txt b {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--primary-color);
}

.app-perk__txt span {
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--text-muted);
}

.app-buttons img {
    height: 42px;
}

@media (max-width: 991px) {
    .app-promo {
        grid-template-columns: minmax(0, 1fr);
    }

    .app-promo__shot {
        order: -1;
    }

    .app-promo__shot img {
        max-height: 260px;
    }
}

@media (max-width: 575px) {
    .app-perks {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---------- 4. Footer a colonne ----------------------------------------- */

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr repeat(4, 1fr);
    gap: 2rem;
    align-items: start;
}

.footer-logo img {
    max-height: 30px;
    margin-bottom: 14px;
}

.footer-blurb {
    font-size: 0.85rem;
    line-height: 1.6;
    opacity: 0.75;
    max-width: 34ch;
    margin-bottom: 16px;
}

.footer-col h4 {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 14px;
    opacity: 0.6;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-col li {
    margin-bottom: 9px;
}

.footer-col a {
    font-size: 0.87rem;
    text-decoration: none;
    color: inherit;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.footer-col a:hover {
    opacity: 1;
    text-decoration: underline;
}

@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.75rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}
