/* === STILI PERSONALIZZATI USEF PER YOOTHEME PRO (Master Paladin / Child Theme) ===
 * Sostituisci il contenuto di /templates/yootheme_usef/css/custom.css con questo file.
 */

:root {
    --usef-navy: #061029;
    --usef-navy-soft: #14213D;
    --usef-red: #AF1321;
    --usef-red-dark: #8E0F1B;
    --usef-gold: #F9C243;
    --usef-gold-btn: #FAC344;
    --usef-cream: #F7F6F1;
    --usef-warm: #F4F4F2;
    --usef-border: #E5E2D9;
}

.usef-red {
    color: #AF1321 !important;
}

.usef-navy {
    color: #061029 !important;
}

/* ------------------------------------------------------------------
   1. HEADER: respiro tra logo e prima voce menu + bottone CTA
   ------------------------------------------------------------------ */
.tm-header .uk-logo {
    margin-right: 28px !important;
}

.tm-header .uk-logo img {
    max-height: 54px;
    width: auto;
}

/* ------------------------------------------------------------------
   2. HERO: velo crema SOPRA la foto ma SOTTO titolo/testo/bottone!
      (In YOOtheme Pro lo sfondo sta su .usef-hero > .uk-section)
   ------------------------------------------------------------------ */
.usef-hero>.uk-section,
.usef-hero>.uk-background-cover {
    position: relative;
}

.usef-hero>.uk-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg,
            rgba(255, 248, 236, 0.90) 0%,
            rgba(255, 248, 236, 0.72) 44%,
            rgba(255, 248, 236, 0.08) 74%);
    pointer-events: none;
}

.usef-hero .uk-container {
    position: relative;
    z-index: 2;
}

.usef-hero h1 {
    color: #061029 !important;
    font-weight: 700 !important;
    line-height: 1.12 !important;
}

.usef-hero p,
.usef-hero .uk-text-lead {
    color: #1E293B !important;
}

/* ------------------------------------------------------------------
   3. BOTTONI PILL GIALLO E ROSSO USEF
   ------------------------------------------------------------------ */
.usef-btn-gold .uk-button {
    background-color: #FAC344 !important;
    color: #061029 !important;
    border-radius: 999px !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em;
    padding: 4px 26px !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(6, 16, 41, 0.14);
}

.usef-btn-gold .uk-button:hover {
    background-color: #eab02a !important;
    color: #061029 !important;
}

.usef-btn-gold .uk-button-secondary {
    background-color: transparent !important;
    color: #FFFFFF !important;
    border: 1.5px solid rgba(255, 255, 255, 0.55) !important;
    box-shadow: none;
}

.usef-btn-gold .uk-button-secondary:hover {
    background-color: rgba(255, 255, 255, 0.14) !important;
    border-color: #F9C243 !important;
    color: #F9C243 !important;
}

.usef-btn-red .uk-button {
    background-color: #AF1321 !important;
    color: #FFFFFF !important;
    border-radius: 999px !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em;
    padding: 4px 26px !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(175, 19, 33, 0.22);
}

.usef-btn-red .uk-button:hover {
    background-color: #8E0F1B !important;
    color: #FFFFFF !important;
}

.usef-btn-red .uk-button-secondary {
    background-color: #061029 !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 14px rgba(6, 16, 41, 0.20);
}

.usef-btn-red .uk-button-secondary:hover {
    background-color: #14213D !important;
    color: #FFFFFF !important;
}

/* ------------------------------------------------------------------
   4. SEZIONI & CARD (3 Pilastri, 5 News, 6 Accessi Rapidi)
   ------------------------------------------------------------------ */
.usef-map-section {
    background-color: #F4F4F2 !important;
}

.usef-cream-section {
    background-color: #F7F6F1 !important;
}

/* Sovrapposizione reale delle 3 card bianche sul bordo inferiore dell'Hero */
.usef-pillars-overlap {
    margin-top: 0 !important;
    position: relative;
    z-index: 5;
}

.usef-pillars-overlap .uk-grid {
    margin-top: -64px !important;
    position: relative;
    z-index: 6;
}

.usef-pillars-overlap .uk-card,
.usef-news-grid .uk-card,
.usef-quick-grid .uk-card,
.usef-map-section .uk-card,
.usef-map-section .uk-card.uk-card-default,
.uk-section-muted .uk-card.uk-card-default {
    border-radius: 12px !important;
    overflow: hidden;
    border: 1px solid #E5E2D9 !important;
    background-color: #FFFFFF !important;
    box-shadow: 0 6px 20px rgba(6, 16, 41, 0.07);
}

