/* =========================================
   RESET E BASE
   ========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Nunito Sans', sans-serif;
    padding-top: 66px;
    background-color: #ffffff;
    color: #191919;
}

button,
select {
    font-family: inherit;
}

.sr-only {
    position: absolute;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* =========================================
   HEADER E NAVBAR
   ========================================= */
.site-header {
    background-color: #162b75;
    color: #ffffff;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9;
    transition: 0.5s;
}

.header-top {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    padding: 8px 20px;
    position: relative;
    flex-shrink: 0;
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    line-height: 27px;
    gap: 16px;
}

.header-left {
    justify-self: start;
    width: 88px;
}

.header-right {
    justify-self: end;
}

.header-center {
    justify-self: center;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    height: 100%;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-link img {
    display: block;
    height: 38px;
    width: auto;
}

.region-select {
    background-color: transparent;
    color: #ffffff;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    padding: 0.3rem;
    appearance: auto;
}

.region-select option {
    background-color: #ffffff;
    color: #000000;
}

/* -- LOGO BRANDING (SHAW LOCAL + 175) -- */
.logo-container {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Nunito Sans', sans-serif;
    color: #ffffff;
}

.logo-shaw {
    font-size: 2.2rem;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -2px;
}

.logo-local {
    font-size: 2.2rem;
    font-weight: 400;
    font-style: italic;
    letter-spacing: -1px;
}

.logo-badge {
    background-color: #d09c37;
    color: #162b75;
    padding: 4px 8px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    line-height: 1;
    transform: rotate(-10deg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.badge-text {
    font-size: 0.9rem;
    font-weight: 800;
}

.badge-sub {
    font-size: 0.4rem;
    font-weight: 700;
    text-transform: uppercase;
}

.icon-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    height: 100%;
}

.icon-btn:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 4px;
    border-radius: 4px;
}

.icon-btn:hover {
    background: transparent;
    opacity: 1;
    transform: none;
    box-shadow: none;
}

.btn-subscribe {
    background-color: #d09c37;
    color: #ffffff;
    border: none;
    padding: 0 1rem;
    height: 100%;
    font-weight: 800;
    font-size: 0.95rem;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.1s ease;
}

.btn-subscribe:hover,
.btn-subscribe:focus-visible {
    background-color: #b58622;
}

.btn-signin {
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0 4px;
    height: 100%;
    transition: opacity 0.2s ease;
}

.btn-signin:hover,
.btn-signin:focus-visible {
    opacity: 0.7;
}

.btn-signin span {
    line-height: 1;
}

.main-navigation {
    display: block;
    margin-top: 1rem;
    padding-bottom: 10px;
    border-bottom: 1px solid #d8d8d8;
    text-align: center;
    font-weight: bold;
    line-height: 27px;
    background-color: #ffffff;
}

.nav-list {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
    height: 27px;
}

.nav-link {
    color: #191919;
    font-size: 1rem;
    text-decoration: none;
    transition: opacity 0.2s ease;
    display: inline-block;
}

.nav-link:hover,
.nav-link:active,
.nav-link:focus-visible {
    opacity: 0.6;
}

.separator {
    color: #191919;
    font-size: 0.8rem;
    user-select: none;
    display: flex;
    align-items: center;
}

/* =========================================
   LAYOUT PRINCIPALE A 3 COLONNE
   ========================================= */
.main-content {
    width: 100%;
    max-width: 1337px;
    margin: 2rem auto;
    padding: 0 15px;
}

.three-col-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 40px;
    /* Ottimizzazione semantica: sostituisce il div vuoto */
}

.col-left,
.col-right {
    width: 100%;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    color: #000;
}

.latest-item {
    margin-bottom: 1.5rem;
}

.latest-item time {
    display: block;
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 0.2rem;
}

.latest-item h3,
.sponsored-item h3 {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    color: #191919;
}

