/* ==========================================================================
   1. RESET GENERALE
   ========================================================================== */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    background-color: #ffffff !important;
    font-family: "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
    color: #000000;
    line-height: 1.4;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
    background-color: #ffffff !important;
}

/* ==========================================================================
   2. TESTATA (PULITA CON LOGO E PAYOFF)
   ========================================================================== */
.site-header {
    background-color: #ffffff !important;
    padding: 40px 0 20px 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 35px;
}

.header-logo-block {
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-graphic-logo {
    height: 130px; 
    width: auto;
    display: block;
}

.header-main-block {
    flex-grow: 1;
}

.header-main-block .big-payoff {
    font-size: 32px; 
    font-weight: 300;
    color: #000000; 
    font-style: italic;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

/* MENU DI NAVIGAZIONE ORIZZONTALE */
.main-navigation {
    border-top: 1px solid #000000;
    border-bottom: 2px solid #000000;
    margin-bottom: 30px;
    background-color: #ffffff !important;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 12px 0;
}

.main-navigation ul li a {
    text-decoration: none;
    color: #000000;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
}

.main-navigation ul li a:hover, 
.main-navigation ul li a.active {
    color: #ff0000;
}

/* ==========================================================================
   3. STRUTTURA A 3 COLONNE (FLEXBOX GLOBALE)
   ========================================================================== */
.main-wrapper {
    display: flex;
    justify-content: space-between;
    background-color: #ffffff !important;
}

/* 1ª Colonna: Ospiti sul tema (Sinistra) */
.col-center {
    width: 22%;
    padding-right: 15px;
}

/* 2ª Colonna: IL CUORE (Centro) */
.col-left {
    width: 54%;
    padding: 0 15px;
    background-color: #ffffff !important;
}

/* 3ª Colonna: Video e Widget (Destra) */
.col-right {
    width: 24%;
    padding-left: 15px;
}

.widget-title {
    font-size: 15px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid #000000;
}

/* ==========================================================================
   4. STILE: SLIDER FOTO HOME PAGE (INCREMENTATO DEL 30%)
   ========================================================================== */
.slider-container {
    width: 100%;
    height: 550px; /* Aumentato a 550px per rispettare il moltiplicatore 1.3 */
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
    background-color: #f5f5f5; 
    border: 1px solid #e0e0e0;
}

.slider-container .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.slider-container .slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-img-wrapper {
    width: 100%;
    height: 100%;
    padding: 15px; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-container .slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;  
    height: auto; 
    display: block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2); 
}

/* ==========================================================================
   5. MOSAICO FISSO (GRIGLIA A 4 COLONNE)
   ========================================================================== */
.mosaic-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 40px;
}

.mosaic-item a {
    text-decoration: none;
    color: #000000;
    display: block;
}

.mosaic-img-wrapper {
    width: 100%;
    height: 120px; 
    overflow: hidden;
    margin-bottom: 8px;
    border: 1px solid #e0e0e0;
    background-color: #f9f9f9;
}

.mosaic-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.3s ease;
}

.mosaic-item:hover .mosaic-img-wrapper img {
    transform: scale(1.05);
}

.mosaic-item h4 {
    font-size: 12px;
    line-height: 1.2;
    font-weight: bold;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   6. STILE NUOVO: PAGINA INTERNA DELL'ARTICOLO
   ========================================================================== */
.single-article {
    background-color: #ffffff !important;
    padding-bottom: 30px;
}

.article-main-title {
    font-size: 32px;
    font-weight: bold;
    color: #000000;
    line-height: 1.2;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.article-meta-data {
    font-size: 13px;
    color: #666666;
    font-style: italic;
    margin-bottom: 25px;
    border-bottom: 1px dashed #e0e0e0;
    padding-bottom: 10px;
}

/* Contenitore interno della foto dell'articolo: Adatto a foto verticali */
.article-internal-img-wrapper {
    width: 100%;
    max-height: 500px; /* Limite per non far occupare troppo spazio in altezza */
    background-color: #fdfdfd;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
    padding: 10px;
    border: 1px solid #eeeeee;
}

.article-internal-img-wrapper img {
    max-width: 100%;
    max-height: 480px;
    width: auto;
    height: auto;
    display: block;
}

/* Testo dell'articolo leggibile e giornalistico */
.article-body-content {
    font-size: 16px;
    line-height: 1.6;
    color: #222222;
    margin-bottom: 35px;
    text-align: justify; /* Testo giustificato tipico dei giornali */
}

/* Zona del Video all'interno dell'articolo */
.article-internal-video-wrapper {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #000000;
    margin-bottom: 40px;
}

.video-section-title {
    font-size: 15px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 15px;
}

/* Link di ritorno */
.back-to-home {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.back-to-home a {
    text-decoration: none;
    color: #ff0000;
    font-weight: bold;
    font-size: 14px;
}

.back-to-home a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   7. PIÈ DI PAGINA (FOOTER)
   ========================================================================== */
.site-footer {
    background-color: #ffffff !important;
    border-top: 1px solid #000000;
    margin-top: 60px;
    padding: 25px 0;
    font-size: 13px;
    color: #444444;
}