/* Flex verticale per allineare sempre i CTA sul fondo alla stessa quota */
.usef-pillars-overlap .uk-card,
.usef-news-grid .uk-card,
.usef-quick-grid .uk-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Padding interno garantito su master-paladin + CTA allineati in basso (!important batte uk-margin-top) */
.usef-pillars-overlap .uk-card-body {
    padding: 22px 24px 24px !important;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.usef-pillars-overlap .uk-card-body>*:last-child {
    margin-top: auto !important;
    padding-top: 12px;
}

.usef-quick-grid .uk-card {
    padding: 22px 24px 24px !important;
    border-top: 3px solid #061029 !important;
}

.usef-quick-grid .uk-card>*:last-child {
    margin-top: auto !important;
    padding-top: 12px;
}

.usef-quick-grid .uk-card:hover {
    border-top-color: #AF1321 !important;
    box-shadow: 0 10px 26px rgba(6, 16, 41, 0.11);
}

/* News card: immagine a filo bordo (full-bleed) e padding pulito sul testo */
.usef-news-grid .uk-card {
    padding: 0 !important;
}

.usef-news-grid .uk-card-media-top img {
    width: 100%;
    height: 135px;
    object-fit: cover;
}

.usef-news-grid .uk-card-body {
    padding: 14px 16px 16px !important;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.usef-news-grid .uk-card-body>*:last-child {
    margin-top: auto !important;
    padding-top: 10px;
}

.usef-news-grid .uk-text-meta {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #AF1321;
}

/* Icona gialla circolare SVG dentro le 3 card pilastri */
.usef-card-icon {
    float: right;
    width: 46px;
    height: 46px;
    margin: -4px 0 8px 14px;
}

/* Link rosso istituzionale nelle card */
.usef-pillars-overlap .uk-button-text,
.usef-quick-grid .uk-button-text {
    color: #AF1321 !important;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ------------------------------------------------------------------
   5. LISTA 4 KPI (Sezione Mappa)
   ------------------------------------------------------------------ */
.usef-kpi-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.usef-kpi-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.usef-kpi-row img {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.usef-kpi-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #061029;
    line-height: 1.25;
    width: 96px;
}

.usef-kpi-num {
    font-family: Georgia, serif;
    font-size: 32px;
    font-weight: 700;
    color: #AF1321;
    line-height: 1;
}

/* ------------------------------------------------------------------
   6. BOX NEWSLETTER SCURO (Fix: stila il tile interno, non il gutter!)
   ------------------------------------------------------------------ */
.usef-newsletter-col {
    background-color: transparent !important;
    align-self: flex-start;
}

.usef-newsletter-col>.uk-tile,
.usef-newsletter-col>.uk-panel {
    background-color: #061029 !important;
    color: rgba(255, 255, 255, 0.88) !important;
    border-radius: 12px !important;
    padding: 28px 30px !important;
    box-shadow: 0 10px 28px rgba(6, 16, 41, 0.16);
    flex: 0 0 auto !important;
    height: auto !important;
}

.usef-newsletter-col h2,
.usef-newsletter-col h3,
.usef-newsletter-col h4 {
    color: #FFFFFF !important;
}

.usef-newsletter-col p {
    color: rgba(255, 255, 255, 0.84) !important;
}

/* ------------------------------------------------------------------
   7. FOOTER ISTITUZIONALE USEF
   ------------------------------------------------------------------ */
.usef-footer-section,
.usef-footer-section>.uk-section {
    background-color: #061029 !important;
    color: rgba(255, 255, 255, 0.82) !important;
}

.usef-footer-section h3,
.usef-footer-section h4 {
    color: #F9C243 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 14px !important;
}

.usef-footer-section a {
    color: rgba(255, 255, 255, 0.84) !important;
    transition: color 0.15s ease;
}

.usef-footer-section a:hover {
    color: #F9C243 !important;
    text-decoration: none;
}

.usef-footer-logo img {
    max-height: 58px;
    width: auto;
    border-radius: 0;
}

.usef-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding-top: 20px;
    margin-top: 28px !important;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.65) !important;
}


/* ------------------------------------------------------------------
   8. PAGINE INTERNE & CHI SIAMO / GOVERNANCE
   ------------------------------------------------------------------ */
.usef-kicker {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #AF1321;
    margin-bottom: 8px;
}

/* Testata interna LUMINOSA in stile mediterraneo/carta (coerente con l'Homepage) */
.usef-page-hero,
.usef-page-hero>.uk-section {
    background: linear-gradient(125deg, rgba(251, 248, 240, 0.94) 0%, rgba(244, 239, 226, 0.92) 60%, rgba(238, 230, 211, 0.90) 100%) !important;
    color: #1E293B !important;
    position: relative;
    border-top: 1px solid #E5E2D9;
}

.usef-page-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: linear-gradient(90deg, #AF1321 0%, #F9C243 50%, #1A7F37 100%);
    z-index: 3;
}

.usef-page-hero h1 {
    color: #061029 !important;
    font-weight: 700 !important;
}

.usef-page-hero p,
.usef-page-hero .uk-text-lead {
    color: #334155 !important;
    max-width: 820px;
}

.usef-breadcrumb {
    font-size: 12px;
    color: #5C6577;
    margin-bottom: 10px;
}

.usef-breadcrumb a {
    color: #14213D !important;
    font-weight: 600;
}

.usef-breadcrumb a:hover {
    color: #AF1321 !important;
}

.usef-breadcrumb span {
    color: #AF1321;
    font-weight: 700;
}

.usef-subnav-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.usef-subnav-pills a {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: #FFFFFF;
    border: 1px solid #DCD7C9;
    color: #061029 !important;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(6, 16, 41, 0.04);
    transition: all 0.15s ease;
}

.usef-subnav-pills a:hover {
    background: #061029;
    color: #FFFFFF !important;
    border-color: #061029;
}

.usef-subnav-pills a.pill-ext {
    border-color: #AF1321;
    color: #AF1321 !important;
}

.usef-subnav-pills a.pill-ext:hover {
    background: #AF1321;
    color: #FFFFFF !important;
}

/* Lista Missione */
.usef-mission-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.usef-mission-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 16px;
    background: #FFFFFF;
    border: 1px solid #E5E2D9;
    border-left: 4px solid #AF1321;
    border-radius: 8px;
    font-weight: 600;
    color: #061029;
    font-size: 14.5px;
    box-shadow: 0 3px 10px rgba(6, 16, 41, 0.05);
}

