/* Stili specifici per la pagina Project Exocortex */

/* Reset e Impostazioni di Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #020419;
    background-image: none;
    background-attachment: fixed;
    color: #dadadc; /* Iron #dadadc: carattere */
    font-family: "Aptos", "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;
    line-height: 1.6;
    font-size: 16px;
}

/* Contenitore Centrale */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

@media (min-width: 768px) {
    .container {
        padding: 2rem;
    }
}

/* Tipografia */
h1, h2, h3 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

h1 {
    font-size: 2rem;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 1.8rem;
    margin-top: 3rem;
    border-bottom: 1px solid #959aa4; /* Manatee #959aa4 */
    padding-bottom: 10px;
}

h3 {
    font-size: 1.3rem;
    color: #4ade80; /* Accento verde "Terminal" */
    margin-top: 1.5rem;
}

header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.header-copy {
    flex: 1 1 auto;
    min-width: 280px;
}

.header-copy .tagline {
    margin-bottom: 0;
}

.header-image {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-end;
}

.header-image img {
    width: clamp(150px, 22vw, 280px);
    height: auto;
    border-radius: 12px;
    display: block;
}

@media (max-width: 900px) {
    header {
        flex-direction: column;
    }

    .header-image {
        width: 100%;
        justify-content: center;
    }
}

p, li {
    text-align: justify; /* Testo Giustificato Richiesto */
    margin-bottom: 1.2rem;
}

/* Tagline Style */
.tagline {
    font-size: 1.4rem;
    color: #a0a7aa; /* Gray Chateau #a0a7aa */
    margin-bottom: 3rem;
    font-weight: 300;
    font-style: italic;
}

/* Pitch Box */
.pitch-box {
    border: 1px solid #959aa4; /* Manatee #959aa4 */
    padding: 1rem 2rem;
    background: linear-gradient(135deg, rgba(10, 28, 74, 0.82), rgba(19, 54, 130, 0.68));
    border-radius: 8px;
    margin-bottom: 3rem;
}

.pitch-box h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.pitch-box p {
    margin-bottom: 0;
}

/* Liste */
ul {
    list-style-position: inside;
    padding-left: 10px;
}

li {
    margin-bottom: 0.5rem;
}

strong {
    color: #ffffff;
}

/* Tech Stack Grid */
.tech-grid {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: clamp(0.4rem, 1vw, 1rem);
    margin-top: 1rem;
    overflow-x: auto;
}

.tech-item {
    background: linear-gradient(135deg, rgba(10, 28, 74, 0.82), rgba(19, 54, 130, 0.68));
    padding: clamp(6px, 1.2vw, 10px);
    text-align: center;
    border: 1px solid #a0a7aa; /* Gray Chateau */
    font-size: clamp(0.7rem, 0.85vw, 0.9rem);
    color: #dadadc; /* Iron */
    flex: 1 1 0;
    min-width: 0;
}

.diagram-box {
    border: 1px solid #959aa4;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(9, 24, 66, 0.88), rgba(16, 44, 109, 0.72));
    padding: 1rem;
    margin-top: 1rem;
    overflow-x: auto;
}

.diagram-box .mermaid {
    width: max-content;
    margin: 0 auto;
    text-align: center;
}

.diagram-box .mermaid svg {
    display: block;
}

/* Footer */
footer {
    margin-top: 5rem;
    text-align: center;
    font-size: 0.8rem;
    color: #959aa4; /* Manatee */
    border-top: 1px solid #474546; /* Tundora */
    padding-top: 20px;
}

/* Utility per il giustificato */
.text-justify {
    text-align: justify;
    hyphens: auto;
}

.hover-effect:hover {
    color: #959aa4;
    transition: color 0.3s;
}
