/* ==========================================================================
   Veneto Live 24 — personalizzazione Cassiopeia (Joomla 6)
   File caricato automaticamente da Cassiopeia e non sovrascritto dagli aggiornamenti.
   ========================================================================== */

:root {
  --vl-navy: #0a1050;
  --vl-navy-deep: #060a35;
  --vl-blue: #1220a6;
  --vl-red: #e3161f;
  --vl-red-dark: #c1121a;
  --vl-ink: #1b1f3b;
  --vl-muted: #5b6078;
  --vl-bg: #f4f4f6;
  --vl-line: #e3e5ec;
  --vl-radius: 14px;
  --vl-shadow: 0 1px 2px rgba(10, 16, 80, .05), 0 4px 14px -6px rgba(10, 16, 80, .12);
  --vl-shadow-hover: 0 18px 36px -14px rgba(10, 16, 80, .35);

  --cassiopeia-color-primary: var(--vl-navy);
  --cassiopeia-color-hover: var(--vl-red);
  --cassiopeia-color-link: var(--vl-blue);
  --link-color: var(--vl-blue);
  --link-color-rgb: 18, 32, 166;
  --link-hover-color: var(--vl-red);
  --link-hover-color-rgb: 227, 22, 31;
  --cassiopeia-scroll-margin-top: 6rem;
}

body {
  color: var(--vl-ink);
  background: #fff;
}

h1, h2, h3, h4 {
  color: var(--vl-navy);
  letter-spacing: -.01em;
}

a {
  text-underline-offset: .18em;
}

/* ---------- Header ---------- */
.container-header {
  background: linear-gradient(100deg, var(--vl-navy-deep) 0%, var(--vl-navy) 55%, var(--vl-blue) 100%);
  box-shadow: inset 0 -3px 0 var(--vl-red), 0 6px 20px -12px rgba(6, 10, 53, .6);
}

.container-header .navbar-brand {
  padding: 0;
}

.container-header .brand-logo img {
  display: block;
  width: auto;
  height: 44px;
}

.container-header .site-description {
  margin-top: .35rem;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
}

.container-header .mod-menu {
  gap: .25rem 1.6rem;
}

.container-header .mod-menu > li + li {
  margin-left: 0;
}

.container-header .mod-menu > li > a,
.container-header .mod-menu > li > span {
  display: inline-block;
  padding: .45rem 0;
  font-weight: 500;
  color: rgba(255, 255, 255, .86);
  transition: color .15s ease;
}

.container-header .mod-menu > li > a:hover,
.container-header .mod-menu > li.active > a {
  color: #fff;
  text-decoration: none;
}

.container-header .mod-menu > li::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--vl-red);
  opacity: 0;
  transform: scaleX(.3);
  transition: opacity .2s ease, transform .2s ease;
}

.container-header .mod-menu > li:hover::after,
.container-header .mod-menu > li.active::after {
  opacity: 1;
  transform: none;
}

/* ricerca */
.container-header .mod-finder .form-control {
  color: #fff;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px 0 0 999px;
  padding-inline: 1rem;
}

.container-header .mod-finder .form-control::placeholder {
  color: rgba(255, 255, 255, .65);
}

.container-header .mod-finder .form-control:focus {
  background: rgba(255, 255, 255, .18);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .2);
}

.container-header .mod-finder .btn {
  color: #fff;
  background: var(--vl-red);
  border-color: var(--vl-red);
  border-radius: 0 999px 999px 0;
  padding-inline: 1.1rem;
}

.container-header .mod-finder .btn:hover {
  background: var(--vl-red-dark);
  border-color: var(--vl-red-dark);
}

/* header su una riga sola da desktop */
@media (min-width: 992px) {
  .container-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 2.5rem;
    padding-inline: max(1rem, calc((100% - 1320px) / 2 + .5rem));
  }

  .container-header > .grid-child {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 1rem 0;
  }

  .container-header > .container-nav {
    flex: 1 1 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 2rem;
  }

  .container-header .container-nav .mod-menu {
    flex: 0 1 auto;
  }
}

