/* ===== CSS Custom Properties ===== */
:root {
  --clr-primary:       #e63946;
  --clr-secondary:     #1d3557;
  --clr-accent:        #f4a261;
  --clr-primary-rgb:   230,57,70;
  --clr-secondary-rgb: 29,53,87;
  --clr-accent-rgb:    244,162,97;
  --font-titles: 'Oswald', sans-serif;
  --font-body:   'Open Sans', sans-serif;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; }
body { font-family: var(--font-body); color: #222; overflow-x: hidden; }
h1,h2,h3,h4,h5,h6,.display-1,.display-2,.display-3,.display-4 { font-family: var(--font-titles); }
a { color: var(--clr-primary); }
a:hover { color: var(--clr-secondary); }
img { max-width: 100%; }

/* ===== Header fisso (wrapper unico) ===== */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1030;
}

/* ===== Top Bar ===== */
.top-bar {
  background: var(--clr-secondary);
  color: rgba(255,255,255,.72);
  font-size: .78rem;
  letter-spacing: .3px;
  padding: .38rem 0;
  border-bottom: 2px solid var(--clr-primary);
}
.top-bar a { color: rgba(255,255,255,.72); text-decoration: none; transition: color .2s; }
.top-bar a:hover { color: var(--clr-accent); }
.top-bar .social-top a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,.1); color: rgba(255,255,255,.75);
  transition: background .2s;
}
.top-bar .social-top a:hover { background: var(--clr-primary); color: #fff; }

/* ===== Navbar ===== */
.site-navbar {
  transition: background .35s, box-shadow .35s, padding .35s;
  padding-top: .7rem; padding-bottom: .7rem;
}
.site-navbar.scrolled {
  background: var(--clr-secondary) !important;
  box-shadow: 0 4px 30px rgba(0,0,0,.35);
  padding-top: .4rem; padding-bottom: .4rem;
}
.site-navbar .navbar-brand {
  font-family: var(--font-titles);
  font-size: 1.5rem; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
}
.site-navbar .nav-link {
  font-family: var(--font-titles);
  font-size: .9rem; letter-spacing: 1px;
  font-weight: 500; text-transform: uppercase;
  padding: .5rem .75rem !important;
  position: relative;
}
.site-navbar .nav-link::after {
  content: ''; position: absolute; bottom: 0; left: .75rem; right: .75rem;
  height: 2px; background: var(--clr-accent);
  transform: scaleX(0); transition: transform .3s;
}
.site-navbar .nav-link:hover::after,
.site-navbar .nav-link.active::after { transform: scaleX(1); }
.site-navbar .nav-link:hover,
.site-navbar .nav-link.active { color: var(--clr-accent) !important; }
.site-navbar .btn-area-riservata {
  font-family: var(--font-titles);
  font-size: .85rem; letter-spacing: 1px; text-transform: uppercase;
  background: var(--clr-primary); border: none; color: #fff;
  padding: .45rem 1.2rem; border-radius: 2px;
  transition: background .2s, transform .2s;
}
.site-navbar .btn-area-riservata:hover {
  background: var(--clr-accent); color: #fff; transform: translateY(-1px);
}

/* ===== Ticker Bar ===== */
.ticker-bar {
  background: var(--clr-primary);
  color: #fff; overflow: hidden;
  padding: .55rem 0;
  position: relative;
}
.ticker-label {
  font-family: var(--font-titles);
  font-size: .8rem; letter-spacing: 2px; text-transform: uppercase;
  background: rgba(0,0,0,.25); padding: .2rem .8rem;
  white-space: nowrap; flex-shrink: 0;
}
.ticker-track { overflow: hidden; flex: 1; }
.ticker-inner {
  display: flex; gap: 3rem; white-space: nowrap;
  animation: ticker-scroll 35s linear infinite;
  font-size: .82rem; letter-spacing: .5px;
}
.ticker-inner:hover { animation-play-state: paused; }
.ticker-item { display: inline-flex; align-items: center; gap: .4rem; }
.ticker-item::before { content: '◆'; font-size: .5rem; opacity: .7; }
.ticker-item a { color: #fff; text-decoration: none; }
.ticker-item a:hover { text-decoration: underline; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===== Hero ===== */
.hero-section { position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-overlay { position: absolute; inset: 0; pointer-events: none; }
.hero-content { position: relative; z-index: 2; }
.hero-title {
  font-family: var(--font-titles); font-weight: 700;
  text-transform: uppercase; letter-spacing: 3px;
  line-height: 1.05;
  text-shadow: 0 3px 30px rgba(0,0,0,.6);
}
.hero-subtitle { text-shadow: 0 1px 12px rgba(0,0,0,.5); letter-spacing: .5px; }
.hero-eyebrow {
  font-family: var(--font-titles);
  font-size: .8rem; letter-spacing: 4px; text-transform: uppercase;
  color: var(--clr-accent); margin-bottom: .75rem;
  display: inline-block;
}
.hero-diagonal {
  position: absolute; bottom: -1px; left: 0; right: 0;
  height: 80px; z-index: 3;
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
  background: #fff;
}

/* ===== Stats Bar ===== */
.stats-bar { background: var(--clr-primary); }
.stats-bar .stat-number {
  font-family: var(--font-titles); font-size: 3rem; font-weight: 700;
  line-height: 1; letter-spacing: -1px;
}
.stats-bar .stat-label {
  font-size: .75rem; text-transform: uppercase; letter-spacing: 2px;
  opacity: .85; margin-top: .25rem;
}
.stats-bar .stat-divider {
  width: 1px; height: 50px; background: rgba(255,255,255,.2);
}

/* ===== Section Headings ===== */
.section-label {
  display: inline-block; font-family: var(--font-titles);
  font-size: .75rem; letter-spacing: 4px; text-transform: uppercase;
  color: var(--clr-primary); font-weight: 700; margin-bottom: .5rem;
}
.section-title {
  font-family: var(--font-titles); font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  position: relative;
}
.section-title::after {
  content: ''; display: block; width: 50px; height: 3px;
  background: var(--clr-primary); margin: .6rem auto 0;
  border-radius: 0;
}
.section-title.text-start::after { margin-left: 0; }

/* ===== Featured News ===== */
.news-featured-card {
  position: relative; overflow: hidden; border-radius: 4px;
  display: block; text-decoration: none; color: inherit;
}
.news-featured-card .nf-img {
  width: 100%; height: 480px; object-fit: cover;
  display: block; transition: transform .5s;
}
.news-featured-card:hover .nf-img { transform: scale(1.03); }
.news-featured-card .nf-placeholder {
  width: 100%; height: 480px;
  background: linear-gradient(135deg, var(--clr-secondary), var(--clr-primary));
  display: flex; align-items: center; justify-content: center;
}
.news-featured-card .nf-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.9) 0%, rgba(0,0,0,.4) 50%, transparent 100%);
}
.news-featured-card .nf-body {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 2rem 1.8rem;
}
.news-featured-card .nf-cat {
  font-family: var(--font-titles); font-size: .7rem;
  letter-spacing: 3px; text-transform: uppercase;
  background: var(--clr-primary); color: #fff;
  padding: .2rem .7rem; border-radius: 0; display: inline-block; margin-bottom: .6rem;
}
.news-featured-card .nf-title {
  font-family: var(--font-titles); font-size: 1.5rem;
  font-weight: 700; color: #fff; line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0,0,0,.5);
}
.news-featured-card .nf-date {
  color: rgba(255,255,255,.65); font-size: .8rem;
  margin-top: .5rem; display: block;
}

/* ===== News Cards (small) ===== */
.news-card {
  border: none; border-radius: 4px; overflow: hidden;
  transition: transform .3s, box-shadow .3s; background: #fff;
}
.news-card:hover { transform: translateY(-4px); box-shadow: 0 12px 35px rgba(0,0,0,.12); }
.news-card .card-img-top { height: 180px; object-fit: cover; transition: transform .4s; }
.news-card:hover .card-img-top { transform: scale(1.03); }
.news-card .nc-img-wrap { height: 180px; overflow: hidden; }
.badge-cat {
  background: var(--clr-primary); color: #fff;
  font-family: var(--font-titles); font-size: .65rem;
  letter-spacing: 2px; text-transform: uppercase;
  border-radius: 0; padding: .2rem .6rem;
}
.news-card .card-title {
  font-family: var(--font-titles); font-weight: 600;
  font-size: 1rem; line-height: 1.3;
}
.news-card .read-more {
  color: var(--clr-primary); font-weight: 600;
  font-family: var(--font-titles); font-size: .82rem;
  text-decoration: none; letter-spacing: 1px; text-transform: uppercase;
}
.news-card .read-more:hover { color: var(--clr-secondary); }

/* News list items (notizie.php) */
.news-list-item {
  display: flex; gap: 1.2rem; align-items: flex-start;
  padding: 1.2rem 0; border-bottom: 1px solid #eee;
  text-decoration: none; color: inherit; transition: background .2s;
}
.news-list-item:hover .nli-title { color: var(--clr-primary); }
.news-list-item .nli-img {
  width: 110px; height: 80px; object-fit: cover;
  flex-shrink: 0; border-radius: 3px;
}
.news-list-item .nli-placeholder {
  width: 110px; height: 80px; flex-shrink: 0; border-radius: 3px;
  background: linear-gradient(135deg, var(--clr-secondary), var(--clr-primary));
  display: flex; align-items: center; justify-content: center;
}
.news-list-item .nli-title { font-family: var(--font-titles); font-size: 1rem; font-weight: 600; line-height: 1.3; }
.news-list-item .nli-meta { font-size: .78rem; color: #888; margin-top: .3rem; }

/* ===== Calendar Events ===== */
.event-row {
  display: flex; gap: 1.2rem; align-items: center;
  padding: .9rem 1.2rem; background: #fff;
  border-radius: 3px; border-left: 4px solid var(--clr-primary);
  transition: border-color .2s, box-shadow .2s;
}
.event-row:hover { border-color: var(--clr-accent); box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.event-date-box {
  background: var(--clr-secondary); color: #fff;
  min-width: 58px; text-align: center; padding: .5rem .4rem;
  border-radius: 3px; flex-shrink: 0;
}
.event-date-box .edb-day   { font-family: var(--font-titles); font-size: 1.8rem; font-weight: 700; line-height: 1; }
.event-date-box .edb-month { font-size: .65rem; text-transform: uppercase; letter-spacing: 1px; opacity: .8; }
.event-type-badge {
  font-family: var(--font-titles); font-size: .65rem;
  letter-spacing: 2px; text-transform: uppercase;
  background: rgba(var(--clr-primary-rgb),.1);
  color: var(--clr-primary); padding: .2rem .6rem; border-radius: 2px;
}

/* ===== Next Event / Match Feature Card ===== */
.next-event-card {
  background: var(--clr-secondary);
  border-radius: 4px; overflow: hidden;
  position: relative;
}
.next-event-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 4px; background: var(--clr-primary);
}
.next-event-label {
  font-family: var(--font-titles); font-size: .7rem;
  letter-spacing: 4px; text-transform: uppercase;
  color: var(--clr-accent); font-weight: 700;
}
.next-event-title {
  font-family: var(--font-titles); font-size: 1.8rem;
  font-weight: 700; color: #fff; text-transform: uppercase; line-height: 1.1;
}
.next-event-meta { color: rgba(255,255,255,.7); font-size: .88rem; }

/* ===== Team Cards ===== */
.team-card {
  position: relative; overflow: hidden; cursor: pointer;
  border-radius: 3px; transition: transform .3s, box-shadow .3s;
}
.team-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(0,0,0,.22); }

/* Senza foto la card e' solo colore: la velatura puo' coprire tutto, non nasconde nulla. */
.team-card .team-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(var(--clr-secondary-rgb),.95) 40%, rgba(0,0,0,.2) 100%);
}

