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

/* Stil de bază */
body {
    font-family: 'Segoe UI', sans-serif;
}

/* Pagina principală (index.html) cu fundal negru */
body.pagina-intro {
    background-color: #000;
    color: white;
}

/* Alte pagini cu fundal alb */
body.pag-alb {
    background-color: #fff;
    color: #111;
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
}

/* HEADER */

/* Header negru pentru pagina principală */
body.pagina-intro header {
    background-color: #111;
    color: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
}

/* Header alb pentru celelalte pagini */
body:not(.pagina-intro) header {
    background-color: #fff;
    color: black;
    border-bottom: 1px solid #ddd;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
}

/* LOGO */
header .logo img {
    height: 40px;
}

/* NAVIGAȚIE */
nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li {
    position: relative;
}

/* Meniu alb pe fundal negru */
body.pagina-intro nav a {
    color: white;
}

/* Meniu negru pe fundal alb */
body:not(.pagina-intro) nav a {
    color: #111;
}

/* Link activ - index.html */
body.pagina-intro nav a.active {
    color: #33aaff;
}

/* Link activ - restul paginilor */
body:not(.pagina-intro) nav a.active {
    color: #0077cc;
    font-weight: bold;
}

/* Efect hover linkuri */
nav a {
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: #00aaff;
}



