:root {
    --verde-isoscope: #4CAF50;
    --gri-inchis: #333333;
    --gri-deschis: #f4f4f4;
}

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

body {
    font-family: Arial, sans-serif;
    background-color: var(--gri-deschis);
    color: var(--gri-inchis);
    line-height: 1.6;
}

header {
    background-color: var(--gri-inchis);
    color: white;
    padding: 20px;
    text-align: center;
}

header img {
    max-width: 250px;
    height: auto;
    display: block;
    margin: 0 auto 10px auto;
}

nav {
    background-color: var(--verde-isoscope);
    display: flex;
    justify-content: center;
}

nav a {
    color: white;
    padding: 15px 20px;
    text-decoration: none;
    transition: background 0.3s;
    font-size: 22px;        /* ⇦ mărire text */
    font-weight: bold;      /* ⇦ îngroșare text */
}

nav a:hover {
    background-color: #3b9442;
}

body:not(.fara-fundal) .container {
    padding: 40px 20px;
    width: 100%;              /* preia toată lățimea disponibilă */
    display: flex;
    flex-direction: column;
    align-items: center;      /* centrează conținutul intern */
    flex: 1;

    background-image: url("../assets/fundal-pagina.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    position: relative;
    z-index: 1;
}

body:not(.fara-fundal) .container::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.5); /* alb semi-transparent */
    z-index: 0;
}

body:not(.fara-fundal) .container > section {
    position: relative;
    z-index: 1;
}



.container > section {
    width: 100%;
    max-width: 1200px; 
    text-align: justify;
    margin-bottom: 1em;

       /* păstrează limita vizuală a conținutului */
}

section {
    margin-bottom: 60px;
}

h1 {
    color: var(--verde-isoscope);
}


h2 {
    color: var(--verde-isoscope);
    margin-bottom: 10px;
    font-size: 28px;      /* sau 30px, dacă vrei și mai mare */
    font-weight: bold;    /* deja e implicit pentru <h2>, dar îl poți pune pentru siguranță */
}

h3 {
    color: var(--verde-isoscope);
    font-size: 18px;       /* sau aceeași valoare ca la <p> */
    font-weight: bold;     /* îngroșare text */
    margin-top: 10px;      /* opțional, pentru spațiu față de elementul anterior */
    margin-bottom: 5px;   /* opțional, pentru spațiu față de paragraf */
}

footer {
    background-color: var(--gri-inchis);
    color: white;
    text-align: center;
    padding: 20px;
}

footer p {
    font-weight: normal;
}
/* Stil pentru linkurile din footer */
footer a {
    color: red;
    font-weight: bold;
    text-decoration: underline;
}

html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

body {
    flex: 1;
}

.container {
    flex: 1; /* acest div va ocupa tot spațiul disponibil */
}


/* ===================== */
/* OPTIMIZARE PENTRU MOBIL */
/* ===================== */
@media (max-width: 768px) {
    .container {
        padding: 20px 10px;
    }

    nav {
        flex-direction: column;
    }

    nav a {
        display: block;
        text-align: center;
        padding: 12px;
        font-size: 18px;
    }

    h1 {
        font-size: 1.8rem;
        text-align: center;
    }

    h2 {
        font-size: 1.4rem;
        text-align: center;
    }

    p {
        font-size: 1rem;
    }

    footer {
        padding: 15px 10px;
    }

    footer p,
    footer a {
        font-size: 0.9rem;
    }
}