@media (max-width: 991.98px) {
  .container-header .grid-child {
    padding-inline: 1rem;
  }

  .container-header .container-nav {
    padding-bottom: 1rem;
  }

  .container-header .container-search {
    width: 100%;
  }
}

/* ---------- Hero (home) ---------- */
.container-banner .mod-custom {
  margin: 0;
}

.vl-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.75rem, 7vw, 5rem) 1rem 0;
  text-align: center;
  background:
    radial-gradient(60rem 22rem at 50% -6rem, rgba(18, 32, 166, .07), transparent 70%),
    linear-gradient(180deg, var(--vl-bg) 0%, var(--vl-bg) 72%, #fbfbfb 100%);
}

.vl-hero__text {
  max-width: 820px;
  margin: 0 auto;
}

.vl-kicker {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin: 0;
  padding: .45rem 1rem;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--vl-red);
  background: #fff;
  border: 1px solid #f5cfd1;
  border-radius: 999px;
  box-shadow: 0 4px 14px -8px rgba(227, 22, 31, .45);
}

.vl-live-dot {
  flex: none;
  width: .6rem;
  height: .6rem;
  border-radius: 50%;
  background: var(--vl-red);
  animation: vl-pulse 1.8s ease-out infinite;
}

@keyframes vl-pulse {
  0% { box-shadow: 0 0 0 0 rgba(227, 22, 31, .55); }
  70% { box-shadow: 0 0 0 10px rgba(227, 22, 31, 0); }
  100% { box-shadow: 0 0 0 0 rgba(227, 22, 31, 0); }
}

.vl-hero h1 {
  margin: 1.25rem 0 1rem;
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.025em;
  color: var(--vl-navy);
}

.vl-hero h1 em {
  font-style: normal;
  color: var(--vl-red);
}

.vl-lead {
  max-width: 680px;
  margin: 0 auto 1.75rem;
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  line-height: 1.65;
  color: var(--vl-muted);
}

.vl-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  margin: 0;
}

.vl-btn {
  display: inline-flex;
  align-items: center;
  padding: .85rem 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  border-radius: 999px;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.vl-btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.vl-btn--primary {
  color: #fff;
  background: var(--vl-red);
  box-shadow: 0 10px 22px -10px rgba(227, 22, 31, .7);
}

.vl-btn--primary:hover {
  color: #fff;
  background: var(--vl-red-dark);
}

.vl-btn--ghost {
  color: var(--vl-navy);
  background: #fff;
  border: 1px solid var(--vl-line);
}

.vl-btn--ghost:hover {
  color: var(--vl-navy);
  border-color: var(--vl-navy);
}

.vl-hero__art {
  display: block;
  width: min(1100px, 100%);
  height: auto;
  margin: 2rem auto 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%);
}

/* ---------- Servizi (home) ---------- */
.vl-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 1.25rem;
  margin: 2.5rem 0 1rem;
}

.vl-service {
  padding: 1.6rem;
  background: #fff;
  border: 1px solid var(--vl-line);
  border-radius: var(--vl-radius);
  box-shadow: var(--vl-shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}

.vl-service:hover {
  transform: translateY(-3px);
  box-shadow: var(--vl-shadow-hover);
}

.vl-service__icon {
  display: inline-grid;
  place-items: center;
  width: 3.1rem;
  height: 3.1rem;
  margin-bottom: 1rem;
  color: var(--vl-blue);
  background: #eceefb;
  border-radius: 12px;
}

.vl-service:nth-child(2) .vl-service__icon {
  color: var(--vl-red);
  background: #fdeced;
}

.vl-service h2 {
  margin: 0 0 .4rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.vl-service p {
  margin: 0;
  line-height: 1.6;
  color: var(--vl-muted);
}

/* ---------- Titoli di pagina ---------- */
.page-header h1,
.com-content-article .page-header h2 {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin: 1.5rem 0 1.25rem;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 900;
}

.blog-featured .page-header h1::before,
.com-content-category-blog .page-header h1::before {
  content: "";
  flex: none;
  width: .38rem;
  height: 1.3em;
  border-radius: 3px;
  background: var(--vl-red);
}

/* ---------- Card articoli (blog / home) ---------- */
.blog-items.vl-cards {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)) !important;
  gap: 1.5rem;
  margin-inline: 0;
}