body.pagina-intro .intro-hero {
    height: 100vh;
    background-image: url('https://wallpapercave.com/wp/wp3616669.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Titlul mai sus pe ecran */
body.pagina-intro .banner-title {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: fadeIn 2s ease-in-out forwards;
    text-align: center;
}

body.pagina-intro .banner-title h1 {
    color: white;
    font-size: 50px;
    font-family: 'Segoe UI', sans-serif;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    margin: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}


/* BANNER principal (index) */
.hero img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    margin-top: 70px;
}

/* BANNER ISTORIC */
.banner-istoric img {
    width: 100%;
    height: auto;
    margin-top: 70px;
}

/* PAGINA CU SCROLL */
main.pagina {
    max-width: 1000px;
    margin: 60px auto 80px auto;
    padding: 30px;
    line-height: 1.8;
    font-family: 'Segoe UI', sans-serif;
    font-size: 17px;
    color: #444;
}

/*modele*/
.banner-model {
    margin-top: 70px;
    height: calc(100vh - 70px);
    overflow: hidden;
}

.banner-model img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Titlu principal */
main.pagina h1 {
    font-size: 36px;
    margin-bottom: 25px;
    color: #444;
}

/* Subtitluri (gen Prima generație) */
main.pagina h2 {
    font-size: 36px;
    margin-top: 30px;
    margin-bottom: 20px;
    color: #444;
    font-weight: bold;
}

/* Sub-subtitluri (dacă apar) */
main.pagina h3 {
    font-size: 20px;
    margin-top: 40px;
    margin-bottom: 10px;
    color: #444;
    font-weight: bold;
}

/* Paragraf */
main.pagina p {
    margin-bottom: 20px;
    text-align: justify;
}

/* LISTA caracteristici */
ul.caracteristici {
    list-style: none;
    padding-left: 0;
    margin-bottom: 30px;
}

ul.caracteristici li {
    margin-bottom: 10px;
    font-weight: 500;
}

/* DROPDOWN din meniu MODELE */
nav ul li ul.dropdown {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 160px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
    padding: 0;
}

nav ul li:hover ul.dropdown {
    display: block;
}

nav ul li ul.dropdown li {
    display: block;
    text-align: left;
}

nav ul li ul.dropdown li a {
    color: #111;
    padding: 10px 15px;
    display: block;
    font-size: 14px;
}

nav ul li ul.dropdown li a:hover {
    background-color: #f2f2f2;
}

/* BANNER pentru paginile cu serii (ex: seria1.html) */
.banner-serie {
    width: 100%;
    height: 100vh;
    background: url('https://automotorsisport.ro/wp-content/uploads/2024/06/BMW-Seria-1-2025-_8.jpg') no-repeat center center/cover;
    margin-top: 70px;
    animation: fadein 2s ease-in;
}

@keyframes fadein {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* FADE IN la conținut după scroll */
.fade-in {
    animation: fadeInContent 2s ease-in;
}

@keyframes fadeInContent {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* STRUCTURA paginii cu serii */
.continut-serie {
    display: flex;
    max-width: 1200px;
    margin: 60px auto;
    padding: 30px;
    line-height: 1.6;
}

.meniu-lateral {
    flex: 1;
    margin-right: 40px;
}

.meniu-lateral ul {
    list-style: none;
    padding: 0;
}

.meniu-lateral li {
    margin-bottom: 10px;
}

.meniu-lateral a {
    text-decoration: none;
    color: #111;
    font-weight: 600;
}

.meniu-lateral a.active {
    color: #0077cc;
}

/* TEXT în pagina seriei */
.text-serie {
    flex: 3;
}

.text-serie h1 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #111;
}

.text-serie p {
    margin-bottom: 20px;
    text-align: justify;
}

/*seria2*/
/* === STIL PENTRU SERIA 2 === */
body.seria2 .text-serie {
    font-family: 'Segoe UI', sans-serif;
    color: #444;
    line-height: 1.8;
    font-size: 17px;
    text-align: justify;
}

body.seria2 .text-serie h1 {
    font-size: 36px;
    margin-bottom: 25px;
    color: #444;
}

body.seria2 .text-serie h2 {
    font-size: 28px;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #444;
    font-weight: bold;
}

body.seria2 .text-serie h3 {
    font-size: 22px;
    margin-top: 25px;
    margin-bottom: 10px;
    color: #444;
}

body.seria2 .text-serie p {
    margin-bottom: 20px;
}


/* Pagină Seria 3 */
body.pag-alb.seria3 {
    background-color: #fff;
    color: #444;
}

body.seria3 main.pagina {
    flex: 3;
    color: #444;
}

body.pag-alb.seria3 header {
    background-color: #fff;
    border-bottom: 1px solid #ddd;
}

body.pag-alb.seria3 nav a {
    color: #111;
}

body.pag-alb.seria3 nav a.active {
    color: #0077cc;
    font-weight: bold;
}

/* === STIL PENTRU SERIA 3 === */
body.seria3 .text-serie {
    font-family: 'Segoe UI', sans-serif;
    color: #444;
    line-height: 1.8;
    font-size: 17px;
    text-align: justify;
}

body.seria3 .text-serie h1 {
    font-size: 36px;
    margin-bottom: 25px;
    color: #444;
}

body.seria3 .text-serie h2 {
    font-size: 28px;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #444;
    font-weight: bold;
}

body.seria3 .text-serie h3 {
    font-size: 22px;
    margin-top: 25px;
    margin-bottom: 10px;
    color: #444;
}

body.seria3 .text-serie p {
    margin-bottom: 20px;
}

body.pag-alb.seria3 .caracteristici li {
    margin-bottom: 10px;
    font-weight: 500;
}

.continut-serie {
    display: flex;
    max-width: 1200px;
    margin: 60px auto;
    padding: 30px;
    line-height: 1.6;
}

.banner-serie.seria3 {
    width: 100%;
    height: 100vh;
    background: url('https://i.bstr.es/drivingeco/2022/08/BMW-Serie-3-2022-Front.jpg') no-repeat center center/cover;
    margin-top: 70px;
}



/*seria4*/
/* === STIL PENTRU SERIA 4 === */
body.seria4 .text-serie {
    font-family: 'Segoe UI', sans-serif;
    color: #444;
    line-height: 1.8;
    font-size: 17px;
    text-align: justify;
}

body.seria4 .text-serie h1 {
    font-size: 36px;
    margin-bottom: 25px;
    color: #444;
}

body.seria4 .text-serie h2 {
    font-size: 28px;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #444;
    font-weight: bold;
}

body.seria4 .text-serie h3 {
    font-size: 22px;
    margin-top: 25px;
    margin-bottom: 10px;
    color: #444;
}

body.seria4 .text-serie p {
    margin-bottom: 20px;
}

body.seria4 ul.caracteristici {
    list-style: none;
    padding-left: 0;
    margin-bottom: 30px;
}

body.seria4 ul.caracteristici li {
    margin-bottom: 10px;
    font-weight: 500;
}


/*seria5*/
/* === STIL PENTRU SERIA 5 === */
body.seria5 .text-serie {
    font-family: 'Segoe UI', sans-serif;
    color: #444;
    line-height: 1.8;
    font-size: 17px;
    text-align: justify;
}

body.seria5 .text-serie h1 {
    font-size: 36px;
    margin-bottom: 25px;
    color: #444;
}

body.seria5 .text-serie h2 {
    font-size: 28px;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #444;
    font-weight: bold;
}

body.seria5 .text-serie h3 {
    font-size: 22px;
    margin-top: 25px;
    margin-bottom: 10px;
    color: #444;
}

body.seria5 .text-serie p {
    margin-bottom: 20px;
}


/*seria6*/
/* === STIL PENTRU SERIA 6 === */
body.seria6 .text-serie {
    font-family: 'Segoe UI', sans-serif;
    color: #444;
    line-height: 1.8;
    font-size: 17px;
    text-align: justify;
}

body.seria6 .text-serie h1 {
    font-size: 36px;
    margin-bottom: 25px;
    color: #444;
}

body.seria6 .text-serie h2 {
    font-size: 28px;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #444;
    font-weight: bold;
}

body.seria6 .text-serie h3 {
    font-size: 22px;
    margin-top: 25px;
    margin-bottom: 10px;
    color: #444;
}

body.seria6 .text-serie p {
    margin-bottom: 20px;
}


/*seria7*/
/* === STIL PENTRU SERIA 7 === */
body.seria7 .text-serie {
    font-family: 'Segoe UI', sans-serif;
    color: #444;
    line-height: 1.8;
    font-size: 17px;
    text-align: justify;
    padding: 20px;
}

body.seria7 .text-serie h1 {
    font-size: 36px;
    margin-bottom: 25px;
    color: #444;
}

body.seria7 .text-serie h2 {
    font-size: 28px;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #444;
    font-weight: bold;
}

body.seria7 .text-serie h3 {
    font-size: 22px;
    margin-top: 25px;
    margin-bottom: 10px;
    color: #444;
}

body.seria7 .text-serie p {
    margin-bottom: 20px;
}


/*seria8*/
/* === STIL PENTRU SERIA 8 === */
body.seria8 .text-serie {
    font-family: 'Segoe UI', sans-serif;
    color: #444;
    line-height: 1.8;
    font-size: 17px;
    text-align: justify;
    padding: 20px;
}

body.seria8 .text-serie h1 {
    font-size: 36px;
    margin-bottom: 25px;
    color: #444;
}

body.seria8 .text-serie h2 {
    font-size: 28px;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #444;
    font-weight: bold;
}

body.seria8 .text-serie h3,
body.seria8 .text-serie h4 {
    font-size: 22px;
    margin-top: 25px;
    margin-bottom: 10px;
    color: #444;
}

body.seria8 .text-serie p {
    margin-bottom: 20px;
}


/*x5*/
/* === STIL PENTRU BMW X5 === */
body.bmwx5 .text-serie {
    font-family: 'Segoe UI', sans-serif;
    color: #444;
    line-height: 1.8;
    font-size: 17px;
    text-align: justify;
    padding: 20px;
}

body.bmwx5 .text-serie h1 {
    font-size: 36px;
    margin-bottom: 25px;
    color: #444;
}

body.bmwx5 .text-serie h2 {
    font-size: 28px;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #444;
    font-weight: bold;
}

body.bmwx5 .text-serie h3 {
    font-size: 22px;
    margin-top: 25px;
    margin-bottom: 10px;
    color: #444;
}

body.bmwx5 .text-serie p {
    margin-bottom: 20px;
}

body.bmwx5 .text-serie ul {
    margin-left: 20px;
    margin-bottom: 25px;
}


/*x6*/
/* === STIL PENTRU BMW X6 === */
body.bmwx6 .text-serie {
    font-family: 'Segoe UI', sans-serif;
    color: #444;
    line-height: 1.8;
    font-size: 17px;
    text-align: justify;
}

body.bmwx6 .text-serie h1 {
    font-size: 36px;
    margin-bottom: 25px;
    color: #444;
}

body.bmwx6 .text-serie h2 {
    font-size: 28px;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #444;
    font-weight: bold;
}

body.bmwx6 .text-serie h3 {
    font-size: 22px;
    margin-top: 25px;
    margin-bottom: 10px;
    color: #444;
}

body.bmwx6 .text-serie p {
    margin-bottom: 20px;
}

body.bmwx6 .text-serie ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

body.bmwx6 .text-serie ul li {
    list-style: disc;
    margin-bottom: 8px;
    color: #444;
}

/*galerie*/
body.galerie .grid-galerie {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 80px;
}

body.galerie .grid-galerie img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

body.galerie .grid-galerie img:hover {
    transform: scale(1.05);
}


/*video*/
/* === Pagina video === */
body.video .titlu-pagina {
    text-align: center;
    font-size: 36px;
    margin-top: 120px;
    color: #444;
    font-family: 'Segoe UI', sans-serif;
}

.video-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
    text-align: center;
}

.video-container h2 {
    font-size: 24px;
    color: #444;
    margin-bottom: 20px;
    font-family: 'Segoe UI', sans-serif;
}

.video-container iframe {
    width: 100%;
    height: 500px;
    border-radius: 8px;
}


/*contact*/
/* === Pagina Contact === */
body.contact .continut-contact {
    display: flex;
    justify-content: space-between;
    padding: 60px 80px;
    flex-wrap: wrap;
    margin-top: 150px;
    padding-bottom: 60px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h1 {
    font-size: 32px;
    color: #444;
    margin-bottom: 20px;
    font-family: 'Segoe UI', sans-serif;
}

.contact-info p {
    font-size: 18px;
    margin-bottom: 10px;
    font-family: 'Segoe UI', sans-serif;
    color: #444;
}

.formular-contact {
    flex: 1.2;
    min-width: 300px;
}

.formular-contact form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.linie-formular {
    display: flex;
    gap: 20px;
}

.linie-formular input {
    flex: 1;
}

.formular-contact input,
.formular-contact textarea {
    padding: 12px 15px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: 'Segoe UI', sans-serif;
}

.formular-contact textarea {
    resize: vertical;
    min-height: 120px;
}

.formular-contact button {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 12px 25px;
    font-size: 15px;
    border-radius: 4px;
    cursor: pointer;
    align-self: flex-start;
    font-weight: bold;
    letter-spacing: 1px;
}

.formular-contact button:hover {
    background-color: #333;
}