.etre-news-highlight,
.etre-news-highlight * {
    box-sizing: border-box;
}

.etre-news-highlight {
    width: 100%;
    display: flex;
    align-items: stretch;
}

.etre-news-main-col,
.etre-news-side-col {
    min-width: 0;
}

.etre-news-main-card {
    position: relative;
    overflow: hidden;
    display: flex;
    height: 100%;
    background: #fff;
    box-shadow: 0 10px 24px rgba(16, 33, 63, .08);
}

.etre-news-main-image {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 100%;
    background: #edf2f8;
}

.etre-news-main-image:after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.92) 100%);
    pointer-events: none;
}

.etre-news-main-image img,
.etre-news-side-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .28s ease;
}

.etre-news-main-card:hover .etre-news-main-image img,
.etre-news-side-card:hover .etre-news-side-image img {
    transform: scale(1.035);
}

.etre-news-main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.etre-news-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 4px;
    color: #fff;
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .02em;
    text-transform: uppercase;
    z-index: 3;
}

.etre-news-date {
    display: block;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .02em;
    margin-bottom: 8px;
}

.etre-news-main-title {
    margin: 0 0 16px;
    font-size: 30px;
    line-height: 1.13;
    font-weight: 800;
}

.etre-news-main-title a,
.etre-news-side-title a {
    color: inherit;
    text-decoration: none;
}

.etre-news-main-title a:hover,
.etre-news-side-title a:hover,
.etre-news-read-more:hover {
    text-decoration: none;
    opacity: .82;
}

.etre-news-excerpt {
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 1.65;
    max-width: 330px;
}

.etre-news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 800;
    text-decoration: none;
}

.etre-news-side-list {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.etre-news-side-card {
    overflow: hidden;
    display: flex;
    background: #fff;
    box-shadow: 0 10px 24px rgba(16, 33, 63, .08);
}

.etre-news-side-image {
    display: block;
    flex: 0 0 auto;
    overflow: hidden;
    background: #edf2f8;
}

.etre-news-side-content {
    flex: 1;
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
}

.etre-news-side-title {
    margin: 0;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 800;
}

.etre-news-main-image__placeholder,
.etre-news-side-image__placeholder {
    width: 100%;
    height: 100%;
    min-height: inherit;
    background:
        radial-gradient(circle at 30% 30%, rgba(0,87,184,.20), transparent 35%),
        linear-gradient(135deg, #e9eef5 0%, #f7f9fc 100%);
}

.etre-news-empty {
    padding: 18px;
    background: #fff8e5;
    border: 1px solid #f0d38a;
    border-radius: 8px;
    color: #725400;
}

@media (max-width: 1024px) {
    .etre-news-highlight {
        flex-direction: column;
    }

    .etre-news-main-col,
    .etre-news-side-col {
        flex-basis: auto !important;
        width: 100%;
    }

    .etre-news-main-card {
        min-height: 250px;
    }
}

@media (max-width: 767px) {
    .etre-news-main-card {
        flex-direction: column;
    }

    .etre-news-main-image {
        flex-basis: auto !important;
        width: 100%;
        min-height: 210px;
    }

    .etre-news-main-image:after {
        background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.94) 100%);
    }

    .etre-news-badge {
        top: 14px;
        left: 14px;
    }

    .etre-news-main-title {
        font-size: 24px;
    }

    .etre-news-side-card {
        min-height: 92px;
    }

    .etre-news-side-image {
        width: 96px !important;
    }

    .etre-news-side-title {
        font-size: 16px;
    }
}

/* Slider mode */
.etre-news-highlight-slider .etre-news-main-col {
    position: relative;
}

.etre-news-main-stage {
    position: relative;
    height: 100%;
    min-height: inherit;
}

.etre-news-highlight-slider .etre-news-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity .35s ease, transform .35s ease, visibility .35s ease;
}

.etre-news-highlight-slider .etre-news-slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.etre-news-highlight-slider .etre-news-main-card {
    width: 100%;
}

.etre-news-side-card {
    position: relative;
}

.etre-news-side-inner {
    display: flex;
    width: 100%;
    color: inherit;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.etre-news-side-title {
    color: inherit;
}

.etre-news-nav-item {
    cursor: pointer;
    transition: transform .22s ease, box-shadow .22s ease, opacity .22s ease;
}

.etre-news-nav-item.is-active {
    transform: translateX(-2px);
}

.etre-news-nav-item.is-active:before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: currentColor;
    opacity: .85;
    z-index: 3;
}

.etre-news-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left center;
    opacity: .9;
    display: none;
}

.etre-news-highlight-slider[data-show-progress="true"] .etre-news-nav-item.is-active .etre-news-progress {
    display: block;
    animation: etre-news-progress var(--etre-news-interval, 5000ms) linear forwards;
}

.etre-news-highlight-slider.is-paused .etre-news-progress {
    animation-play-state: paused;
}