.vl-cards .blog-item {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--vl-line);
  border-radius: var(--vl-radius);
  box-shadow: var(--vl-shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}

.vl-cards .blog-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--vl-shadow-hover);
}

.vl-cards .item-image {
  float: none;
  width: 100%;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eceef5;
}

.vl-cards .item-image a {
  display: block;
  height: 100%;
}

.vl-cards .item-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .45s ease;
}

.vl-cards .blog-item:hover .item-image img {
  transform: scale(1.04);
}

.vl-cards .item-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.15rem 1.3rem 1.3rem;
}

.vl-cards .item-title,
.vl-cards .page-header {
  order: 1;
  margin: 0 0 .55rem;
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.35;
}

.vl-cards .item-title a,
.vl-cards .page-header h2,
.vl-cards .page-header h2 a {
  color: var(--vl-navy);
  text-decoration: none;
}

.vl-cards .item-title a:hover,
.vl-cards .page-header h2 a:hover {
  color: var(--vl-red);
}

.vl-cards .article-info {
  order: 0;
  margin: 0 0 .5rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--vl-red);
}

.vl-cards .article-info .icon-calendar {
  display: none;
}

.vl-cards .item-content > :not(.item-title, .article-info, .readmore) {
  order: 2;
}

.vl-cards .item-content > p:not(.readmore) {
  display: -webkit-box;
  margin: 0 0 .75rem;
  overflow: hidden;
  font-size: .95rem;
  line-height: 1.6;
  text-align: left !important;
  color: var(--vl-muted);
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
}

.vl-cards .item-content > p:not(.readmore) ~ p:not(.readmore),
.vl-cards .item-content > blockquote {
  display: none;
}

.vl-cards .readmore {
  order: 3;
  margin: auto 0 0;
}

.vl-cards .readmore .btn {
  padding: 0;
  font-weight: 700;
  color: var(--vl-red);
  background: none;
  border: 0;
}

.vl-cards .readmore .btn:hover {
  color: var(--vl-red-dark);
  text-decoration: underline;
}

/* link "tutte le dirette" in home */
.vl-more {
  margin: .5rem 0 0;
  text-align: center;
}

/* ---------- Pagina articolo ---------- */
.com-content-article {
  max-width: 820px;
}

.com-content-article .item-image {
  float: none;
  margin: 0 0 1.75rem;
}

.com-content-article .item-image img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 75vh;
  margin: 0 auto;
  border-radius: var(--vl-radius);
  box-shadow: var(--vl-shadow-hover);
}

.com-content-article__body {
  font-size: 1.06rem;
  line-height: 1.75;
}

.com-content-article .article-info {
  font-size: .85rem;
  color: var(--vl-muted);
}

/* ---------- Sidebar ---------- */
.container-sidebar-right .card {
  border: 1px solid var(--vl-line);
  border-radius: var(--vl-radius);
  box-shadow: var(--vl-shadow);
}

.container-sidebar-right .card-header {
  padding: 1.1rem 1.25rem 0;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--vl-muted);
  background: none;
  border: 0;
}

.container-sidebar-right .card-body {
  padding: .5rem 1.25rem 1rem;
}

.latestnews li,
.container-sidebar-right .mod-menu li {
  padding: .6rem 0;
  border-bottom: 1px solid var(--vl-line);
}

.latestnews li:last-child,
.container-sidebar-right .mod-menu li:last-child {
  border-bottom: 0;
}

.latestnews a,
.container-sidebar-right .mod-menu a {
  font-weight: 500;
  line-height: 1.4;
  color: var(--vl-navy);
  text-decoration: none;
}

.latestnews a:hover,
.container-sidebar-right .mod-menu a:hover {
  color: var(--vl-red);
}

/* ---------- Breadcrumbs ---------- */
.mod-breadcrumbs.breadcrumb {
  margin: 1.25rem 0 0;
  padding: 0 !important;
  font-size: .85rem;
  background: none;
}