.usef-mission-list li span {
    color: #AF1321;
    font-weight: 800;
}

/* Foto storica + Timeline 1970-2026 */
.usef-hist-figure {
    margin: 0;
    background: #FFFFFF;
    border: 1px solid #E5E2D9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(6, 16, 41, 0.07);
}

.usef-hist-figure img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    object-position: top;
    display: block;
}

.usef-hist-figure figcaption {
    padding: 16px 18px;
    font-size: 13px;
    color: #5C6577;
    line-height: 1.45;
}

.usef-chip-link {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    background: #F7F6F1;
    border: 1px solid #DCD7C9;
    color: #061029 !important;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.usef-chip-link:hover {
    background: #AF1321;
    color: #FFFFFF !important;
    border-color: #AF1321;
}

.usef-timeline-grid .uk-card {
    background: #FFFFFF !important;
    border: 1px solid #E5E2D9 !important;
    border-top: 3px solid #061029 !important;
    border-radius: 10px !important;
    padding: 18px 20px !important;
}

.usef-timeline-grid .uk-text-meta {
    color: #AF1321 !important;
    font-family: Georgia, serif;
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em;
}

/* Box USEF 2030 (scuro) & Totò Augello (caldo) */
.usef-dark-tile {
    background: transparent !important;
}

.usef-dark-tile>.uk-tile,
.usef-dark-tile>.uk-panel {
    background: #061029 !important;
    color: rgba(255, 255, 255, 0.88) !important;
    border-radius: 12px !important;
    padding: 30px !important;
    box-shadow: 0 10px 28px rgba(6, 16, 41, 0.16);
}

.usef-dark-tile h2,
.usef-dark-tile h3 {
    color: #FFFFFF !important;
}

.usef-dark-tile p {
    color: rgba(255, 255, 255, 0.85) !important;
}

.usef-warm-tile {
    background: transparent !important;
}

.usef-warm-tile>.uk-tile,
.usef-warm-tile>.uk-panel {
    background: #FFFDF7 !important;
    border: 1px solid #E7DCBE !important;
    border-top: 4px solid #F9C243 !important;
    border-radius: 12px !important;
    padding: 30px !important;
    box-shadow: 0 6px 20px rgba(6, 16, 41, 0.06);
}

/* Presidente & Segretario Generale */
.usef-white-section {
    background-color: #FFFFFF !important;
}

.usef-leaders-grid .uk-card {
    background: #FFFFFF !important;
    border: 1px solid #E5E2D9 !important;
    border-radius: 12px !important;
    padding: 24px !important;
    box-shadow: 0 6px 20px rgba(6, 16, 41, 0.07);
}

.usef-leaders-grid .uk-card img {
    border-radius: 10px !important;
    border: 3px solid #F7F6F1;
    width: 100%;
    height: 185px;
    object-fit: cover;
    object-position: top;
}

