/* assets/css/editoriali.css */

/* --- 1. FONTS & RESET --- */
@font-face {
    font-family: 'DrukWide';
    src: url('../../doc/DrukWideBold.otf') format('opentype');
    font-weight: bold;
}
@font-face {
    font-family: 'HelveticaBold';
    src: url('../../doc/HelveticaBold.ttf') format('truetype');
    font-weight: bold;
}

body {
    /* Sfondo scuro per lettura comoda */
    background-color: #0a0a0a;
    color: #e0e0e0;
    font-family: 'HelveticaBold', sans-serif;
}

.editorial-container {
    width: 100%;
    min-height: 80vh; /* Spinge giù il footer */
    display: flex;
    flex-direction: column;
}

/* --- 2. HERO SECTION (Immagine in alto) --- */
.article-hero {
    position: relative;
    width: 100%;
    height: 50vh; /* Occupa metà schermo in altezza */
    min-height: 400px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    border-bottom: 2px solid var(--rosa-elettrico, #ff19ff);
}

.hero-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 10%, rgba(0,0,0,0.2) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 90%;
    max-width: 900px;
    padding-bottom: 40px;
    text-align: center;
}

.article-meta {
    font-size: 0.9rem;
    color: var(--rosa-elettrico, #ff19ff);
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
}

.article-title {
    font-family: 'DrukWide', sans-serif;
    font-size: 2.5rem;
    color: white;
    margin: 10px 0;
    line-height: 1.1;
    text-transform: uppercase;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.article-subtitle {
    font-family: 'HelveticaBold', sans-serif;
    font-size: 1.2rem;
    color: #cccccc;
    font-weight: normal;
    margin-top: 10px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --- 3. CORPO DELL'ARTICOLO --- */
.article-body-wrapper {
    background-color: #0a0a0a; /* Sfondo nero profondo */
    padding: 50px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.article-body {
    max-width: 800px; /* Colonna di lettura ottimale */
    width: 100%;
    font-size: 1.1rem;
    line-height: 1.8; /* Migliora leggibilità */
    color: #e0e0e0;
}

/* Formattazione testo interno */
.article-body p {
    margin-bottom: 20px;
    text-align: justify;
}

.article-body h3 {
    color: var(--rosa-elettrico, #ff19ff);
    font-family: 'DrukWide', sans-serif;
    margin-top: 40px;
    margin-bottom: 15px;
    text-transform: uppercase;
    border-left: 4px solid var(--rosa-elettrico, #ff19ff);
    padding-left: 15px;
}

.article-body strong {
    color: white;
}

.article-body ul {
    margin-bottom: 20px;
    padding-left: 20px;
}
.article-body li {
    margin-bottom: 10px;
}

/* --- 4. FOOTER E BOTTONI --- */
.article-footer {
    margin-top: 50px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    width: 100%;
    max-width: 800px;
    text-align: center;
}

.back-btn {
    display: inline-block;
    padding: 12px 30px;
    border: 1px solid var(--rosa-elettrico, #ff19ff);
    color: white;
    text-decoration: none;
    font-family: 'DrukWide', sans-serif;
    font-size: 0.8rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.back-btn:hover {
    background-color: var(--rosa-elettrico, #ff19ff);
    color: white;
    box-shadow: 0 0 15px rgba(255, 25, 255, 0.4);
}

/* --- 5. ERRORE --- */
.error-container {
    text-align: center;
    padding: 100px 20px;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .article-hero { height: 40vh; }
    .article-title { font-size: 1.5rem; }
    .article-subtitle { font-size: 1rem; display: none; /* Nascondi sottotitolo su mobile se lungo */ }
    .article-body { font-size: 1rem; padding: 0 10px; }
    .article-body p { text-align: left; } /* Niente giustificato su mobile */
}