/* Reset e Sfondo (Copre tutto) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000 !important;
    color: #fff;
    /* Passiamo a Cormorant per il corpo del testo per un look più fine */
    font-family: 'Cormorant Garamond', serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.identity-page {
    width: 100%;
    /* Luce zenitale più profonda */
    background: radial-gradient(circle at 50% -10%, #151515 0%, #000 60%); 
    padding: 100px 10%;
    position: relative;
}

.id-marker {
    width: 60px;
    height: 1px;
    background: linear-gradient(to right, #D4AF37, transparent);
    margin-bottom: 30px;
}
/* Titolo Sezione Verticale - Ora in Cormorant */
.section-title {
    position: fixed;
    left: 40px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    font-family: 'Cormorant Garamond', serif;
    text-transform: uppercase;
    letter-spacing: 18px;
    font-size: 0.6rem;
    color: rgba(212, 175, 55, 0.3);
    pointer-events: none;
}

/* Numerazione Sezioni - Raffinata */
.id-number {
    font-family: 'Cormorant Garamond', serif;
    color: #D4AF37;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 6px;
    display: block;
    margin-bottom: 25px;
    opacity: 0.8;
}

.hero-content {
    max-width: 900px;
    margin-left: 5%; /* Lascia spazio al titolo verticale */
}

/* Hero Section */
.id-hero {
    height: 100vh; /* Più respiro, occupa tutto lo schermo */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-left: 15%; /* Sposta il contenuto per non toccare il titolo verticale */
    border-bottom: 1px solid rgba(212, 175, 55, 0.05);
    position: relative;
}

.id-main-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(4rem, 10vw, 8rem);
    font-style: italic;
    font-weight: 400;
    line-height: 0.85;
    color: #fff;
    margin-bottom: 40px;
    letter-spacing: -3px;
    /* Un'ombra leggerissima che rende il testo "etereo" */
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.id-text-large {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 300;
    line-height: 1.5;
    max-width: 600px;
    color: rgba(255, 255, 255, 0.6); /* Grigio seta */
    border-left: 1px solid #D4AF37; /* Una linea oro sottilissima di fianco al testo */
    padding-left: 30px;
    margin-left: 5px;
}

/* Split Section */
.id-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 120px;
    padding: 180px 0;
    align-items: center;
}

.id-sub-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.2rem;
    font-weight: 400;
    margin-bottom: 35px;
    color: #D4AF37;
    letter-spacing: -1px;
}

/* --- CATEGORIZZAZIONE DOGMA (Corretto e Pulito) --- */

.dogma-grid {
    display: flex;
    flex-direction: column;
    gap: 80px; 
    max-width: 1100px;
    margin: 100px auto;
    padding: 0 5%;
}

.dogma-item {
    position: relative;
    display: grid;
    /* Riduciamo a 2 colonne reali, la label sarà esterna (absolute) */
    grid-template-columns: 1fr 2fr; 
    align-items: baseline;
    gap: 60px;
    padding: 40px 20px 40px 60px; /* Aumentato padding a sinistra per la label ruotata */
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    transition: all 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}

/* La Label ruotata: posizionata sul margine sinistro del dogma-item */
.dogma-label {
    font-family: 'Cinzel', serif;
    font-size: 0.55rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(212, 175, 55, 0.5);
    
    /* Posizionamento assoluto per non rompere la griglia titolo-paragrafo */
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: center center;
    white-space: nowrap;
}