.sponsored-item {
    margin-bottom: 1.5rem;
}

.sponsored-figure {
    position: relative;
    margin-bottom: 0.5rem;
}

.sponsored-figure img,
.ad-container img {
    width: 100%;
    height: auto;
    display: block;
}

.sponsored-badge {
    position: absolute;
    bottom: 5px;
    left: 5px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 0.65rem;
    padding: 2px 6px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.ad-container {
    text-align: center;
    background-color: transparent;
    padding: 0;
    border: none;
}

/* -- Colonna Centrale Articoli -- */
.hero-article {
    margin-bottom: 2rem;
}

.hero-article img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 1rem;
    object-fit: cover;
}

.hero-article h2 {
    font-size: 2.3rem;
    font-weight: 800;
    line-height: 1.1;
    color: #000;
    margin-bottom: 0.8rem;
}

.hero-article .excerpt {
    font-size: 1rem;
    color: #333;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.author {
    font-size: 0.8rem;
    color: #64748b;
    text-transform: uppercase;
}

.author span {
    color: #000;
    font-weight: 600;
}

.top-stories-header {
    margin: 2.5rem 0 1.5rem 0;
}

.top-stories-header h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #000;
}

.list-article {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.article-text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: #000;
    margin-bottom: 0.5rem;
}

.article-thumb {
    flex: 0 0 271px;
    max-width: 100%;
}

.article-thumb img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 271 / 152;
    object-fit: cover;
}

.article-bullets {
    list-style-type: disc;
    padding-left: 1.2rem;
    margin-bottom: 2rem;
}

.article-bullets li {
    margin-bottom: 1rem;
}

.article-bullets li a {
    color: #000;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.3;
}

/* --- Effetto Hover per le immagini (solo opacity) --- */
.hero-article img,
.article-thumb img,
.sponsored-figure img,
.ad-container img,
.featured-article img,
.sidebar-thumb img,
.gallery-card img,
.trending-thumb img {
    transition: opacity 0.3s ease;
    cursor: pointer;
    border-radius: 2px;
}

.hero-article img:hover,
.article-thumb img:hover,
.sponsored-figure img:hover,
.ad-container img:hover,
.featured-article img:hover,
.sidebar-thumb img:hover,
.gallery-card img:hover,
.trending-thumb img:hover {
    opacity: 0.8;
}

/* --- Effetto Hover per Titoli e Link (solo opacity) --- */
.hero-article h2,
.article-text h3,
.article-bullets li a,
.featured-article h3,
.sidebar-article h3,
.gallery-card h3,
.trending-item h3 {
    transition: opacity 0.2s ease;
    cursor: pointer;
}

.hero-article h2:hover,
.article-text h3:hover,
.article-bullets li a:hover,
.featured-article h3:hover,
.sidebar-article h3:hover,
.gallery-card h3:hover,
.trending-item h3:hover {
    opacity: 0.65;
}

/* =========================================
   SEZIONE SLIDER EVENTI
   ========================================= */
.events-slider-section {
    width: 100%;
    margin-bottom: 40px;
    /* Ottimizzazione semantica: sostituisce il div vuoto finale */
}

.events-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.events-header h2 {
    font-size: 1.4rem;
    font-weight: 400;
    color: #191919;
    margin-bottom: 0;
}

.events-links {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
}

.events-links a {
    color: #191919;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.events-links a span {
    font-size: 1.2rem;
}

/* -- Slider Contenitore e Frecce -- */
.slider-container {
    display: flex;
    align-items: center;
    position: relative;
    margin-top: 10px;
    margin-bottom: 0;
    gap: 10px;
}

.slider-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #191919;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
}

.slider-btn svg {
    width: 24px;
    height: 24px;
}

/* -- Track Eventi -- */
.events-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex-grow: 1;
}

.events-track::-webkit-scrollbar {
    display: none;
}