/*
 * Con la foto, invece, quella stessa velatura la seppelliva: opaca al 95% fino a meta'
 * altezza, di una squadra si vedeva sì e no il cielo. Qui scurisce solo dove appoggiano
 * il nome e i dati, e da meta' card in su la foto resta la foto.
 */
.team-card.has-foto { background-color: var(--clr-secondary); }
.team-card.has-foto .team-overlay {
  background: linear-gradient(to top,
              rgba(var(--clr-secondary-rgb),.92) 0%,
              rgba(var(--clr-secondary-rgb),.62) 32%,
              rgba(0,0,0,.18) 62%,
              rgba(0,0,0,0) 100%);
}
/* La foto si avvicina di poco al passaggio del mouse: fa capire che la card si apre. */
.team-card.has-foto { background-size: cover; background-position: center; transition: transform .3s, box-shadow .3s, background-size .45s; }
.team-card.has-foto:hover { background-size: 112%; }
.team-card.has-foto .team-name { text-shadow: 0 1px 3px rgba(0,0,0,.55); }
.team-card.has-foto .team-count { color: rgba(255,255,255,.85); text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.team-card .team-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 1.2rem; }
.team-card .team-category {
  font-family: var(--font-titles); font-size: .65rem;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--clr-accent); display: block; margin-bottom: .3rem;
}
.team-card .team-name { font-family: var(--font-titles); font-weight: 700; font-size: 1.05rem; color: #fff; }
.team-card .team-count { font-size: .75rem; color: rgba(255,255,255,.6); margin-top: .2rem; }

/* ===== Settore badge ===== */
.settore-header {
  display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem;
}
.settore-accent { width: 4px; height: 2.5rem; background: var(--clr-primary); border-radius: 0; flex-shrink: 0; }
.settore-name { font-family: var(--font-titles); font-size: 1.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }

/* ===== Dark Section ===== */
.dark-section { background: var(--clr-secondary); color: rgba(255,255,255,.9); }
.dark-section .section-title::after { background: var(--clr-accent); }
.dark-section .section-label { color: var(--clr-accent); }

/* ===== Accent Section ===== */
.accent-section { background: var(--clr-primary); color: #fff; }

/* ===== CTA Join Strip ===== */
.cta-strip {
  background: linear-gradient(135deg, var(--clr-secondary) 0%, rgba(var(--clr-secondary-rgb),.85) 100%);
  position: relative; overflow: hidden;
}
.cta-strip::before {
  content: ''; position: absolute;
  right: -100px; top: -100px;
  width: 400px; height: 400px; border-radius: 50%;
  background: rgba(var(--clr-primary-rgb),.15);
}
.cta-strip::after {
  content: ''; position: absolute;
  left: -80px; bottom: -80px;
  width: 300px; height: 300px; border-radius: 50%;
  background: rgba(var(--clr-accent-rgb),.1);
}

/* ===== Sponsors ===== */
.sponsor-strip { background: #f8f9fa; }
.sponsor-track { display: flex; align-items: center; gap: 3rem; overflow: hidden; }
.sponsor-inner { display: flex; gap: 3rem; align-items: center; animation: ticker-scroll 25s linear infinite; }
.sponsor-inner:hover { animation-play-state: paused; }
.sponsor-item { filter: grayscale(80%); opacity: .55; transition: all .3s; flex-shrink: 0; }
.sponsor-item:hover { filter: none; opacity: 1; transform: scale(1.05); }
.sponsor-badge-gold   { border-top: 3px solid #ffd700; }
.sponsor-badge-silver { border-top: 3px solid #c0c0c0; }
.sponsor-badge-bronze { border-top: 3px solid #cd7f32; }

/* ===== Contact ===== */
.contact-icon-box {
  width: 52px; height: 52px;
  background: rgba(var(--clr-primary-rgb),.1);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--clr-primary); font-size: 1.3rem; flex-shrink: 0;
}

/* ===== Buttons ===== */
.btn-primary  { background: var(--clr-primary); border-color: var(--clr-primary); border-radius: 2px; }
.btn-primary:hover { background: rgba(var(--clr-primary-rgb),.85); border-color: rgba(var(--clr-primary-rgb),.85); }
.btn-secondary { background: var(--clr-secondary); border-color: var(--clr-secondary); border-radius: 2px; }
.btn-outline-primary { color: var(--clr-primary); border-color: var(--clr-primary); border-radius: 2px; }
.btn-outline-primary:hover { background: var(--clr-primary); border-color: var(--clr-primary); color: #fff; }
.btn-outline-light { border-radius: 2px; }
.btn-cta {
  font-family: var(--font-titles); letter-spacing: 2px; text-transform: uppercase;
  font-size: .85rem; padding: .7rem 2rem; border-radius: 2px;
}

/* ===== Page Hero (inner pages) ===== */
/* Desktop: top-bar (~38px) + navbar (~66px) = ~104px → padding-top: 8rem (128px) */
/* Mobile: solo navbar (~60px) → padding-top: 5.5rem (88px) */
.page-hero {
  background: var(--clr-secondary);
  padding: 8rem 0 3rem; position: relative; overflow: hidden;
}
@media (max-width: 991px) {
  .page-hero { padding-top: 5.5rem; }
}
.page-hero::before {
  content: ''; position: absolute; right: -5%; top: -30%;
  width: 500px; height: 500px; border-radius: 50%;
  background: rgba(var(--clr-primary-rgb),.12);
}
.page-hero .ph-eyebrow {
  font-family: var(--font-titles); font-size: .7rem;
  letter-spacing: 4px; text-transform: uppercase;
  color: var(--clr-accent); display: block; margin-bottom: .5rem;
}
.page-hero h1 {
  font-family: var(--font-titles); font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px; line-height: 1.1;
}
.page-hero .ph-divider {
  width: 50px; height: 3px; background: var(--clr-primary); margin: 1rem 0;
}

/* ===== Breadcrumb ===== */
.breadcrumb-sports { font-size: .78rem; }
.breadcrumb-sports .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.35); }
.breadcrumb-sports .breadcrumb-item a { color: rgba(255,255,255,.5); text-decoration: none; }
.breadcrumb-sports .breadcrumb-item a:hover { color: var(--clr-accent); }
.breadcrumb-sports .breadcrumb-item.active { color: rgba(255,255,255,.7); }

/* ===== Article Content ===== */
.article-content { font-size: 1.05rem; line-height: 1.9; color: #333; }
.article-content p { margin-bottom: 1.2rem; }
.article-content h2, .article-content h3 { font-family: var(--font-titles); margin-top: 2rem; }
.article-content img { border-radius: 4px; margin: 1rem 0; }

/* ===== Sidebar ===== */
.sidebar-card { border: none; border-radius: 4px; overflow: hidden; }
.sidebar-card .sc-head {
  background: var(--clr-secondary); color: #fff; padding: .8rem 1.2rem;
  font-family: var(--font-titles); font-size: .85rem; letter-spacing: 2px; text-transform: uppercase;
}
.related-item { display: flex; gap: .9rem; align-items: flex-start; padding: .8rem 0; border-bottom: 1px solid #f0f0f0; text-decoration: none; color: #222; }
.related-item:last-child { border-bottom: none; }
.related-item:hover .related-title { color: var(--clr-primary); }
.related-item .ri-img { width: 65px; height: 50px; object-fit: cover; border-radius: 3px; flex-shrink: 0; }
.related-item .ri-ph { width: 65px; height: 50px; border-radius: 3px; flex-shrink: 0; background: var(--clr-primary); display: flex; align-items: center; justify-content: center; }
.related-title { font-family: var(--font-titles); font-size: .88rem; font-weight: 600; line-height: 1.3; }
.related-date  { font-size: .75rem; color: #888; margin-top: .2rem; }

/* ===== Pagination ===== */
.pagination .page-link {
  font-family: var(--font-titles); font-size: .82rem; letter-spacing: 1px;
  color: var(--clr-secondary); border: 1px solid #dee2e6; border-radius: 2px !important;
  padding: .45rem .75rem;
}
.pagination .page-item.active .page-link {
  background: var(--clr-primary); border-color: var(--clr-primary); color: #fff;
}
.pagination .page-link:hover { background: var(--clr-primary); border-color: var(--clr-primary); color: #fff; }

/* ===== Footer ===== */
.site-footer { background: var(--clr-secondary); color: rgba(255,255,255,.75); }
.site-footer h5 { font-family: var(--font-titles); color: #fff; letter-spacing: 2px; text-transform: uppercase; font-size: .85rem; margin-bottom: 1.2rem; }
.site-footer h5::after { content: ''; display: block; width: 30px; height: 2px; background: var(--clr-primary); margin-top: .4rem; }
.site-footer a { color: rgba(255,255,255,.6); text-decoration: none; transition: color .2s; font-size: .88rem; }
.site-footer a:hover { color: var(--clr-accent); }
.site-footer .footer-brand { font-family: var(--font-titles); font-size: 1.6rem; font-weight: 700; color: #fff; letter-spacing: 1px; }
.site-footer .social-link {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.08); display: inline-flex;
  align-items: center; justify-content: center; color: rgba(255,255,255,.7);
  transition: background .2s, color .2s; font-size: .95rem;
}
.site-footer .social-link:hover { background: var(--clr-primary); color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: .78rem; color: rgba(255,255,255,.4);
  padding-top: 1.2rem; margin-top: 2rem;
}
.footer-top-bar { height: 4px; background: var(--clr-primary); }

/* ===== Scroll Top ===== */
#scrollTop {
  position: fixed; bottom: 2rem; right: 2rem;
  width: 42px; height: 42px; background: var(--clr-primary); color: #fff;
  border: none; border-radius: 2px; font-size: 1rem;
  display: none; align-items: center; justify-content: center;
  z-index: 999; box-shadow: 0 4px 20px rgba(var(--clr-primary-rgb),.5);
  cursor: pointer; transition: transform .2s, background .2s;
}
#scrollTop:hover { transform: translateY(-3px); background: var(--clr-secondary); }

/* ===== Animations ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(.95); }
  to   { opacity: 1; transform: scale(1); }
}
.animate-fadeInUp   { animation: fadeInUp  .6s ease both; }
.animate-fadeInLeft { animation: fadeInLeft .6s ease both; }
.animate-scaleIn    { animation: scaleIn   .5s ease both; }
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }
.delay-4 { animation-delay: .4s; }
.delay-5 { animation-delay: .5s; }

/* ===== Utility ===== */
.text-accent { color: var(--clr-accent) !important; }
.bg-primary-subtle { background: rgba(var(--clr-primary-rgb),.08); }
.section-alt { background: #f6f7f8; }
.divider-v { width: 1px; background: rgba(255,255,255,.15); align-self: stretch; }

/* ===== Template: SPORT ===== */
.site-navbar { background: transparent; }
.hero-section { min-height: 100vh; display: flex; align-items: center; }
.hero-overlay { background: linear-gradient(135deg, rgba(var(--clr-secondary-rgb),.88) 0%, rgba(var(--clr-primary-rgb),.55) 100%); }
.site-navbar .nav-link,
.site-navbar .navbar-brand { color: rgba(255,255,255,.92) !important; }
.site-navbar.scrolled .navbar-toggler-icon { filter: invert(1); }
.hero-diagonal { background: #fff; }


/* ===== Responsive ===== */
@media (max-width: 991px) {
  /* Su mobile la top bar è nascosta, il menu collassato ha sfondo scuro */
  .site-navbar { background: var(--clr-secondary) !important; }
  .site-navbar .nav-link,
  .site-navbar .navbar-brand { color: rgba(255,255,255,.9) !important; }
  .navbar-collapse { background: var(--clr-secondary); padding: .5rem 0 1rem; }
}
@media (max-width: 768px) {
  .stats-bar .stat-number { font-size: 2.2rem; }
  .hero-title { font-size: 2.2rem !important; letter-spacing: 1px; }
  .news-featured-card .nf-img,
  .news-featured-card .nf-placeholder { height: 280px; }
  .news-featured-card .nf-title { font-size: 1.2rem; }
  .top-bar .top-bar-text { display: none; }
  .hero-diagonal { height: 40px; }
}

/* ===== Testo delle notizie scritto con l'editor visuale =====
   L'editor del gestionale (Quill) segna l'allineamento e il rientro con delle classi
   invece che con lo stile: `ql-align-center` su un paragrafo non fa niente da solo.
   Senza queste righe una notizia impaginata con cura in redazione arriva sul sito
   tutta allineata a sinistra, e non è chiaro perché. */
.article-content .ql-align-center  { text-align: center; }
.article-content .ql-align-right   { text-align: right; }
.article-content .ql-align-justify { text-align: justify; }
.article-content .ql-indent-1 { padding-left: 3em; }
.article-content .ql-indent-2 { padding-left: 6em; }
.article-content .ql-indent-3 { padding-left: 9em; }
.article-content .ql-indent-4 { padding-left: 12em; }

/* Un'immagine inserita nel testo non deve sfondare la colonna su schermo stretto
   (lo stile dell'immagine c'e gia piu su: qui serve solo il limite di larghezza). */
.article-content img { max-width: 100%; height: auto; }
.article-content blockquote {
  border-left: 4px solid var(--clr-primary);
  padding: .25rem 0 .25rem 1rem;
  margin: 1rem 0;
  color: #555;
  font-style: italic;
}
.article-content ul, .article-content ol { padding-left: 1.5rem; margin-bottom: 1.2rem; }