/* Differenziazione ARTISTICA */
.art-dogma {
    /* Linea superiore sfumata: non tocca i bordi, sembra fluttuare */
    border-top: 1px solid transparent;
    border-image: linear-gradient(to right, 
        rgba(212, 175, 55, 0) 0%, 
        rgba(212, 175, 55, 0.4) 15%, 
        rgba(212, 175, 55, 0.4) 85%, 
        rgba(212, 175, 55, 0) 100%) 1;
    
    padding-top: 35px;
    position: relative;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.art-dogma h4 {
    font-family: 'Playfair Display', serif;
    color: #fff;
    font-weight: 500; /* Leggermente più sottile per eleganza */
    font-size: 2rem;
    letter-spacing: -0.5px;
    text-transform: none; /* Manteniamo il maiuscolo solo se necessario, il minuscolo è più moderno */
    
    /* Leggero bagliore soffuso sul testo */
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
    transition: all 0.5s ease;
}

.art-dogma:hover {
    background: linear-gradient(to bottom, 
        rgba(212, 175, 55, 0.03) 0%, 
        transparent 100%);
    transform: translateY(-5px); /* Leggera elevazione */
}

.art-dogma:hover h4 {
    color: #D4AF37; /* Il titolo si accende in oro al passaggio */
    letter-spacing: 0.5px; /* Si espande leggermente */
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
}

/* Decorazione laterale: un piccolo punto di luce dorata */
.art-dogma::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 15%;
    width: 5px;
    height: 5px;
    background: #D4AF37;
    border-radius: 50%;
    box-shadow: 0 0 15px #D4AF37;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.art-dogma:hover::before {
    opacity: 1;
}

/* Differenziazione LETTERARIA */
/* --- POET DOGMA PREMIUM EVOLUTION --- */

.poet-dogma {
    /* Linea superiore sfumata: identica alla parte artistica */
    border-top: 1px solid transparent;
    border-image: linear-gradient(to right, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.15) 15%, 
        rgba(255, 255, 255, 0.15) 85%, 
        rgba(255, 255, 255, 0) 100%) 1;
    
    padding-top: 35px;
    position: relative;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.poet-dogma h4 {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 400;
    color: #D4AF37; /* L'oro costante della parola scritta */
    font-size: 2.2rem; /* Un filo più grande per la massima eleganza */
    letter-spacing: -0.2px;
    
    /* Bagliore dorato soffuso invece che bianco */
    text-shadow: 0 0 25px rgba(212, 175, 55, 0.1);
    transition: all 0.5s ease;
}

/* Effetto Hover specifico per l'identità letteraria */
.poet-dogma:hover {
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0.02) 0%, 
        transparent 100%);
    transform: translateY(-5px); /* Coerenza con la parte artistica */
}

.poet-dogma:hover h4 {
    color: #fff; /* Inversione: al passaggio il titolo diventa bianco puro */
    text-shadow: 0 0 35px rgba(255, 255, 255, 0.3);
}

/* Decorazione laterale: punto di luce bianca (invece che oro) */
.poet-dogma::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 15%;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
    opacity: 0;
    transition: opacity 0.6s ease;
}

.poet-dogma:hover::before {
    opacity: 1;
}

/* Testi e Hover */
.dogma-item h4 {
    font-size: 1.8rem;
    letter-spacing: -0.5px;
    margin: 0;
}

.dogma-item p {
    font-family: 'EB Garamond', serif;
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
    text-align: justify;
    transition: color 0.4s ease;
}

.dogma-item:hover {
    background: rgba(212, 175, 55, 0.03);
    transform: scale(1.02);
    padding-left: 75px; /* Slittamento per dinamismo */
}

.dogma-item:hover p {
    color: rgba(255, 255, 255, 0.9);
}

/* Linea dorata animata */
.dogma-item::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0%;
    height: 1px;
    background: #D4AF37;
    transition: width 0.8s ease;
}

.dogma-item:hover::after {
    width: 100%;
}

/* Sezione Citazione aggiuntiva per profondità */
.id-quote {
    padding: 150px 0;
    text-align: center;
}

.id-quote blockquote {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-style: italic;
    color: #fff;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.2;
}

.id-genesis-long {
    padding: 150px 0;
    background: #000;
}

.genesis-container {
    max-width: 800px; /* Larghezza ottimale per la lettura di testi lunghi */
    margin: 0 auto;
    padding: 0 40px;
}

