/* ==================================================
   CARD DEGLI ARTICOLI IN HOMEPAGE
   ================================================== */

.iosogno-home-article-cards .uk-card {
    border: 1px solid #ffd700;
    border-radius: 30px;
    background:
        radial-gradient(
            ellipse at 18% 20%,
            rgba(188, 142, 66, 0.2),
            transparent 30%
        ),
        radial-gradient(
            ellipse at 82% 72%,
            rgba(10, 7, 6, 0.42),
            transparent 38%
        ),
        linear-gradient(
            145deg,
            #5b4228,
            #38261a 48%,
            #291b14 72%,
            #4d3823
        );
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
}

.iosogno-home-article-cards .uk-card,
.iosogno-home-article-cards .uk-card * {
    color: #ffffff !important;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.15s ease;
}

/* Pulsante Entra: stesso sfondo delle categorie */
.iosogno-home-article-cards .uk-card .uk-button {
    background: linear-gradient(
        135deg,
        #344b7d 0%,
        #44396f 55%,
        #59477f 100%
    ) !important;
    color: #ffffff !important;
}

/* Pulsante Entra: oro con scritta rossa all'hover */
.iosogno-home-article-cards .uk-card .uk-button:hover,
.iosogno-home-article-cards .uk-card .uk-button:focus-visible {
    background: #ffd700 !important;
    border-color: #ffd700 !important;
    color: #ff1744 !important;
    box-shadow: 0 0 22px rgba(255, 215, 0, 0.7) !important;
    transform: translateY(-1px);
}


/* ==================================================
   TITOLI DELLA HOMEPAGE
   ================================================== */

.iosogno-home-category-heading,
.iosogno-home-category-heading *,
.iosogno-home-dreams-heading,
.iosogno-home-dreams-heading * {
    color: #33295a !important;
}

/* Linea decorativa del titolo "Navigando nel mondo dei sogni" */
.iosogno-home-dreams-heading .el-title.uk-heading-line > ::before,
.iosogno-home-dreams-heading .el-title.uk-heading-line > ::after {
    border-bottom-color: #ffd700 !important;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.85);
}

/* Citazione e autore di Luis Sepúlveda */
.iosogno-sepulveda-title,
.iosogno-sepulveda-title * {
    color: #38261a !important;
}

/* Titolo "Perché sogniamo" */
.iosogno-home-why-dreams-title,
.iosogno-home-why-dreams-title * {
    color: #38261a !important;
}


/* ==================================================
   TAG DELLE CATEGORIE: GRID A CAPSULA BLU-VIOLA
   ================================================== */

.iosogno-home-category-tags .el-item {
    display: flex;
    justify-content: center;
}

