/* ==========================================================================
   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) - Prende più spazio per slider e mosaico */
.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. NUOVO STILE: ZONA GRANDE (SLIDER FOTO ROTANTI)
   ========================================================================== */
.slider-container {
    width: 100%;
    height: 350px; /* Altezza della foto grande in evidenza */
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
    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; /* Transizione morbida di sfumatura */
    z-index: 1;
}

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

.slider-container .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ritaglia e adatta la foto senza deformarla */
    display: block;
}

/* Didascalia nera trasparente sopra la foto grande */
.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    padding: 15px 20px;
}

.slide-caption h2 {
    font-size: 22px;
    font-weight: bold;
    margin: 0;
    color: #ffffff;
}

/* Divisore tra la parte alta e il mosaico */
.section-divider-title {
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    margin: 20px 0 15px 0;
    padding-bottom: 5px;
    border-bottom: 2px solid #000000;
}

/* ==========================================================================
   5. NUOVO STILE: MOSAICO FISSO (GRIGLIA A 4 COLONNE)
   ========================================================================== */
.mosaic-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Crea esattamente 4 colonne uguali */
    gap: 15px; /* Spazio millimetrico tra i riquadri */
    margin-bottom: 40px;
}

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

.mosaic-img-wrapper {
    width: 100%;
    height: 100px; /* Altezza fissa per i quadratini del mosaico */
    overflow: hidden;
    margin-bottom: 8px;
    border: 1px solid #e0e0e0;
}

.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); /* Piccolo effetto movimento al passaggio mouse */
}

.mosaic-item h4 {
    font-size: 12px;
    line-height: 1.2;
    font-weight: bold;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Taglia il testo dopo 2 righe se troppo lungo */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   6. 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;
}