.genesis-content {
    margin-top: 60px;
}

.genesis-p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 35px;
    font-weight: 300;
    text-align: justify; /* Look da libro stampato */
}

/* Primo paragrafo più evidente */
.genesis-p.highlight {
    font-size: 1.6rem;
    color: #fff;
    line-height: 1.5;
    font-style: italic;
    border-left: 2px solid #D4AF37;
    padding-left: 30px;
}

/* Box di enfasi per il passaggio sul disegno */
.genesis-focus-box {
    margin: 60px -40px; /* Esce leggermente dai margini per spezzare il ritmo */
    padding: 40px;
    background: rgba(212, 175, 55, 0.03);
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.genesis-focus-box p {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.5rem;
    text-align: center;
    color: #D4AF37;
    margin: 0;
}

/* Paragrafo finale: più scuro, come un pensiero che sfuma */
.genesis-p.final {
    color: #D4AF37;
    font-weight: 400;
    margin-top: 80px;
    text-align: center;
    font-size: 1.4rem;
}

/* --- 7. RESPONSIVE DESIGN PER IDENTITY PAGE --- */

/* Tablet e Laptop (sotto i 1200px) */
@media (max-width: 1200px) {
    .identity-page {
        padding: 80px 5%;
    }
    .id-split {
        gap: 60px; /* Riduciamo lo spazio tra le colonne */
    }
    .id-main-title {
        font-size: clamp(3rem, 8vw, 6rem);
    }
}

/* Tablet Verticale (sotto i 992px) */
@media (max-width: 992px) {
    .section-title {
        display: none; /* Il titolo verticale ruba troppo spazio su schermi medi */
    }

    .id-hero {
        padding-left: 0;
        align-items: center;
        text-align: center;
    }

    .id-text-large {
        margin: 0 auto;
        border-left: none;
        border-top: 1px solid #D4AF37;
        padding: 20px 0 0 0;
        text-align: center;
    }

    .id-split {
        grid-template-columns: 1fr; /* Una colonna sola */
        padding: 100px 0;
        text-align: center;
    }

    .gold-orb {
        width: 250px;
        height: 250px;
        margin: 40px auto;
    }

    .dogma-grid {
        grid-template-columns: 1fr; /* I dogmi si incolonnano */
        gap: 30px;
    }
}

/* Mobile (sotto i 768px) */
@media (max-width: 768px) {
    .id-main-title {
        font-size: 3rem;
        letter-spacing: -1px;
        line-height: 1;
    }

    .id-sub-title {
        font-size: 2.2rem;
    }

    .id-quote blockquote {
        font-size: 1.8rem;
        padding: 0 10px;
    }

    .genesis-container {
        padding: 0 20px;
    }

    .genesis-p {
        font-size: 1.15rem;
        text-align: left; /* Il giustificato su mobile è rischioso */
    }

    .genesis-p.highlight {
        font-size: 1.3rem;
        padding-left: 20px;
    }

    .genesis-focus-box {
        margin: 40px 0; /* Rientra nei margini */
        padding: 30px 20px;
    }

    .genesis-focus-box p {
        font-size: 1.2rem;
    }

    .genesis-p.final {
        font-size: 1.2rem;
    }
}

/* Smartphone Piccoli (sotto i 480px) */
@media (max-width: 480px) {
    .id-hero {
        height: auto;
        padding: 120px 0;
    }

    .id-main-title {
        font-size: 2.5rem;
    }

    .dogma-item {
        padding: 30px 20px;
    }

    .id-marker {
        margin: 0 auto 30px auto; /* Centra la linea oro */
    }
}

/* Responsive: su mobile tornano incolonnati */
@media (max-width: 900px) {
    .dogma-item {
        grid-template-columns: 1fr;
        gap: 15px;
        padding-left: 30px;
    }
    .dogma-label {
        position: relative;
        transform: none;
        left: 0;
        top: 0;
        margin-bottom: 10px;
    }
}