/* -- Cella Singola -- */
.event-card {
    flex: 0 0 calc((100% / 7) - 12px);
    min-width: 130px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    color: #3b3b3b;
    border: 1px solid transparent;
    cursor: pointer;
}

.event-card.highlight {
    background-color: #373535;
    color: #FFFFFF;
}

.thumbnail {
    position: relative;
    width: 100%;
    margin-bottom: 0;
}

.thumbnail img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.event-date-badge {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    color: #eee;
    font-size: 11px;
    padding: 0 0 0 2px;
    z-index: 1;
    display: block;
    line-height: 1.5;
}

.event-info {
    padding: 6px 2px 2px 2px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.event-name {
    font-size: 0.85rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 2px;
    color: inherit;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-location {
    font-size: 0.75rem;
    font-weight: 400;
    color: inherit;
    margin: 0;
}

/* -- Calendario Sotto lo Slider -- */
/* -- Calendario Sotto lo Slider -- */
.calendar-strip {
    display: flex;
    align-items: center;
    max-height: 50px;
    overflow: hidden;
    margin-top: 2px;
    gap: 10px;
    /* Rimosso border-top e padding-top */
}

.calendar-icon {
    width: 30px;
    display: flex;
    justify-content: center;
    flex-shrink: 0;
    color: #191919;
}

.dates-track {
    display: flex;
    flex-grow: 1;
    justify-content: space-between;
    align-items: center;
    overflow-x: auto;
    overflow-y: hidden;
    /* Blocca scorrimento verticale che causa le freccette scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.dates-track::-webkit-scrollbar {
    display: none;
}

.date-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    line-height: 1.1;
    color: #666;
}

.day-name {
    font-size: 0.75rem;
    text-transform: uppercase;
}

.day-number {
    font-size: 1.25rem;
}

/* =========================================
   SEZIONI CONTENUTO (Sports, Opinion, etc.)
   ========================================= */
.content-section {
    width: 100%;
    max-width: 1337px;
    margin: 0 auto 2.5rem auto;
    padding: 0 15px;
}

.section-header-bar {
    border-bottom: 3px solid #162b75;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
}

.section-header-bar h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #162b75;
    margin: 0;
}

/* -- Layout a 2 colonne (Featured + Sidebar) -- */
.two-col-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.featured-article {
    margin-bottom: 2rem;
}

.featured-article figure {
    margin-bottom: 0.8rem;
}

.featured-article img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.featured-article img:hover {
    opacity: 0.85;
}

.featured-article h3 {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.15;
    color: #000;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.featured-article h3:hover {
    opacity: 0.65;
}

/* -- Sidebar Articoli (colonna destra delle sezioni) -- */
.sidebar-col {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sidebar-article {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #e5e5e5;
}

.sidebar-article:first-child {
    padding-top: 0;
}

.sidebar-article:last-child {
    border-bottom: none;
}

.sidebar-thumb {
    flex: 0 0 120px;
    margin: 0;
}

.sidebar-thumb img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.sidebar-thumb img:hover {
    opacity: 0.85;
}

.sidebar-article h3 {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.25;
    color: #000;
    margin: 0;
    cursor: pointer;
    transition: color 0.2s ease;
}

.sidebar-article h3:hover {
    opacity: 0.65;
}

.sidebar-article.no-image {
    padding-left: 0;
}

.sidebar-article.no-image h3 {
    font-size: 0.95rem;
}

/* =========================================
   WIDGET ROW (Contest + Obituaries)
   ========================================= */
.widgets-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1337px;
    margin: 0 auto 2.5rem auto;
    padding: 0 15px;
}

.widget {
    background-color: #f5f5f5;
    padding: 1.5rem;
    border: 1px solid #e0e0e0;
}

.widget figure {
    margin: 0 0 1rem 0;
}

.widget figure img {
    width: 100%;
    height: auto;
    display: block;
}

.widget h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #000;
    margin-bottom: 1rem;
}

.widget-link {
    display: inline-block;
    color: #162b75;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border-bottom: 2px solid #162b75;
    padding-bottom: 2px;
    transition: opacity 0.2s ease;
}

.widget-link:hover {
    opacity: 0.7;
}

.widget-btn {
    display: inline-block;
    background-color: #162b75;
    color: #fff;
    padding: 0.6rem 1.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.widget-btn:hover {
    background-color: #0f1e54;
}

/* =========================================
   PHOTO GALLERIES (griglia)
   ========================================= */
.galleries-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.gallery-card figure {
    margin: 0 0 0.6rem 0;
    position: relative;
    overflow: hidden;
}

.gallery-card img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: opacity 0.3s ease, transform 0.4s ease;
    cursor: pointer;
}

.gallery-card:hover img {
    opacity: 0.8;
}

.gallery-card h3 {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
    color: #000;
    cursor: pointer;
    transition: color 0.2s ease;
}

.gallery-card h3:hover {
    opacity: 0.65;
}

/* =========================================
   TRENDING (lista numerata a 2 colonne)
   ========================================= */
.trending-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.trending-col {
    display: flex;
    flex-direction: column;
}

.trending-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #e5e5e5;
}