/* ---------- Footer ---------- */
.footer {
  margin-top: 4rem;
  background: var(--vl-navy-deep);
  box-shadow: inset 0 3px 0 var(--vl-red);
}

.footer .grid-child {
  display: block;
  padding: 3.25rem 1rem 1.75rem;
}

.vl-footer {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem 3rem;
  scroll-margin-top: 6rem;
}

.vl-footer__brand img {
  display: block;
  width: 200px;
  height: auto;
  margin-bottom: 1rem;
}

.vl-footer p,
.vl-footer li {
  line-height: 1.7;
  color: rgba(255, 255, 255, .75);
}

.vl-footer h2 {
  margin: .25rem 0 .9rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
}

.vl-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.vl-footer a {
  color: #fff;
  text-decoration: none;
}

.vl-footer a:hover {
  color: #ff8a90;
  text-decoration: underline;
}

.vl-footer__copy {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 1.5rem;
  font-size: .85rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

@media (max-width: 767.98px) {
  .vl-footer {
    grid-template-columns: 1fr;
  }
}

/* ---------- Vari ---------- */
.back-to-top-link {
  background: var(--vl-red);
  border-color: var(--vl-red);
  border-radius: 50%;
}

.pagination .page-link {
  border-radius: 8px;
}

@media (prefers-reduced-motion: reduce) {
  .vl-live-dot { animation: none; }
  .vl-service, .vl-cards .blog-item, .vl-cards .item-image img, .vl-btn { transition: none; }
}

/* card: il "leggi tutto" compare solo per alcuni articoli, la card è già cliccabile da titolo e immagine */
.vl-cards .readmore {
  display: none;
}

/* ---------- Mobile ---------- */
@media (max-width: 991.98px) {
  .container-header .mod-menu {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: .25rem 1.25rem;
  }

  .container-header .mod-menu > li {
    flex: none;
  }
}

@media (max-width: 575.98px) {
  .container-header .brand-logo img {
    height: 36px;
  }

  .vl-kicker {
    gap: .45rem;
    padding: .4rem .8rem;
    font-size: .64rem;
    letter-spacing: .04em;
  }

  .vl-cta .vl-btn {
    justify-content: center;
    width: 100%;
  }
}

/* titolo card nella vista categoria (Joomla usa .page-header > h2) */
.vl-cards .page-header h2 {
  display: block;
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.vl-cards .page-header h2::before {
  content: none;
}

/* articolo: nasconde il titolo della voce di menu, resta il titolo dell'articolo */
.com-content-article > .page-header:has(> h1):has(~ .page-header) {
  display: none;
}

.com-content-article .page-header h2 {
  margin-top: 1.25rem;
  line-height: 1.2;
}

/* ---------- Studio interattivo (hero home, vedi js/user.js) ---------- */
.vl-studio {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.vl-studio:focus-visible {
  outline: 3px solid var(--vl-red);
  outline-offset: 4px;
  border-radius: 8px;
}

.vl-studio svg {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
}

#vl-studio text {
  font-family: Roboto, system-ui, sans-serif;
}

#vl-studio.js-cams .pan,
#vl-studio.js-cams .presenter {
  animation: none;
}

#vl-studio.tracking .tally,
#vl-studio.live .tally {
  animation: none;
  opacity: 1;
}

#vl-studio.live .beam {
  animation: none;
  opacity: 1;
}

#vl-studio .onair-dot {
  animation: vls-tally 1s steps(1) infinite;
}

#vl-studio #hint {
  transition: opacity .4s ease;
}

#vl-studio.used #hint {
  opacity: 0;
}

@media (max-width: 575.98px) {
  #vl-studio #hint {
    font-size: 34px;
    font-weight: 700;
  }
}

/* titoli dentro il testo degli articoli (es. privacy e cookie policy) */
.com-content-article__body h2 {
  margin: 2.2rem 0 .75rem;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 700;
}

.com-content-article__body h3 {
  margin: 1.5rem 0 .5rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.com-content-article__body table {
  font-size: .95rem;
}

.com-content-article__body code {
  color: var(--vl-navy);
}
