/* ==========================================================
   Harmonia Channel - Imperial-like minimal theme
   (Bootstrap 5 friendly, no conflicts with navbar bootstrap)
   ========================================================== */

/* Base */
:root{
  --brand: saddlebrown;
  --brand-hover: #03c5ec;
  --harmonia-brown: #835304;
  --text: #666;
  --heading: #111;
  --header-bg: #0d0d0d;
}

body{
  background:#fff;
  color:var(--text);
  font-family:"Open Sans", sans-serif;
}

/* Headings */
h1,h2,h3,h4,h5,h6{
  font-family:"Raleway", sans-serif;
  font-weight:700;
  color:var(--heading);
  margin:0 0 16px 0;
}

.channel-title-brown{
  color: var(--harmonia-brown) !important;
}

/* Links (solo dentro main per non rompere navbar/btn) */
main a{
  color:var(--brand);
  text-decoration:none;
  transition:.3s;
}
main a:hover{
  color:var(--brand-hover);
  text-decoration:none;
}

/* ==========================================================
   Header (Imperial vibe)
   ========================================================== */
#header{
  background: var(--header-bg);
  transition: all .3s;
  z-index: 1030;
  height: 70px;
}
@media (max-width: 992px){
  #header{ height: 60px; }
}

/* quando scrolli (classe aggiunta via JS) */
#header.fixed-top{
  background: rgba(0,0,0,.85);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.channel-brand{
  display:flex;
  align-items:center;
  gap:0;
  text-decoration:none;
}
.channel-brand img{
  height: 34px;
  width:auto;
}
.channel-brand span{
  color:#fff;
  font-weight:800;
  letter-spacing:.2px;
}

/* Navbar links: colore Imperial */
#header .navbar .nav-link{
  color: rgba(255,255,255,.85) !important;
  font-family:"Raleway", sans-serif;
  font-size: 14px;
  letter-spacing:.2px;
}
#header .navbar .nav-link:hover,
#header .navbar .nav-link.active{
  color: var(--brand) !important;
  font-weight:700;
}

/* ==========================================================
   Hero (versione leggera per Channel)
   ========================================================== */
.channel-hero{
  padding: 5px 0;
  background: linear-gradient(180deg, #0b0b0b 0%, #151515 100%);
  color:#fff;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.channel-hero h1{
  color:#fff;
  text-transform: uppercase;
  letter-spacing: .6px;
}
.channel-hero p{
  color:#ccc;
  margin:0;
  max-width: 980px;
}

/* ==========================================================
   Cards / grid content
   ========================================================== */
.card{
  border:1px solid rgba(0,0,0,.08);
  border-radius: 14px;
}
.channel-card{
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.channel-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
}
.channel-card-img{
  height: 190px;
  object-fit: cover;
  background: #f4f4f4;
}
.card-title{
  font-weight:800;
}
.channel-card-date{
  font-size: .72rem;
  line-height: 1.2;
  color: #8a8a8a;
  padding-top: .2rem;
}
.badge.bg-dark{
  background: var(--brand) !important;
}

/* Media inside cards */
.card img{
  border-radius: 10px;
}
.ratio > video,
.ratio > iframe{
  width:100%;
  height:100%;
  border:0;
  border-radius: 10px;
}

/* ==========================================================
   Intro section (home)
   ========================================================== */
.channel-intro{
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  font-size: 0.88rem;
  line-height: 1.6;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}
.channel-intro p{
  margin: 0 0 14px 0;
}
.intro-logo{
  width: 420px;
  height: auto;
  flex-shrink: 0;
}
.intro-logo-wrap{
  margin-top: -24px;
}
.intro-title{
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.35;
}
@media (max-width: 768px){
  .intro-logo{
    width: 280px;
  }
  .intro-logo-wrap{
    margin-top: -16px;
  }
  .detail-logo{
    max-width: 240px;
    width: 80%;
  }
}

/* ==========================================================
   Detail page
   ========================================================== */
.detail-logo{
  max-width: 320px;
  width: 80%;
  height: auto;
}
.detail-body{
  font-size: 1rem;
  line-height: 1.65;
}
.channel-detail-date{
  font-size: .82rem;
  color: #8a8a8a;
}
.detail-media img{
  border-radius: 12px;
}

/* Buttons brand */
.btn-outline-primary{
  border-color: var(--brand) !important;
  color: var(--brand) !important;
}
.btn-outline-primary:hover{
  background: var(--brand) !important;
  color:#fff !important;
}

/* ==========================================================
   Footer (Imperial shared footer)
   ========================================================== */
#footer{
  --footer-gap: 28px;
  background:#111;
  padding:40px 0 30px;
  color:#fff;
  border-top: var(--footer-gap) solid transparent;
  background-clip: padding-box;
}

body > #footer,
main > #footer{
  margin-top:auto;
}

#footer .footer-top{
  padding-bottom:20px;
  border-bottom:1px solid rgba(255,255,255,.1);
  margin-bottom:20px;
  --bs-gutter-x: 6rem;
  --bs-gutter-y: 2rem;
}

#footer .footer-block h4{
  font-size:15px;
  letter-spacing:1px;
  text-transform:uppercase;
  margin-bottom:12px;
  color:#fff;
}

#footer .footer-block p{
  margin-bottom:8px;
}

#footer .footer-block a{
  color:#fff;
}

#footer .footer-block a:hover{
  color:#835304;
}

#footer .footer-menu{
  list-style:none;
  padding:0;
  margin:0;
}

#footer .footer-menu li{
  margin-bottom:8px;
}

#footer .footer-certifications{
  margin-top:12px;
}

#footer .footer-certifications img{
  height:40px;
  width:auto;
  max-width:100%;
}

#footer .footer-location{
  margin-top:12px;
}

#footer .footer-location-label{
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:1px;
  color:#ccc;
  margin-bottom:6px;
}

#footer .footer-location-map iframe{
  width:100%;
  height:140px;
  border:0;
}

#footer .footer-location-address{
  font-size:14px;
  color:#ddd;
  margin-top:6px;
}

#footer .footer-bottom .copyright{
  text-align:center;
}

#footer .credits{
  padding-top:10px;
  text-align:center;
  font-size:13px;
  color:#ccc;
}

@media (max-width: 991.98px){
  #footer .footer-top{
    --bs-gutter-x: 3rem;
  }
}
