/* --- STILE FOSTER+PARTNERS / ARCHITECTURAL MINIMAL --- */
:root {
    --bg-color: #ffffff;
    --text-main: #111111;
    --text-muted: #555555;
    --gray-light: #f4f4f4;
    --border-color: #e2e2e2;
    --accent-red: #d32f2f; /* Rosso tecnico del logo */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Futura", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    letter-spacing: -0.01em;
}

/* --- HEADER & NAVIGAZIONE --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.brand-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.brand-logo-img {
    height: 32px; /* Adatta l'altezza in base al file immagine del logo */
    width: auto;
}

.brand-text {
    font-size: 1.1rem;
    font-weight: 500; /* Rimuove il grassetto pesante, impostandolo normale */
    text-transform: none; /* Disabilita il maiuscolo automatico, mantenendo esattamente come scrivi il testo */
    letter-spacing: 0.02em; /* Spaziatura geometrica pulita */
    color: var(--text-main);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: color 0.2s ease;
}

nav a:hover, nav a.active {
    color: var(--accent-red);
}

/* --- CONTENUTI PRINCIPALI --- */
main {
    max-width: 1300px;
    margin: 0 auto;
    padding: 6rem 5%;
}

.hero-section {
    margin-bottom: 6rem;
}

h1 {
    font-size: 3.2rem;
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
    max-width: 1000px;
}

h1 span {
    color: var(--accent-red);
}

p.subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 850px;
    line-height: 1.7;
}

/* --- GRIGLIA SOLUZIONI / AMBITI --- */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 4rem;
}

.solution-card {
    background: var(--gray-light);
    padding: 2.5rem;
    border-top: 3px solid var(--accent-red);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.solution-card h3 {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.solution-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.solution-link {
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-main);
    letter-spacing: 0.05em;
    transition: color 0.2s;
}

.solution-link:hover {
    color: var(--accent-red);
}

/* --- FOOTER --- */
footer {
    padding: 3rem 5%;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    header { flex-direction: column; gap: 1.5rem; }
    nav ul { gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
    h1 { font-size: 2.4rem; }
    .solutions-grid { grid-template-columns: 1fr; }
}
/* --- HERO BANNER IMMERSIVO CON TESTO SOVRAPPOSTO --- */
.hero-banner {
    position: relative;
    width: 100%;
    height: 500px;
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 0 8%;
    margin-bottom: 5rem;
}

/* Sfumatura scura sopra l'immagine per far risaltare il testo bianco */
.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.20); /* Sfumatura leggerissima solo per leggibilità del testo */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 950px;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 400;
    line-height: 1.15;
    color: #ffffff; /* Testo bianco */
    letter-spacing: -0.03em;
}

.hero-content h1 span {
    color: var(--accent-red); /* Il tuo rosso tecnico */
    font-weight: 700;
    /* Vero contorno uniforme tutt'intorno al carattere (ora annullato lo spessore del bianco impostando 0.0px) */
    -webkit-text-stroke: 0.0px #ffffff; 
    /* Leggera ombra opzionale di stacco per profondità */
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
}