/* ==========================================================
   DXZONE CORE UI 2026 – CLEAN VERSION
   Bootstrap 5 Compatible
   ========================================================== */

:root {
    --dx-blue: #2C2A5A;
    --dx-blue-dark: #1f1d40;
    --dx-blue-light: #3a3875;
    --dx-gold: #ffc107;
}

/* ==========================================================
   BASE
   ========================================================== */

body {
    background: #f5f7fa;
    color: #1c1e21;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
                 Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;

    padding-top: 70px;

    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


main {
    flex: 1;

    padding-bottom: 40px;

}

a {
    color: #0d6efd;
    text-decoration: none;
    transition: .2s ease;
}

a:hover {
    color: var(--dx-gold);
}

/* ==========================================================
   NAVBAR
   ========================================================== */

#mainNav {
    height: 70px;
    background: var(--dx-blue-dark);
    transition: all .3s ease;
}


.transition-navbar {
    padding-top: 18px;
    padding-bottom: 18px;
}

.navbar-scrolled2 {
    padding-top: 10px;
    padding-bottom: 10px;
    background: var(--dx-blue-dark);
    box-shadow: 0 6px 18px rgba(0,0,0,.25);
}

.navbar-scrolled {
    background: var(--dx-blue-dark);
    box-shadow: 0 6px 18px rgba(0,0,0,.25);
}

.navbar-dx {
    background-color: var(--dx-blue);
}


.navbar-dx .nav-link {
    color: rgba(255,255,255,.85);
}

.navbar-dx .nav-link:hover {
    color: #fff;
}

/* Mega Menu */
.dropdown-menu {
    border-radius: 14px;
    border: none;
}

.mega-menu {
    border-radius: 18px;
}

.mega-title {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 10px;
}

.mega-menu .dropdown-item {
    padding: 6px 0;
    transition: .2s ease;
}

.mega-menu .dropdown-item:hover {
    color: var(--dx-gold);
    transform: translateX(4px);
}

/* ==========================================================
   BREADCRUMB
   ========================================================== */


.breadcrumb {
    margin-bottom: 0;
    font-size: .85rem;
    padding: 8px 0 8px 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #adb5bd;
}

.breadcrumb-item.active {
    font-weight: 600;
}


.breadcrumb-bar {
position: sticky;
    top: 70px;           /* stessa altezza navbar */
    z-index: 1019;
    background: #f8f9fb;
    border-bottom: 1px solid #e5e7eb;
}



/* ==========================================================
   CARDS
   ========================================================== */

.main-card,
.sidebar-widget {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
    padding: 30px;
    margin-bottom: 30px;
}

/* ==========================================================
   HERO
   ========================================================== */

.resource-hero img {
    width: 100%;
    border-radius: 12px;
}

.resource-hero img.hero-img {
    max-height: 420px;
    object-fit: cover;
}

/* ==========================================================
   MINI SLIDER SIDEBAR
   ========================================================== */

.dx-slider-wrapper {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 4px;
}

.dx-slider {
    display: flex;
    gap: 10px;
}

.dx-thumb-img {
    width: 85px;
    height: 65px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: .2s ease;
    border: 2px solid transparent;
}

.dx-thumb-img:hover {
    transform: scale(1.05);
}

.dx-thumb-img.active-thumb {
    border-color: var(--dx-gold);
}

/* ==========================================================
   TAGS
   ========================================================== */

.tags-sidebar .badge {
    font-size: 0.75rem;
    font-weight: 500;
    transition: .2s ease;
}

.tags-sidebar .badge:hover {
    border-color: var(--dx-gold);
    color: #000;
}

/* ==========================================================
   FEATURED
   ========================================================== */

.featured-box {
    background: #f8f9fb;
    border-radius: 14px;
    border: 1px solid #e6e9ef;
}

.featured-card {
    background: #fff;
    border-left: 4px solid var(--dx-gold);
    transition: .2s ease;
    margin-top: 16px;
}

.featured-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,.06);
}

.featured-link {
    font-size: 1rem;
    font-weight: 600;
}

/* ==========================================================
   Description
   ========================================================== */

.dxz-ai-description{
  margin-top:8px;
  color:#6c757d; /* text-muted */
  font-size:0.95rem;
  line-height:1.45;
}
.dxz-ai-description p{ margin:0 0 8px 0; }
.dxz-ai-description ul,
.dxz-ai-description ol{ margin:6px 0 8px 20px; }
.dxz-ai-description a{ text-decoration:none; }
.dxz-ai-description a:hover{ text-decoration:underline; }



/* ==========================================================
   REVIEWS (Bootstrap Optimized)
   ========================================================== */

#reviews-section .progress {
    height: 6px;
}

.review-item {
    display: flex;
    gap: 15px;
    padding: 20px 0;
    border-bottom: 1px solid #f0f2f5;
}

.review-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
}

.review-stars {
    color: var(--dx-gold);
}

.rating-sidebar-summary {
    margin-bottom: 10px;
}

.rating-sidebar-stars i {
    font-size: 14px;
}

.rating-sidebar-meta {
    margin-top: 4px;
}

.rating-sidebar-meta a:hover {
    text-decoration: underline;
}


