/* assets/css/editoriali.css - TEMA 2026 */

/* --- 1. FONTS & VARIABILI --- */
@font-face {
    font-family: 'DrukWide';
    src: url('/assets/doc/DrukTextWide-MediumItalic-Trial.otf') format('opentype');
    font-weight: bold;
    font-style: italic; /* Aggiornato al nuovo corsivo */
}

@font-face {
    font-family: 'HelveticaBold';
    src: url('/assets/doc/HelveticaBold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

:root {
    --rosa-neon: #ff19ff;
    --viola: #790cfd;
    --bianco: #ffffff;
    --vinaccia-bg: rgba(18, 0, 40, 0.85); /* Vinaccia scuro per la lettura */
}

body {
    /* Sfondo base di sicurezza */
    background-color: #120028 !important; 
    color: #e0e0e0;
    font-family: 'HelveticaBold', sans-serif;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 0;
}

/* FIX SFONDO FISSO 2026 (Immagine + Overlay Vinaccia) */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background: linear-gradient(rgba(18, 0, 40, 0.5), rgba(18, 0, 40, 0.5)), url('/assets/imm/gradiente26.jpg') center/cover no-repeat;
    z-index: -1;
    transform: translateZ(0);
    will-change: transform;
}

.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: 268px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    border-bottom: 1px solid var(--rosa-neon);
}

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

/* Gradiente per sfumare l'immagine verso il Vinaccia */
.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(18,0,40,0.95) 10%, rgba(18,0,40,0.2) 100%);
    z-index: 2;
}

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

.article-meta {
    font-size: 0.6rem;
    color: var(--rosa-neon);
    margin-bottom: 7px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 0.67px;
}

.article-title {
    font-family: 'DrukWide', sans-serif;
    font-style: italic;
    font-size: 1.68rem;
    color: white;
    margin: 7px 0;
    line-height: 1.1;
    text-transform: uppercase;
    text-shadow: 0 3px 7px rgba(18,0,40,0.5);
}

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

/* --- 3. CORPO DELL'ARTICOLO --- */
.article-body-wrapper {
    /* Patina vinaccia semitrasparente che facilita la lettura dello sfondo */
    background-color: var(--vinaccia-bg); 
    backdrop-filter: blur(3px); 
    -webkit-backdrop-filter: blur(3px);
    
    padding: 34px 13px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

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

/* Regole per il CORSIVO (Italic) */
.article-body em,
.article-body i {
    font-style: italic;
    color: #ffffff; /* Bianco più luminoso per farlo risaltare */
    letter-spacing: 0.3px;
}

/* Regola per blocchi di citazione */
.article-body blockquote {
    font-style: italic;
    font-size: 0.77rem;
    color: #cccccc;
    margin: 20px 0;
    padding: 10px 13px;
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--rosa-neon);
    border-radius: 0 5px 5px 0;
}

.article-body h3 {
    color: var(--rosa-neon);
    font-family: 'DrukWide', sans-serif;
    font-style: italic;
    margin-top: 27px;
    margin-bottom: 10px;
    text-transform: uppercase;
    border-left: 3px solid var(--rosa-neon);
    padding-left: 10px;
}

.article-body strong {
    color: white;
}

.article-body ul {
    margin-bottom: 13px;
    padding-left: 13px;
}

.article-body li {
    margin-bottom: 7px;
}

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

.back-btn {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid var(--rosa-neon);
    color: white;
    text-decoration: none;
    font-family: 'DrukWide', sans-serif;
    font-style: italic;
    font-size: 0.54rem;
    border-radius: 3px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

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

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

/* --- RESPONSIVE --- */
@media (max-width: 515px) {
    .article-hero { height: 40vh; }
    .article-title { font-size: 1rem; }
    .article-subtitle { font-size: 0.67rem; display: none; }
    .article-body { font-size: 0.67rem; padding: 0 7px; }
    .article-body p { text-align: left; } /* Niente giustificato su mobile */
    .article-body-wrapper { background-color: rgba(18, 0, 40, 0.95); /* Vinaccia più scuro su mobile per leggibilità perfetta */ }
}