/*
Theme Name: CinemaDark Modern
Author: Partner di Programmazione
Description: Tema Dark per alcinema.it/news
Version: 1.1
*/

/* 1. VARIABILI E RESET */
:root {
    --bg-color: #ffffff;
    --card-bg: #f4f4f4;
    --text-color: #1a1a1a;
    --accent-color: #e50914; /* Rosso Cinema */
    --header-height: 80px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 2. HEADER E NAVIGAZIONE (FIX MENU) */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    padding: 20px 0;
    transition: all 0.4s ease;
    background: transparent;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.97);
    padding: 12px 0;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e0e0e0;
}

.site-header.scrolled .logo a {
    color: #1a1a1a;
}

.site-header.scrolled .nav-menu a {
    color: #1a1a1a;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    color: #fff;
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 1px;
}

/* FIX MENU CORROTTO */
.nav-menu {
    list-style: none; /* Rimuove i pallini */
    display: flex;    /* Allinea in orizzontale */
    gap: 25px;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--accent-color);
}

/* 3. HERO SLIDER (FIX SFONDO REPLICATO) */
.hero-slider-container {
    width: 100%;
    height: 85vh;
    min-height: 500px;
    background: transparent;
    overflow: hidden;
    position: relative;
}

.hero-swiper {
    height: 100%;
}

.hero-slide {
    width: 100%;
    height: 100%;
    background-size: cover;      /* Copre intera area */
    background-position: center; /* Centra l'attore */
    background-repeat: no-repeat;/* EVITA REPLICA */
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.hero-content {
    max-width: 700px;
    padding-top: 100px; /* Spazio per l'header fisso */
    padding-bottom: 60px;
}

.hero-excerpt {
    color: #e0e0e0;
    text-shadow: 1px 1px 8px rgba(0,0,0,0.9);
    font-size: 1rem;
    line-height: 1.6;
}

.hero-title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: #fff;
    text-transform: uppercase;
    margin: 15px 0;
    line-height: 1.1;
    text-shadow: 2px 2px 20px rgba(0,0,0,0.8);
}

.badge {
    background: var(--accent-color);
    color: #fff;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 2px;
    text-transform: uppercase;
}

.btn-cinema {
    display: inline-block;
    background: var(--accent-color);
    color: #fff;
    padding: 14px 28px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    margin-top: 25px;
    transition: transform 0.2s;
}

.btn-cinema:hover {
    transform: translateY(-3px);
    background: #ff0b16;
}

/* 4. GRIGLIA NEWS */
.section-header {
    margin: 60px 0 30px;
}

.section-title {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    text-transform: uppercase;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding-bottom: 80px;
    min-height: 400px; /* Assicura che ci sia spazio per le card */
}

.news-card {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid #e0e0e0;
}

.news-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color); /* Il bordo diventa rosso al passaggio del mouse */
    box-shadow: 0 15px 35px rgba(229, 9, 20, 0.2); /* Ombra rossa soffusa */
}

.post-thumbnail-wrapper img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
}

.card-title {
    color: #1a1a1a;
    font-size: 1.2rem;
    margin: 10px 0;
    text-decoration: none;
}

.card-link {
    text-decoration: none;
}

/* 5. SWIPER DOTS COLOR */
.swiper-pagination-bullet {
    background: #fff !important;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    background: var(--accent-color) !important;
    opacity: 1;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .nav-menu { display: none; } /* Per ora nascondiamo su mobile per semplicità */
    .hero-title { font-size: 2.2rem; }
}

/* --- SINGLE POST STYLE --- */

/* Hero dell'articolo */
.entry-header-hero {
    height: 60vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding-bottom: 50px;
    margin-bottom: 40px;
}

.hero-article-content .entry-title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: #fff;
    text-transform: uppercase;
    margin-top: 10px;
}

.post-date {
    font-size: 0.9rem;
    color: #666;
    margin-left: 10px;
}

/* Corpo dell'articolo */
.article-body-wrapper {
    max-width: 800px; /* Più stretto per facilitare la lettura */
    margin: 0 auto;
}

.entry-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #444;
}

.entry-content p {
    margin-bottom: 25px;
}

.entry-content h2, .entry-content h3 {
    color: #1a1a1a;
    font-family: 'Oswald', sans-serif;
    margin: 40px 0 20px;
    text-transform: uppercase;
}

/* Immagini dentro l'articolo */
.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.post-tags {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    font-size: 0.9rem;
    color: var(--accent-color);
}