.trending-item:last-child {
    border-bottom: none;
}

.trending-number {
    font-size: 2rem;
    font-weight: 800;
    color: #162b75;
    line-height: 1;
    flex-shrink: 0;
    width: 30px;
    text-align: center;
}

.trending-content {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    flex: 1;
}

.trending-thumb {
    flex: 0 0 100px;
    margin: 0;
}

.trending-thumb img {
    width: 100px;
    height: 70px;
    object-fit: cover;
    display: block;
}

.trending-item h3 {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.25;
    color: #000;
    margin: 0;
    cursor: pointer;
    transition: color 0.2s ease;
}

.trending-item h3:hover {
    opacity: 0.65;
}

/* =========================================
   FOOTER COMPLETO
   ========================================= */
.site-footer {
    background-color: #ededed;
    border-top: 2px solid #afafaf;
    padding-top: 50px;
    padding-bottom: 20px;
    color: #191919;
    font-family: 'Nunito Sans', Arial, Helvetica, sans-serif !important;
    font-size: 1rem;
    line-height: 1.5;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.footer-main {
    max-width: 1337px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Stile per la scritta del logo nel footer */
.footer-brand {
    display: flex;
    align-items: center;
    margin-bottom: 2.5rem;
}

.footer-brand .logo-shaw {
    font-size: 2.2rem;
    font-weight: 900;
    color: #162b75;
    /* Colore istituzionale per il brand */
}

.footer-brand .logo-local {
    font-size: 2.2rem;
    font-weight: 400;
    color: #162b75;
}

/* Grid layout - Responsive First (3x2) */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-col h3 {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    color: #191919;
}

.footer-col .follow-title {
    margin-top: 1.5rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col ul li a {
    color: #444444;
    /* Contrasto accessibile su #ededed */
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-col ul li a:hover,
.footer-col ul li a:focus-visible {
    color: #162b75;
    text-decoration: underline;
}

/* Icone Social */
.social-icons {
    display: flex;
    gap: 16px;
    align-items: center;
}

.social-icons a {
    color: #191919;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}

.social-icons a:hover,
.social-icons a:focus-visible {
    color: #162b75;
}

/* Barra di copyright inferiore */
.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: #444444;
    margin: 0;
}

/* --- MEDIA QUERIES FOOTER --- */

@media screen and (min-width: 48rem) {
    body {
        font-size: 1.125rem;
    }
}

/* Desktop: 5 colonne allineate */
@media screen and (min-width: 1025px) {
    .footer-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* =========================================
   OBITUARIES CARDS
   ========================================= */
.obit-card {
    flex: 0 0 250px;
    width: 250px;
    height: 405px;
    scroll-snap-align: start;
    cursor: pointer;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    text-align: left;
    transition: box-shadow 0.2s ease;
}

.obit-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.obit-card .obit-img-wrapper {
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.obit-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.obit-card:hover img {
    transform: scale(1.03);
}

.obit-card .obit-content {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.obit-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: #191919;
    line-height: 1.2;
}

.obit-card p {
    font-size: 0.95rem;
    color: #4a4a4a;
    line-height: 1.35;
    margin-bottom: 12px;
    flex-grow: 1;
}

.obit-card .read-more {
    font-size: 1rem;
    color: #162b75;
    font-weight: 500;
}

/* =========================================
   MEDIA QUERIES GLOBALI
   ========================================= */
@media screen and (min-width: 768px) {
    .header-top {
        height: 66px;
    }

    .three-col-layout {
        grid-template-columns: auto 1fr auto;
        gap: 0;
        align-items: start;
    }

    .col-left {
        padding-right: 0;
        position: sticky;
        top: 90px;
        height: fit-content;
        width: 300px;
        margin-right: 20px;
    }

    .col-center {
        padding: 0 30px;
        border-left: 1px solid #d8d8d8;
        border-right: 1px solid #d8d8d8;
        line-height: 27px;
    }

    .col-right {
        padding-left: 0;
        position: sticky;
        top: 90px;
        height: fit-content;
        width: 300px;
        margin-left: 20px;
    }

    /* Sezioni a 2 colonne */
    .two-col-section {
        grid-template-columns: 1fr 380px;
        gap: 2rem;
    }

    /* Widgets affiancati */
    .widgets-row {
        grid-template-columns: 1fr 1fr;
    }

    /* Gallerie griglia */
    .galleries-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .gallery-card.large {
        grid-column: 1 / 2;
        grid-row: 1 / 3;
    }

    .gallery-card.large img {
        height: 100%;
        aspect-ratio: auto;
    }

    /* Trending a 2 colonne */
    .trending-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0 3rem;
    }

}

@media screen and (min-width: 768px) and (max-width: 1024px) {
    .three-col-layout {
        display: flex;
        flex-direction: column;
    }

    .three-col-layout .col-center {
        order: -1;
    }

    .col-left,
    .col-right {
        width: 100%;
        position: static;
        margin: 0;
    }

    .col-center {
        border: none;
        padding: 0;
    }

    .event-card {
        flex: 0 0 calc((100% / 4) - 10.5px);
    }

    .two-col-section {
        grid-template-columns: 1fr 300px;
    }

}

@media screen and (max-width: 767px) {
    body {
        padding-top: 0;
    }

    .site-header {
        position: relative;
    }

    .header-top {
        height: auto;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        padding: 0.8rem 1rem;
    }

    .header-center {
        grid-column: 1 / -1;
        grid-row: 2;
        flex-direction: column;
        gap: 0.5rem;
        justify-content: center;
        padding-top: 0.5rem;
    }

    .main-navigation {
        display: none;
    }

    .three-col-layout {
        display: flex;
        flex-direction: column;
    }

    .three-col-layout .col-center {
        order: -1;
    }

    .nav-link {
        font-size: 0.875rem;
    }

    .separator {
        display: none;
    }

    .list-article {
        flex-direction: column-reverse;
    }

    .article-thumb {
        width: 100%;
        max-width: 100%;
        margin-bottom: 1rem;
    }

    .hero-article h2 {
        font-size: 1.6rem;
    }

    .event-card {
        flex: 0 0 calc((100% / 2) - 7px);
    }

    .events-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .events-links {
        width: 100%;
        justify-content: space-between;
    }

    /* Sezioni nuove responsive */
    .featured-article h3 {
        font-size: 1.2rem;
    }

    .sidebar-article {
        gap: 10px;
    }

    .sidebar-thumb {
        flex: 0 0 90px;
    }

    .sidebar-thumb img {
        width: 90px;
        height: 60px;
    }

    .trending-number {
        font-size: 1.5rem;
        width: 24px;
    }

    .trending-thumb {
        flex: 0 0 80px;
    }

    .trending-thumb img {
        width: 80px;
        height: 56px;
    }

    .wheels-card {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .wheels-card .wheels-img {
        width: 100%;
    }
}

/* =========================================
   GENERIC RESPONSIVE OVERRIDES (max-width: 1024px)
   ========================================= */
@media screen and (max-width: 1024px) {

    /* 1. Top Stories 50/50 */
    .list-article {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 15px !important;
    }

    .article-text,
    .article-thumb {
        flex: 1 1 50% !important;
        max-width: calc(50% - 7.5px) !important;
        margin-bottom: 0 !important;
    }

    /* 2. Ad in colonna destra (same dimensions, not full width) */
    .ad-container img {
        max-width: 300px !important;
        width: 100% !important;
        margin: 0 auto !important;
    }

    /* 3. Everyday heroes image fullscreen */
    .widget-heroes-container {
        margin-left: -15px !important;
        margin-right: -15px !important;
        width: calc(100% + 30px) !important;
        max-width: none !important;
    }

    .widget-heroes-img {
        width: 100% !important;
        max-width: none !important;
        height: auto !important;
    }

    /* 4. Let's play illinois ad left aligned and same dimensions */
    .ad-container-sticky {
        text-align: left !important;
    }

    .ad-container-sticky img {
        margin: 0 !important;
    }

    /* 5. Reduce space below obituaries blue button */
    .obituaries-section {
        margin-bottom: 0 !important;
    }

    .obituaries-section+.spacer-40 {
        padding-top: 10px !important;
    }
}

/* Fixes per tre colonne in fondo */
.three-col-layout .content-section {
    padding: 0;
    margin: 0 0 2rem 0;
    max-width: none;
}

.three-col-layout .content-section:last-child {
    margin-bottom: 0;
}

/* =========================================
   VARIANTE 3 COLONNE UNITE (Senza Sticky)
   ========================================= */
@media screen and (min-width: 768px) {

    .three-col-layout.united .col-left,
    .three-col-layout.united .col-right {
        position: static;
        height: auto;
        margin-top: 0;
        top: auto;
    }

    .three-col-layout.united .col-left {
        margin-right: 20px;
    }

    .three-col-layout.united .col-right {
        margin-left: 20px;
    }
}

/* =========================================
   CLASSI PER SOSTITUZIONE STILI INLINE
   ========================================= */

/* -- Banner Pubblicitario Top -- */
.top-ad-banner {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.top-ad-banner img {
    display: block;
    width: 100%;
    height: auto;
}

/* -- Spaziatori -- */
.spacer-40 {
    padding-top: 40px;
}

/* -- Griglia inferiore (seconda e terza) -- */
.three-col-layout-lower {
    margin-top: 2.5rem;
    margin-bottom: 0;
}

/* -- Section title large -- */
.section-title-large {
    font-size: 1.95rem;
    margin-bottom: 1rem;
}

/* -- Articoli con immagine nelle colonne laterali -- */
.lower-article {
    margin-bottom: 2rem;
}

.lower-article-spaced {
    margin-bottom: 2.5rem;
}

.lower-article-figure {
    margin-bottom: 0.8rem;
}

.lower-article-img {
    width: 100%;
    height: auto;
    border-radius: 2px;
}

.lower-article-title {
    font-size: 1.05rem;
    line-height: 1.3;
    font-weight: 600;
    cursor: pointer;
}

/* -- Hero article nell'area inferiore -- */
.hero-article-lower {
    margin-bottom: 2rem;
}

.hero-article-lower-figure {
    margin-bottom: 1rem;
}

.hero-article-lower-figure-center {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.author-spaced {
    margin-bottom: 1.5rem;
}

.article-bullets-spaced {
    margin-bottom: 2.5rem;
    padding-left: 1.2rem;
}

/* -- Opinion Section (colonna destra) -- */
.opinion-section {
    margin-bottom: 2.5rem;
}

.opinion-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.opinion-bullets {
    padding-left: 1.2rem;
    margin-bottom: 0;
}

.opinion-bullet-item {
    margin-bottom: 1.5rem;
}

/* -- Widget Heroes / Contest -- */
.widget-heroes-container {
    margin-bottom: 1.5rem;
    text-align: center;
    padding: 0;
    background: transparent;
}

.widget-heroes-figure {
    margin-bottom: 1.5rem;
}

.widget-heroes-img {
    width: 100%;
}

.widget-heroes-text {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    color: #191919;
    text-align: left;
    padding-left: 1.2rem;
    font-weight: 600;
}

.widget-heroes-btn {
    display: inline-block;
    background-color: #162b75;
    color: #fff;
    padding: 0.8rem 1.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 4px;
}

/* -- Ad container sticky -- */
.ad-container-sticky {
    margin-top: 2.5rem;
    position: sticky;
    top: 90px;
}

.ad-container-sticky img {
    width: 100%;
    border-radius: 2px;
}

/* -- Obituaries Section -- */
.obituaries-section {
    margin-top: 0;
    margin-bottom: 2rem;
    max-width: 1337px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 15px;
}

.obituaries-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1140px;
    margin: 0 auto;
}

.obituaries-title {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 0.2rem;
    text-align: center;
}

.obits-slider {
    justify-content: center;
    width: 100%;
    margin-top: 0;
}

.obits-track {
    max-width: 1042px;
    width: 100%;
}

/* -- Obituaries "View All" button -- */
.obits-view-all-wrapper {
    width: 100%;
    max-width: 1042px;
    display: flex;
    justify-content: flex-end;
}

.obits-view-all-btn {
    margin-top: 1rem;
    margin-right: 0;
    width: 188px;
    height: 48px;
    background-color: #162b75;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
}

/* -- Wheels Section -- */
.wheels-section {
    margin-top: 3rem;
    margin-bottom: 3rem;
    width: 100%;
    max-width: 1284px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 15px;
}

.wheels-outer {
    border: 1px solid #dcdcdc;
    border-radius: 2px;
    background-color: #fff;
    position: relative;
    width: 1254px;
    max-width: 100%;
    box-sizing: border-box;
}

.wheels-header {
    padding: 15px 20px;
    border-bottom: 1px solid #dcdcdc;
    margin-bottom: 0;
}

.wheels-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #444;
    margin: 0;
}

.wheels-viewport {
    position: relative;
    overflow: hidden;
    padding: 0;
}

.wheels-nav-btn {
    position: absolute;
    top: 35%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #ccc;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    font-size: 1.2rem;
}

.wheels-prev {
    left: 10px;
}

.wheels-next {
    right: 10px;
}

.wheels-track {
    display: flex;
    justify-content: flex-start;
    flex-wrap: nowrap;
    margin: 0;
}

.wheels-card {
    flex: 0 0 313px;
    max-width: 313px;
    height: 308px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #dcdcdc;
    box-sizing: border-box;
}

.wheels-card .wheels-img {
    margin: 0;
    width: 313px;
    max-width: 100%;
    height: 182px;
}

.wheels-card .wheels-img img {
    width: 100%;
    height: 182px;
    display: block;
    object-fit: cover;
}

.wheels-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.wheels-content h3 {
    font-size: 1.05rem;
    line-height: 1.35;
    font-weight: 500;
    cursor: pointer;
    color: #2d73c3;
    margin: 0 0 8px 0;
}

.wheels-content p {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.45;
    margin: 0 0 12px 0;
}

.wheels-content .wheels-date {
    font-size: 0.75rem;
    color: #777;
    margin: auto 0 0 0;
}