@keyframes etre-news-progress {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@media (max-width: 1024px) {
    .etre-news-highlight-slider .etre-news-main-col {
        min-height: 275px;
    }
}

@media (max-width: 767px) {
    .etre-news-highlight-slider .etre-news-main-col {
        min-height: 420px;
    }

    .etre-news-side-inner {
        min-height: inherit;
    }
}

/* ===== Fix titoli lunghi, meta ordinata, card uniformi (patch 1.1.1) =====
   Scoped a .etre-news-highlight. Solo presentazione: contenuti/query invariati. */

/* Meta principale: badge + data in riga (badge non piu' assoluto) */
.etre-news-highlight .etre-news-meta{ display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin-bottom:16px; }
.etre-news-highlight .etre-news-meta:empty{ display:none; }
.etre-news-highlight .etre-news-main-content .etre-news-badge{
  position:static; top:auto; left:auto;
  padding:5px 11px; border-radius:999px; font-size:11.5px; font-weight:650;
  background:#1565d8 !important; color:#fff; line-height:1;
}
.etre-news-highlight .etre-news-main-content .etre-news-main-date{ font-size:12.5px; color:#6e7a8a; letter-spacing:.01em; }

/* Titolo principale: fluido + clamp 5 righe */
.etre-news-highlight .etre-news-main-title{
  font-size:clamp(26px, 2.15vw, 34px); line-height:1.08; font-weight:680; letter-spacing:-.02em;
  color:#0b2a4a; margin:0 0 14px; text-wrap:balance;
  display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:5; overflow:hidden;
}
.etre-news-highlight .etre-news-main-title a{ color:inherit; }
.etre-news-highlight .etre-news-main-title a:focus-visible{ outline:2px solid #1565d8; outline-offset:3px; }

/* Estratto: clamp 3 righe */
.etre-news-highlight .etre-news-excerpt{
  font-size:15px; line-height:1.55; color:#6e7a8a; margin-top:16px;
  display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow:hidden;
}
.etre-news-highlight .etre-news-excerpt:empty{ display:none; margin:0; }

/* CTA sempre in fondo */
.etre-news-highlight .etre-news-main-content .etre-news-read-more{
  margin-top:auto; padding-top:22px; color:#1565d8; font-size:14px; font-weight:600;
}
.etre-news-highlight .etre-news-read-more:focus-visible{ outline:2px solid #1565d8; outline-offset:2px; }

/* Split immagine/contenuto principale */
@media (min-width:768px){
  .etre-news-highlight .etre-news-main-card .etre-news-main-image{ flex:0 0 52%; max-width:52%; }
  .etre-news-highlight .etre-news-main-content{ flex:1 1 48%; min-width:0; }
}

/* Titoli laterali: fluido + clamp 3 righe, peso ridotto */
.etre-news-highlight .etre-news-side-title{
  font-size:clamp(16px, 1.25vw, 18px); line-height:1.22; font-weight:680; letter-spacing:-.01em; color:#0b2a4a;
  display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow:hidden;
}
.etre-news-highlight .etre-news-side-content{ min-width:0; }
.etre-news-highlight .etre-news-side-date{ font-size:12px; color:#6e7a8a; margin-bottom:4px; }

/* Clamp per breakpoint */
@media (max-width:1024px){
  .etre-news-highlight .etre-news-main-title{ -webkit-line-clamp:4; }
  .etre-news-highlight .etre-news-excerpt{ -webkit-line-clamp:2; }
}
@media (max-width:767px){
  .etre-news-highlight .etre-news-main-title{ -webkit-line-clamp:4; font-size:clamp(24px,6vw,30px); }
  .etre-news-highlight .etre-news-excerpt{ -webkit-line-clamp:2; }
  .etre-news-highlight .etre-news-side-title{ -webkit-line-clamp:2; }
}

/* ---------- 1.1.2: freccia "Apri" sulle news laterali ---------- */
.etre-news-side-card { position: relative; }
.etre-news-side-card .etre-news-side-inner { padding-right: 52px; }
.etre-news-side-open {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    width: 32px; height: 32px; border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(11, 42, 74, .08); color: #0B2A4A; text-decoration: none; line-height: 0;
    opacity: .7; transition: background .2s cubic-bezier(.4, 0, .2, 1), opacity .2s, transform .2s cubic-bezier(.4, 0, .2, 1);
}
.etre-news-side-card:hover .etre-news-side-open, .etre-news-nav-item.is-active .etre-news-side-open { opacity: 1; }
.etre-news-nav-item.is-active .etre-news-side-open { background: #0B2A4A; color: #fff; }
.etre-news-side-open:hover { background: #14395F; color: #fff; opacity: 1; transform: translateY(-50%) translateX(2px); }
.etre-news-side-open:focus-visible { outline: 2px solid #1565D8; outline-offset: 2px; }
.etre-news-side-open svg { display: block; }
@media (hover: none) { .etre-news-side-open { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .etre-news-side-open { transition: none; } }