.iosogno-home-category-tags .el-item .el-link,
.iosogno-home-category-tags .el-item a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    max-width: 100%;
    padding: 9px 22px;
    border: 1px solid rgba(190, 198, 255, 0.7);
    border-radius: 46% 54% 48% 52% / 58% 44% 56% 42%;
    background: linear-gradient(
        135deg,
        #344b7d 0%,
        #44396f 55%,
        #59477f 100%
    ) !important;
    color: #ffffff !important;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    text-decoration: none !important;
    box-shadow:
        0 5px 14px rgba(35, 39, 82, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

/* Hover e focus dei tag: cambia solo il colore del testo */
.iosogno-home-category-tags .el-item .el-link:hover,
.iosogno-home-category-tags .el-item .el-link:focus-visible,
.iosogno-home-category-tags .el-item a:hover,
.iosogno-home-category-tags .el-item a:focus-visible,
.iosogno-home-category-tags .el-item .el-link:hover *,
.iosogno-home-category-tags .el-item .el-link:focus-visible *,
.iosogno-home-category-tags .el-item a:hover *,
.iosogno-home-category-tags .el-item a:focus-visible * {
    color: #76b9ff !important;
    box-shadow: none !important;
    text-shadow: none !important;
    transform: none !important;
}

/* Ricerca IoSogno in homepage */
.iosogno-home-search-magnified .uk-search {
    position: relative;
    width: 100%;
    max-width: 430px;
}

.iosogno-home-search-magnified .uk-search-input {
    width: 100%;
    height: 52px;
    padding: 0 64px 0 22px !important;
    border: none !important;
    border-radius: 50px !important;
    background: linear-gradient(135deg, #2a1d4d, #4f357f) !important;
    color: #ffffff !important;
    font-size: 16px !important;
    box-shadow: 0 0 12px rgba(120, 90, 220, 0.22);
}

.iosogno-home-search-magnified .uk-search-input::placeholder {
    color: #ffffff !important;
    opacity: 1 !important;
    text-transform: uppercase !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 1.2px !important;
}

.iosogno-home-search-magnified .uk-search .uk-search-icon svg {
    width: 50px !important;
    height: 50px !important;
    fill: #ffffff !important;
    color: #ffffff !important;
}

/* Scritta decorativa sopra il placeholder */
.iosogno-home-search-magnified .iosogno-search-magnified-placeholder {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: baseline;
    gap: 0;
    color: #ffffff;
    font-family: "Arial Rounded MT Bold", "Trebuchet MS", Manrope, Arial, sans-serif;
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
    pointer-events: none;
    transform: translateY(-50%);
}

.iosogno-home-search-magnified .iosogno-search-magnified-placeholder[hidden] {
    display: none !important;
}

/* Nasconde il placeholder originale mentre compare la scritta decorativa */
.iosogno-home-search-magnified .uk-search.iosogno-overlay-visible
.uk-search-input::placeholder {
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
}

/* CER: ingrandito sotto la lente, senza toccarne il bordo */
.iosogno-home-search-magnified .iosogno-lens-word {
    display: inline-block;
    font-size: 1.19em !important;
    font-weight: 700;
    letter-spacing: 0.02em;
    transform: scale(1.04);
    transform-origin: center;
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.55),
        0 2px 2px rgba(11, 7, 32, 0.45);
}

/* CA: molto più piccolo, ma ancora in grassetto */
.iosogno-home-search-magnified .iosogno-lens-tail {
    display: inline-block;
    font-size: 0.62em !important;
    font-weight: 700;
}


/* Pulsante "Tutti gli articoli" */
.iosogno-home-all-posts .el-link,
.iosogno-home-all-posts a,
.iosogno-home-all-posts .el-link:hover,
.iosogno-home-all-posts a:hover {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 22px;
    border: 1px solid #c8a24d;
    border-radius: 999px;
    background: linear-gradient(135deg, #2a1d4d, #4f357f) !important;
    color: #f4c542 !important;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none !important;
    box-shadow:
        0 5px 16px rgba(42, 29, 77, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: none;
}

/* Rimuove l'eventuale freccia prima della scritta */
.iosogno-home-all-posts .el-link::before,
.iosogno-home-all-posts a::before {
    content: none !important;
    display: none !important;
}

/* Freccia moderna dentro il cerchio */
.iosogno-home-all-posts .el-link::after,
.iosogno-home-all-posts a::after {
    content: "➜";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border: 1px solid rgba(255, 220, 130, 0.85);
    border-radius: 50%;
    background: radial-gradient(
        circle at 32% 28%,
        rgba(255, 255, 255, 0.3),
        rgba(255, 215, 0, 0.12) 48%,
        rgba(51, 41, 90, 0.2) 100%
    );
    color: #ffe28a;
    font-size: 21px;
    line-height: 1;
    text-shadow: 0 0 6px rgba(255, 215, 0, 0.55);
    box-shadow: 0 0 8px rgba(244, 215, 124, 0.25);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease;
}

/* Hover: si illumina solo il cerchio con la freccia */
.iosogno-home-all-posts .el-link:hover::after,
.iosogno-home-all-posts a:hover::after,
.iosogno-home-all-posts .el-link:focus-visible::after,
.iosogno-home-all-posts a:focus-visible::after {
    color: #ffffff;
    border-color: #ffd700;
    box-shadow:
        0 0 14px rgba(255, 215, 0, 0.7),
        inset 0 0 9px rgba(255, 255, 255, 0.25);
    transform: translateX(3px);
}

/* Sfondo lavanda molto tenue per il blog */
html,
body,
.tm-page {
    background-color: #f1eef7 !important;
}

/* Sezioni standard YOOtheme */
.tm-page .uk-section-default,
.tm-page .uk-section-muted,
.tm-page .uk-background-default,
.tm-page .uk-background-muted {
    background-color: #f1eef7 !important;
}