/* ==========================================================
   FOOTER
   ========================================================== */

.footer-modern {
    background: linear-gradient(180deg, var(--dx-blue), var(--dx-blue-dark));
    color: rgba(255,255,255,.85);
    border-top: 3px solid var(--dx-gold);
    margin-top: 60px;
}

.footer-title {
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
}

.footer-text {
    font-size: .9rem;
    color: rgba(255,255,255,.7);
}

.footer-meta {
    font-size: .8rem;
    color: rgba(255,255,255,.5);
}

.footer-links a,
.footer-social a {
    color: rgba(255,255,255,.75);
    transition: .2s ease;
}

.footer-links a:hover,
.footer-social a:hover {
    color: var(--dx-gold);
}


/* =========================================================
   DXZone Stars (FontAwesome) - Category list
   ========================================================= */
.dxz-starszz {
  display: inline-flex;
  gap: 2px;
  line-height: 1;
  vertical-align: middle;
}

.dxz-starszz i {
  font-size: 12px; /* armonizza col resto (puoi cambiare) */
}

/* piene / mezze */
.dxz-stars .dxz-star-full,
.dxz-stars .dxz-star-half {
  color: #f39c12; /* stesso oro che usi già */
}

/* vuote */
.dxz-stars .dxz-star-empty {
  color: #c9c9c9;
}

/* quando non ci sono voti: tutto grigio */
.dxz-stars.is-empty .dxz-star-full,
.dxz-stars.is-empty .dxz-star-half {
  color: #c9c9c9;
}

/* testo voti sotto thumb */
.dxz-votes {
  margin-top: 6px;
  font-size: 12px;
  color: #666;
  line-height: 1.1;
}

.dxz-votes .dxz-novotes {
  color: #888;
}

.dxz-stars{
  display:inline-flex;
  gap:2px;
  align-items:center;
  justify-content:center;
  font-size:12px;
  line-height:1;
}

.dxz-star-full,
.dxz-star-half{
  color:#f39c12;
}

.dxz-star-empty{
  color:#cfd4da;
}

.dxz-thumb-meta{
  margin-top:4px;
  font-size:12px;
  color:#6c757d;
}

.dxz-thumb-votes{
  margin-left:6px;
}


/* ==========================================================
   DXZ Link Item (no inline styles)
   ========================================================== */

.dxz-link-row{
  display:flex;
  gap:12px;
  align-items:flex-start;
}

.dxz-link-thumb{
  width:120px;
  flex:0 0 120px;
}

.dxz-link-thumbimg{
  width:120px;
  height:80px;
  object-fit:cover;
  border-radius:8px;
  display:block;
}

.dxz-link-thumbmeta{
  margin-top:6px;
  font-size:12px;
  text-align:center;
  line-height:1.2;
}

.dxz-link-body{
  flex:1 1 auto;
  min-width:0;
}

.dxz-link-catline{
  margin:2px 0 6px;
  font-size:12px;
  color:#6c757d;
}

.dxz-link-caticon{
  margin-right:6px;
}

.dxz-link-catlink{
  text-decoration:none;
  color:inherit;
}
.dxz-link-catlink:hover{
  text-decoration:underline;
}

.dxz-link-desc{
  font-size:14px;
  color:#555;
  margin-top:6px;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

/* Signal strength bars (no inline heights/colors) */
.dxz-signal{
  display:inline-flex;
  align-items:flex-end;
  height:16px;
  margin-right:8px;
}

.dxz-signal-bar{
  width:3px;
  margin-right:2px;
  display:inline-block;
  border-radius:1px;
}

.dxz-sb-1{ height:7px; }
.dxz-sb-2{ height:10px; }
.dxz-sb-3{ height:13px; }
.dxz-sb-4{ height:16px; }
.dxz-sb-5{ height:19px; }

.dxz-signal-on{  background:#28a745; }
.dxz-signal-off{ background:#ddd; }




/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 991.98px) {

#mainNav {
    padding-top: 6px;
    padding-bottom: 6px;
  }

  #mainNav .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  #mainNav .navbar-brand {
    padding: 0;
    margin: 0;
  }

  #mainNav .navbar-brand img {
    height: 42px; /* riduce logo mobile */
  }

  #mainNav .navbar-toggler {
    padding: 6px 8px;
    margin: 0;
  }

  #mainNavbar {
    background: #1e1e3f;
    padding: 1rem;
  }

  #mainNavbar .nav-link {
    padding: 0.8rem 0;
    font-size: 1.05rem;
  }

  #mainNavbar form {
    margin-bottom: 1rem;
  }

  #mainNavbar input.form-control {
    height: 45px;
    font-size: 1rem;
  }

  #mainNavbar .btn {
    height: 45px;
  }

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler {
  background: rgba(255,255,255,0.1);
  padding: 8px 10px;
  border-radius: 8px;
}

 .breadcrumb-bar {
    position: sticky;
    top: 70px; /* altezza navbar mobile */
    z-index: 1020;
  }
  
   .breadcrumb {
   padding: 10px 0 8px 0;
   }

}




@media (max-width:768px) {
    .main-card,
    .sidebar-widget {
        padding: 20px;
    }
}
