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

body { 
    background-color: #05070a; 
    color: #fff; 
    font-family: 'Georgia', serif; 
    overflow-x: hidden;
}

.main-header {
    width: 100%;
    padding: 60px 20px 20px;
    text-align: center;
}

.site-title h1 {
    text-align: center !important;
    color: #d4af37;
    text-transform: uppercase;
    letter-spacing: 5px;
    font-size: 2.2em;
    margin-bottom: 25px;
}

.language-selector ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.lang-link {
    text-decoration: none;
    padding: 10px 20px;
    background-color: #1a1c1f;
    color: #888;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
    border: 1px solid #333;
}

.lang-link:hover { background-color: #2a2d32; color: #fff; }

.lang-link.active {
    background-color: #1a1c1f;
    color: #d4af37;
    border: 1px solid #d4af37;
}

/* --- NAVIGAZIONE PRINCIPALE (PRIMA RIGA) --- */
.main-nav {
    width: 100%;
    background-color: #0a0c10; /* Fondo scuro distintivo */
    border-top: 1px solid #1a1c1f;
    border-bottom: 1px solid #333; /* Bordo inferiore più chiaro per staccare */
    padding: 15px 0;
}

.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 40px;
}

.main-nav a {
    text-decoration: none;
    color: #888; /* Inattivo: Grigio */
    font-family: 'Cinzel', serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1em;
    transition: 0.3s;
    padding: 5px 10px;
}

/* STATO ATTIVO NEL MENU PRINCIPALE */
.main-nav a.active {
    color: #fff; /* Attivo: Bianco */
    border-bottom: 2px solid #d4af37; /* Sottolineatura oro */
}

.main-nav a:hover {
    color: #d4af37;
}

/* --- HERO SECTION (Solo centratura Orizzontale) --- */
.hero-00m {
    width: 100%;
    display: flex;
    justify-content: center; /* Centra orizzontalmente */
    align-items: flex-start; /* Allinea in alto (verticalmente) */
    padding: 60px 20px;      /* Spazio superiore tra menù e Unus */
    min-height: auto;        /* Altezza dinamica in base al contenuto */
}

.hero-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    width: 100%;
    gap: 60px;
}

.hero-image { flex: 1; text-align: right; }
.hero-image img { max-width: 500px; width: 100%; height: auto; }

.hero-text { flex: 1; text-align: left; }

.agent-label-style {
    color: #d4af37;
    font-size: 3em; 
    font-style: italic;
    font-weight: bold;
    text-transform: uppercase;
    line-height: 1;
}

h2 { font-size: 3em; line-height: 1.1; margin-bottom: 15px; }

.license-style {
    font-size: 1.6em;
    color: #d4af37;
    font-style: italic;
    margin-bottom: 20px;
}

.placeholder-section {
    width: 100%;
    padding: 100px 20px;
    text-align: center;
}

.placeholder-section h2 {
    font-family: 'Cinzel', serif; /* O il font che preferisci */
    font-size: 2.5em;
    color: #d4af37;
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* SOTTOMENU DI PAGINA */
.sub-nav {
    width: 100%;
    margin-bottom: 50px;
    display: flex;
    justify-content: center;
}

.sub-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    background: #1a1c1f; /* Sfondo leggermente più chiaro */
    padding: 10px 30px;
    border-radius: 50px; /* Forma a pillola */
    border: 1px solid #d4af37;
}

.sub-nav a {
    text-decoration: none;
    color: #fff;
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

.sub-nav a:hover {
    color: #d4af37;
}

/* GRIGLIA LIBRI */
.book-category {
    margin-bottom: 80px;
}

.book-category h3 {
    font-family: 'Cinzel', serif;
    color: #d4af37;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.lang-note {
    font-size: 0.9em;
    font-style: italic;
    color: #888;
    margin-bottom: 20px;
}

.lang-note.warning {
    color: #a5a5a5;
    padding-left: 10px;
}

.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.book-card {
    background: #0a0c10;
    padding: 20px;
    border: 1px solid #1a1c1f;
    transition: 0.3s;
}

.book-card:hover {
    border-color: #d4af37;
    transform: translateY(-5px);
}

.description-style { 
    color: #ccc; 
    max-width: 500px; 
    font-size: 0.9em; 
    text-align: justify; /* Allineamento giustificato */
    line-height: 1.5;    /* Opzionale: migliora la leggibilità generale */
}

/* Trucco per dare spazio quando c'è un <br> */
.description-style br {
    display: block;
    content: "";
    margin-top: 10px; /* Regola questo valore per aumentare o diminuire lo spazio */
}