.usef-leaders-grid .uk-text-meta {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: #FDECEC;
    color: #AF1321 !important;
    font-size: 11px !important;
    font-weight: 800;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

/* Cerchi Presidenza / Segreteria / Membri di diritto */
.usef-group-title {
    font-family: Georgia, serif;
    font-size: 22px;
    color: #061029;
    margin: 0 0 14px;
}

.usef-circle-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

@media (max-width: 959px) {
    .usef-circle-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 479px) {
    .usef-circle-grid {
        grid-template-columns: 1fr;
    }
}

.usef-circle-card {
    background: #FFFFFF;
    border: 1px solid #E5E2D9;
    border-radius: 12px;
    padding: 22px 14px;
    text-align: center;
    box-shadow: 0 4px 14px rgba(6, 16, 41, 0.05);
}

.usef-avatar-circle {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    margin: 0 auto 12px;
    background: linear-gradient(135deg, #14213D, #274073);
    border: 3px solid #F9C243;
    color: #FFFFFF;
    font-family: Georgia, serif;
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(6, 16, 41, 0.14);
}

.usef-avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.usef-avatar-circle.red-ring {
    border-color: #AF1321;
}

.usef-avatar-circle.red-fill {
    background: linear-gradient(135deg, #8E0F1B, #AF1321);
    border-color: #F9C243;
}

.usef-circle-card h4 {
    margin: 0 0 3px;
    font-size: 15.5px;
    color: #061029;
    font-weight: 700;
}

.usef-circle-card span {
    font-size: 12px;
    color: #5C6577;
}

/* Consiglio Generale (43 componenti) */
.usef-council-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px 16px;
}

@media (max-width: 959px) {
    .usef-council-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 639px) {
    .usef-council-grid {
        grid-template-columns: 1fr;
    }
}

.usef-council-grid>div {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #FFFFFF;
    border: 1px solid #E5E2D9;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: #061029;
}

.usef-council-grid>div span {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #F7F6F1;
    color: #AF1321;
    font-weight: 800;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Barra CTA inferiore */
.usef-bottom-cta-bar {
    margin-top: 28px;
    padding: 22px 26px;
    background: #FFFFFF;
    border: 1px solid #E5E2D9;
    border-left: 4px solid #AF1321;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.usef-pill-btn-navy,
.usef-pill-btn-red {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-decoration: none !important;
}

.usef-pill-btn-navy {
    background: #061029;
    color: #FFFFFF !important;
}

.usef-pill-btn-navy:hover {
    background: #14213D;
}

.usef-pill-btn-red {
    background: #AF1321;
    color: #FFFFFF !important;
}

.usef-pill-btn-red:hover {
    background: #8E0F1B;
}


/* ------------------------------------------------------------------
   9. LA RETE NEL MONDO (Mappa, Directory 34 schede, Archivio Paesi)
   ------------------------------------------------------------------ */
.usef-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.usef-hero-stats>div {
    background: #FFFFFF;
    border: 1px solid #E5E2D9;
    border-top: 3px solid #F9C243;
    border-radius: 10px;
    padding: 14px 10px;
    text-align: center;
    box-shadow: 0 4px 14px rgba(6, 16, 41, 0.06);
}

.usef-hero-stats strong {
    display: block;
    font-family: Georgia, serif;
    font-size: 26px;
    color: #AF1321;
    line-height: 1.05;
}

.usef-hero-stats span {
    display: block;
    margin-top: 4px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #061029;
}

.usef-map-frame {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #DCD7C9;
    box-shadow: 0 8px 24px rgba(6, 16, 41, 0.08);
}

/* Directory 34 schede + Archivio filtrabile: pillole filtro (.el-nav e .uk-subnav-pill) */
.usef-directory-grid .el-nav,
.usef-directory-grid .uk-subnav-pill,
.usef-archive-filter-grid .el-nav,
.usef-archive-filter-grid .uk-subnav-pill {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none !important;
    padding-left: 0 !important;
    margin-bottom: 24px !important;
}

.usef-directory-grid .el-nav>li,
.usef-directory-grid .uk-subnav-pill>li,
.usef-archive-filter-grid .el-nav>li,
.usef-archive-filter-grid .uk-subnav-pill>li {
    margin: 0 !important;
    padding: 0 !important;
}

.usef-directory-grid .el-nav>li>a,
.usef-directory-grid .uk-subnav-pill>li>a,
.usef-archive-filter-grid .el-nav>li>a,
.usef-archive-filter-grid .uk-subnav-pill>li>a {
    display: inline-block;
    border-radius: 999px !important;
    background: #FFFFFF;
    border: 1px solid #DCD7C9;
    color: #061029 !important;
    font-size: 12.5px;
    font-weight: 700;
    padding: 6px 14px;
    text-decoration: none !important;
    transition: all 0.15s ease;
}

.usef-directory-grid .el-nav>li>a:hover,
.usef-directory-grid .uk-subnav-pill>li>a:hover,
.usef-archive-filter-grid .el-nav>li>a:hover,
.usef-archive-filter-grid .uk-subnav-pill>li>a:hover {
    border-color: #AF1321;
    color: #AF1321 !important;
}

.usef-directory-grid .el-nav>.uk-active>a,
.usef-directory-grid .el-nav>.uk-active>a:hover,
.usef-directory-grid .uk-subnav-pill>.uk-active>a,
.usef-directory-grid .uk-subnav-pill>.uk-active>a:hover,
.usef-archive-filter-grid .el-nav>.uk-active>a,
.usef-archive-filter-grid .el-nav>.uk-active>a:hover,
.usef-archive-filter-grid .uk-subnav-pill>.uk-active>a,
.usef-archive-filter-grid .uk-subnav-pill>.uk-active>a:hover {
    background: #061029 !important;
    color: #FFFFFF !important;
    border-color: #061029 !important;
}

.usef-directory-grid .uk-card {
    background: #FFFFFF !important;
    border: 1px solid #E5E2D9 !important;
    border-radius: 12px !important;
    padding: 20px 22px !important;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 4px 14px rgba(6, 16, 41, 0.05);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.usef-directory-grid .uk-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(6, 16, 41, 0.10);
}

.usef-directory-grid .uk-card>*:last-child {
    margin-top: auto !important;
    padding-top: 12px;
}

.usef-directory-grid .uk-text-meta {
    color: #AF1321 !important;
    font-size: 11px !important;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.usef-directory-grid .uk-button-text {
    color: #AF1321 !important;
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
}

.usef-dir-city {
    margin: 4px 0 4px !important;
    font-weight: 700;
    font-size: 13.5px;
    color: #14213D;
}

.usef-dir-addr {
    margin: 0 !important;
    font-size: 13px;
    color: #5C6577;
}

.usef-status-pill {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.usef-status-pill.ok {
    background: #E7F6EC;
    color: #1A7F37;
}

.usef-status-pill.warn {
    background: #FEF4D7;
    color: #8A5A00;
}

.usef-notice-box {
    margin-top: 18px;
    padding: 14px 18px;
    background: #FFF8E6;
    border: 1px solid #F2D68A;
    border-left: 4px solid #F9C243;
    border-radius: 10px;
    font-size: 13.5px;
    color: #5C4300;
}

/* Griglia Archivio Storico Paesi (2008-2025) */
.usef-hist-countries {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

@media (max-width: 959px) {
    .usef-hist-countries {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 479px) {
    .usef-hist-countries {
        grid-template-columns: 1fr;
    }
}

.usef-hist-countries a {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 14px 16px;
    background: #FFFFFF;
    border: 1px solid #E5E2D9;
    border-left: 3px solid #061029;
    border-radius: 10px;
    text-decoration: none !important;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.usef-hist-countries a:hover {
    border-left-color: #AF1321;
    transform: translateY(-2px);
}

.usef-hist-countries a strong {
    color: #061029;
    font-size: 15px;
}

.usef-hist-countries a span {
    color: #5C6577;
    font-size: 12px;
}

.usef-hist-countries a.all-world {
    background: #061029;
    border-color: #061029;
    border-left-color: #F9C243;
}

.usef-hist-countries a.all-world strong {
    color: #FFFFFF;
}

.usef-hist-countries a.all-world span {
    color: #F9C243;
    font-weight: 700;
}


/* ------------------------------------------------------------------
   10. ELEMENTI NATIVI CHI SIAMO v2 (Subnav, List Missione, Grid Organi, List 43 Consiglieri)
   ------------------------------------------------------------------ */
.usef-kicker-gold {
    color: #F9C243 !important;
}

/* Subnav nativo nell'Hero luminoso */
.usef-subnav-el>li>a,
.usef-subnav-el .uk-subnav>li>a {
    border-radius: 999px !important;
    background: #FFFFFF !important;
    border: 1px solid #DCD7C9;
    color: #061029 !important;
    font-size: 12.5px;
    font-weight: 700;
    padding: 6px 14px;
    text-transform: none;
    box-shadow: 0 2px 6px rgba(6, 16, 41, 0.04);
}

.usef-subnav-el>li>a:hover,
.usef-subnav-el .uk-subnav>li>a:hover {
    background: #061029 !important;
    color: #FFFFFF !important;
    border-color: #061029;
}

/* Lista nativa 5 punti Missione */
ul.usef-mission-list-el>li,
.usef-mission-list-el ul>li {
    padding: 12px 16px !important;
    margin-top: 10px !important;
    background: #FFFFFF;
    border: 1px solid #E5E2D9;
    border-left: 4px solid #AF1321;
    border-radius: 8px;
    font-weight: 600;
    color: #061029;
    font-size: 14.5px;
    box-shadow: 0 3px 10px rgba(6, 16, 41, 0.05);
}

ul.usef-mission-list-el>li:first-child,
.usef-mission-list-el ul>li:first-child {
    margin-top: 0 !important;
}

/* Colonna foto storica nativa */
.usef-hist-col>.uk-tile,
.usef-hist-col>.uk-panel {
    background: #FFFFFF !important;
    border: 1px solid #E5E2D9 !important;
    border-radius: 12px !important;
    padding: 18px !important;
    box-shadow: 0 6px 20px rgba(6, 16, 41, 0.07);
}

.usef-hist-img img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    object-position: top;
}

/* Grid nativi Presidenza / Segreteria / Membri di Diritto (cerchi automatici!) */
.usef-organi-grid .uk-card {
    background: #FFFFFF !important;
    border: 1px solid #E5E2D9 !important;
    border-radius: 12px !important;
    padding: 24px 16px !important;
    text-align: center;
    box-shadow: 0 4px 14px rgba(6, 16, 41, 0.05);
}

.usef-organi-grid .uk-card img {
    width: 92px !important;
    height: 92px !important;
    border-radius: 50% !important;
    object-fit: cover;
    object-position: top;
    border: 3px solid #F9C243;
    margin: 0 auto 12px;
}

.usef-organi-grid.red-ring .uk-card img {
    border-color: #AF1321;
}

.usef-organi-grid .uk-card:not(:has(img))::before {
    content: "\25CF";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    margin: 0 auto 14px;
    background: linear-gradient(135deg, #14213D, #274073);
    border: 3px solid #F9C243;
    color: rgba(249, 194, 67, 0.55);
    font-size: 28px;
    box-shadow: 0 4px 12px rgba(6, 16, 41, 0.14);
}

.usef-organi-grid.red-ring .uk-card:not(:has(img))::before {
    border-color: #AF1321;
}

.usef-organi-grid.red-fill .uk-card:not(:has(img))::before {
    background: linear-gradient(135deg, #8E0F1B, #AF1321);
    border-color: #F9C243;
}

/* Lista nativa 43 Consiglieri Generali impaginata in 3 colonne pulite */
ul.usef-council-list,
.usef-council-list ul {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px 16px;
    list-style: none !important;
    padding-left: 0 !important;
}

@media (max-width: 959px) {

    ul.usef-council-list,
    .usef-council-list ul {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 639px) {

    ul.usef-council-list,
    .usef-council-list ul {
        grid-template-columns: 1fr;
    }
}

ul.usef-council-list>li,
.usef-council-list ul>li {
    margin-top: 0 !important;
    padding: 9px 14px !important;
    background: #FFFFFF;
    border: 1px solid #E5E2D9;
    border-left: 3px solid #AF1321;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: #061029;
}

/* Barra CTA inferiore nativa */
.usef-bottom-cta-row {
    background: #FFFFFF;
    border: 1px solid #E5E2D9;
    border-left: 4px solid #AF1321;
    border-radius: 12px;
    padding: 20px 24px !important;
    margin-left: 0 !important;
}


/* ------------------------------------------------------------------
   11. SICILIA NEL MONDO (3 Pilastri, Archivi Migrazioni, 9 Province)
   ------------------------------------------------------------------ */
.usef-pillars-strip .uk-card {
    background: #FFFFFF !important;
    border: 1px solid #E5E2D9 !important;
    border-left: 4px solid #AF1321 !important;
    border-radius: 10px !important;
    padding: 20px 22px !important;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 4px 14px rgba(6, 16, 41, 0.05);
}

.usef-pillars-strip .uk-grid>div:nth-child(2) .uk-card,
.usef-pillars-strip>div:nth-child(2) .uk-card {
    border-left-color: #F9C243 !important;
}

.usef-pillars-strip .uk-grid>div:nth-child(3) .uk-card,
.usef-pillars-strip>div:nth-child(3) .uk-card {
    border-left-color: #061029 !important;
}

.usef-pillars-strip .uk-card>*:last-child {
    margin-top: auto !important;
    padding-top: 10px;
}

.usef-pillars-strip .uk-text-meta {
    color: #AF1321 !important;
    font-size: 11px !important;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.usef-pillars-strip .uk-button-text {
    color: #AF1321 !important;
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
}

.usef-archive-grid .uk-card {
    background: #FFFFFF !important;
    border: 1px solid #E5E2D9 !important;
    border-left: 3px solid #061029 !important;
    border-radius: 10px !important;
    padding: 16px 18px !important;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.usef-archive-grid .uk-card:hover {
    border-left-color: #AF1321 !important;
    transform: translateY(-2px);
}

.usef-archive-grid .uk-card>*:last-child {
    margin-top: auto !important;
    padding-top: 8px;
}

.usef-archive-grid .uk-text-meta {
    color: #AF1321 !important;
    font-size: 11px !important;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.usef-provinces-grid .uk-text-meta {
    color: #5C6577 !important;
    font-weight: 600;
}

.usef-archive-grid .uk-button-text {
    color: #061029 !important;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
}


/* ------------------------------------------------------------------
   12. TEMPLATE STANDARD FALLBACK (Category Blog 2 col. & Single Article)
   ------------------------------------------------------------------ */
.usef-page-hero-compact>.uk-section,
.usef-page-hero-compact {
    padding-top: 32px !important;
    padding-bottom: 34px !important;
}

/* Breadcrumb nativo YOOtheme */
.usef-breadcrumbs-el .uk-breadcrumb {
    margin: 0 0 8px !important;
    font-size: 12.5px;
}

.usef-breadcrumbs-el .uk-breadcrumb>*>a {
    color: #14213D !important;
    font-weight: 600;
}

.usef-breadcrumbs-el .uk-breadcrumb>*>a:hover {
    color: #AF1321 !important;
}

.usef-breadcrumbs-el .uk-breadcrumb> :last-child>span,
.usef-breadcrumbs-el .uk-breadcrumb> :last-child>a:not([href]) {
    color: #AF1321 !important;
    font-weight: 700;
}

/* Griglia articoli standard (Category Blog 2 colonne & Correlati 3 colonne) */
.usef-blog-grid .uk-card,
.usef-blog-grid .uk-card.uk-card-default {
    background-color: #FFFFFF !important;
    border: 1px solid #E5E2D9 !important;
    border-top: 3px solid #061029 !important;
    border-radius: 12px !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 5px 18px rgba(6, 16, 41, 0.06);
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.usef-blog-grid .uk-card:hover,
.usef-blog-grid .uk-card.uk-card-default:hover {
    border-top-color: #AF1321 !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(6, 16, 41, 0.10);
}

/* Pulizia anteprime articoli storici (2008-2025): nasconde le vecchie <img> inline flottanti dentro i teaser delle card, mantenendo intatta l'Intro Image (.uk-card-media-top) e il corpo articolo singolo */
.usef-blog-grid .el-content img,
.usef-blog-grid .el-content figure,
.usef-blog-grid .el-content iframe {
    display: none !important;
}

.usef-blog-grid .el-content {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: left !important;
}

.usef-blog-grid .el-content p {
    margin: 0 0 6px !important;
    text-align: left !important;
    float: none !important;
}

.usef-blog-grid .uk-card-media-top img {
    width: 100%;
    height: 210px;
    object-fit: cover;
}

.usef-related-grid .uk-card-media-top img {
    height: 165px;
}

.usef-blog-grid .uk-card-body {
    padding: 22px 24px 24px !important;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.usef-blog-grid .uk-card-body>*:last-child {
    margin-top: auto !important;
    padding-top: 14px;
}

.usef-blog-grid .uk-text-meta {
    color: #AF1321 !important;
    font-size: 11.5px !important;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.usef-blog-grid .uk-button-text {
    color: #AF1321 !important;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Paginazione numerica & Precedente/Successivo */
.usef-pagination .uk-pagination {
    justify-content: center;
    gap: 6px;
}

.usef-pagination .uk-pagination>*>a,
.usef-pagination .uk-pagination>*>span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 999px;
    background: #FFFFFF;
    border: 1px solid #DCD7C9;
    color: #061029 !important;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.usef-pagination .uk-pagination>*>a:hover {
    border-color: #AF1321;
    color: #AF1321 !important;
}

.usef-pagination .uk-pagination>.uk-active>span,
.usef-pagination .uk-pagination>.uk-active>a {
    background: #061029 !important;
    border-color: #061029 !important;
    color: #FFFFFF !important;
}

.usef-pagination-prevnext .uk-pagination>*>a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 999px;
    background: #F7F6F1;
    border: 1px solid #DCD7C9;
    color: #061029 !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.15s ease;
}

.usef-pagination-prevnext .uk-pagination>*>a:hover {
    background: #061029;
    border-color: #061029;
    color: #FFFFFF !important;
}

/* Single Article: Meta, Foglio Editoriale, Corpo e Tag */
.usef-article-meta,
.usef-article-meta ul {
    font-size: 13px;
    font-weight: 600;
    color: #5C6577;
}

.usef-article-meta a {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    background: #FDECEC;
    color: #AF1321 !important;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none !important;
}

.usef-article-meta a:hover {
    background: #AF1321;
    color: #FFFFFF !important;
}

.usef-article-sheet {
    background: transparent !important;
}

.usef-article-sheet>.uk-tile,
.usef-article-sheet>.uk-panel {
    background-color: #FFFFFF !important;
    border: 1px solid #E5E2D9 !important;
    border-radius: 14px !important;
    padding: 36px 42px !important;
    box-shadow: 0 8px 26px rgba(6, 16, 41, 0.06);
}

@media (max-width: 639px) {

    .usef-article-sheet>.uk-tile,
    .usef-article-sheet>.uk-panel {
        padding: 22px 18px !important;
    }
}

.usef-article-cover img {
    width: 100%;
    max-height: 440px;
    object-fit: cover;
}

.usef-article-body {
    font-size: 16.5px;
    line-height: 1.78;
    color: #1E293B;
}

.usef-article-body p {
    margin-bottom: 1.15em;
}

.usef-article-body img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px;
}

@media (max-width: 639px) {
    .usef-article-body img[style*="float"] {
        float: none !important;
        display: block;
        margin: 0 auto 14px !important;
    }
}

.usef-article-tags>li>a,
.usef-article-tags .uk-subnav>li>a {
    border-radius: 999px !important;
    background: #F7F6F1 !important;
    border: 1px solid #DCD7C9;
    color: #061029 !important;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    text-transform: none;
}

.usef-article-tags>li>a:hover,
.usef-article-tags .uk-subnav>li>a:hover {
    background: #AF1321 !important;
    border-color: #AF1321;
    color: #FFFFFF !important;
}

.usef-btn-back .uk-button-text {
    color: #061029 !important;
    font-weight: 800;
    font-size: 12.5px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.usef-btn-back .uk-button-text::after {
    display: none !important;
}

.usef-btn-back .uk-button-text:hover {
    color: #AF1321 !important;
}


/* ------------------------------------------------------------------
   13. BURGER MENU DESKTOP (Offcanvas Dialog z-index sopra la Navbar)
   ------------------------------------------------------------------ */
.uk-offcanvas {
    z-index: 9998 !important;
}

.uk-offcanvas-bar {
    z-index: 9999 !important;
    box-shadow: -8px 0 32px rgba(6, 16, 41, 0.16);
}

.uk-offcanvas-bar .uk-nav>li>a {
    padding: 8px 0;
    border-bottom: 1px solid rgba(6, 16, 41, 0.07);
}

.uk-offcanvas-bar .uk-nav>li>a:hover,
.uk-offcanvas-bar .uk-nav>li.uk-active>a {
    color: #AF1321 !important;
}


/* ------------------------------------------------------------------
   14. KPI NATIVI NELL'HERO (Archivio USEF, Progetti, ecc. — Zero HTML!)
   ------------------------------------------------------------------ */
.usef-kpi-grid .uk-card {
    background: #FFFFFF !important;
    border: 1px solid #E5E2D9 !important;
    border-top: 3px solid #F9C243 !important;
    border-radius: 10px !important;
    padding: 16px 10px !important;
    text-align: center;
    box-shadow: 0 4px 14px rgba(6, 16, 41, 0.06);
}

.usef-kpi-grid .el-title {
    font-family: Georgia, serif !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #AF1321 !important;
    line-height: 1.1 !important;
    margin-bottom: 4px !important;
}

.usef-kpi-grid .el-meta {
    font-size: 10.5px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #061029 !important;
    margin-top: 2px !important;
}


/* ------------------------------------------------------------------
   15. PARTECIPA & CONTATTACI (Description List recapiti + lista su tile scuro)
   ------------------------------------------------------------------ */
.usef-contact-dl .el-title {
    color: #AF1321 !important;
    font-size: 11.5px !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.usef-contact-dl .el-content,
.usef-contact-dl .el-content a {
    color: #061029 !important;
    font-size: 14.5px;
}

.usef-contact-dl .el-content a:hover {
    color: #AF1321 !important;
}

.usef-dark-list,
.usef-dark-list li,
.usef-dark-list strong {
    color: rgba(255, 255, 255, 0.90) !important;
}

.usef-dark-list .uk-icon,
.usef-dark-list .uk-icon svg,
.usef-dark-list .uk-icon svg [stroke] {
    color: #F9C243 !important;
    stroke: #F9C243 !important;
}