@keyframes zoom {
    from {transform: scale(0.8); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

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

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    background-color: #0056B3;
    border-radius: 4px;
    border-color: transparent;
    color: white;
    cursor: pointer;
    display: inline-block;
    font-weight: 600;
    padding: 12px 30px;
    transition: background-color 0.3s;
    text-decoration: none;
}

.btn:hover {
    background-color: #003D82;
}

/* Header */
header {
    background-color: #FFF;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}
header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header .menu .logo {
    padding: 15px 0;
}

header .menu .logo h1 {
    font-size: 28px;
    color: #0056B3;
}

header .menu .logo span {
    color: #e63946;
}

header .menu {
    display: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1000;
}

header .menu .bar1, .bar2, .bar3 {
    width: 35px;
    height: 5px;
    background-color: #333;
    margin: 6px 0;
    transition: 0.4s;
    border-radius: 3px;
}

header .menu.open .bar1 {
    transform: translate(0, 11px) rotate(-45deg);
}

header .menu.open .bar2 {
    opacity: 0;
}

header .menu.open .bar3 {
    transform: translate(0, -11px) rotate(45deg);
}

header nav ul {
    display: flex;
    list-style: none;
    padding: 15px 0;
}

header nav ul li {
    margin-right: 25px;
}

header nav ul li:last-child {
    margin-right: 0;
}

header nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: color 0.3s;
}

header nav ul li a.active {
    color: #e63946;
}

header nav ul li a:hover {
    color: #0056B3;
}

/* Footer */
footer {
    background-color: #000;
    color: #fff;
    padding: 50px 0 20px;
}

footer .footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

footer .footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #0056B3;
}

footer .footer-col ul {
    list-style: none;
}

footer .footer-col ul li {
    margin-bottom: 10px;
}

footer .footer-col ul li a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}

footer .footer-col ul li a:hover {
    color: #0056B3;
}

footer .copyright {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 20px;
    font-size: 0.9rem;
}

/* Hero Section */
.hero {
    align-items: center;
    background-size: cover;
    background-position: center;
    display: flex;
    height: 40vh;
    justify-content: center;
    position: relative;
}

.hero::after {
    background-color: rgba(0, 0, 0, 0.6);
    content: '';
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}

.hero .content {
    color: white;
    max-width: 800px;
    position: relative;
    text-align: center;
    z-index: 1;
}
.hero .content h1, .hero .content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero .content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Head */
.homepage .hero {
    height: 80vh;
}
.homepage .hero::after {
    background-color: rgba(0, 0, 0, 0.5);
}
.homepage .hero .content {
    max-width: 100%;
}

/* Title */
.title {
    text-align: center;
    margin-bottom: 50px;
}

.title h2 {
    font-size: 2.5rem;
    color: #0056B3;
}

.title p {
    color: #666;
    font-size: 1.1rem;
}

/* Section */
.section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.section .text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #0056B3;
}

.section .text p {
    margin-bottom: 15px;
}

.section .text ul {
    margin-bottom: 15px;
    padding-left: 20px;
}

.section .image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}
.card:hover {
    transform: translateY(-10px);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card .content {
    padding: 25px;
}

.card .content h3 {
    margin-bottom: 15px;
    color: #0056B3;
}

.card .content p {
    color: #666;
    margin-bottom: 20px;
}


.errore .section {
    padding: 80px 0;
    align-items: start;
    grid-template-columns: 1fr;
    text-align: center;
}

/* Services Section */
.services {
    padding: 80px 0;
}

/* Informations Section */
.informations {
    padding: 80px 0;
}

.informations .section {
    align-items: start;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

/* About Section */
.about {
    padding: 80px 0;
    background-color: #f0f8ff;
}

.about .section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

/* Testimonials */
.testimonials {
    padding: 80px 0;
    background-color: #f0f8ff;
}

.testimonials .card {
    padding: 30px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.testimonials .card p {
    font-style: italic;
    margin-bottom: 20px;
}

.testimonials .card .author {
    font-weight: 600;
    color: #0056B3;
}

/* Contact Section */
.contact {
    padding: 80px 0;
}

.contact .section {
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}
.contact .info h3 {
    color: #0056B3;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.contact .info p {
    margin-bottom: 10px;
}

.contact .info p + h3 {
    margin-top: 15px;
}

.contact .info a {
    color: #0056B3;
    text-decoration: none;
}

.contact .form input,
.contact .form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
}

.contact .form textarea {
    height: 150px;
    resize: vertical;
}

.contact input.error, .contact textarea.error {
    border: 1px solid #a94442;
}

.contact .captcha-container {
    margin-bottom: 20px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.contact .message {
    margin: 15px 0;
    padding: 10px;
    border-radius: 4px;
}
.contact .message.success {
    background-color: #dff0d8;
    color: #3c763d;
    border: 1px solid #d6e9c6;
}

.contact .message.error {
    background-color: #f2dede;
    color: #a94442;
    border: 1px solid #ebccd1;
}

/* Gallery */
.gallery {
    background-color: #FFF;
    padding: 80px 0;
}

.gallery .section {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery .image .gallery-img {
    object-fit: cover;
    height: 100%;
    transition: transform 0.5s;
    width: 100%;
}

.gallery .image {
    border-radius: 8px;
    cursor: pointer;
    height: 300px;
    overflow: hidden;
    position: relative;
}

.gallery .image:hover .gallery-img {
    transform: scale(1.05);
}

.gallery-popup {
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    height: 100%;
    left: 0;
    top: 0;
    overflow: auto;
    padding-top: 50px;
    position: fixed;
    width: 100%;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.gallery-popup .content {
    animation: zoom 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: block;
    object-fit: contain;
    margin: auto;
    max-height: 80vh;
    max-width: 90%;
}

.gallery-popup .close {
    color: white;
    cursor: pointer;
    font-size: 40px;
    font-weight: bold;
    position: absolute;
    right: 25px;
    top: 15px;
    transition: color 0.3s ease;
    z-index: 1001;
}

.gallery-popup .close:hover {
    color: #ff5555;
}

.gallery-popup .caption {
    margin: auto;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: white;
    padding: 10px 0;
    font-size: 18px;
}

.gallery-popup .nav-button {
    color: white;
    font-size: 40px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 1001;
    user-select: none;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    border-radius: 50%;
}

.gallery-popup .nav-button:hover {
    background: rgba(0, 0, 0, 0.8);
}

.gallery-popup .prev {
    left: 20px;
}

.gallery-popup .next {
    right: 20px;
}

@media screen and (max-width: 768px) {
    header nav { position: relative }
    header .menu {
        display: block;
        z-index: 1001;
    }
    header .menu.open {
        position: absolute;
        right: -15px;
        top: -28px;
        z-index: 1001;
    }
    header nav ul.nav-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 999;
    }
    header nav ul.nav-menu.active {
        display: flex;
    }
    header nav ul.nav-menu li {
        margin: 15px 0;
    }

    header nav ul {
        flex-direction: column;
    }

    header nav ul li {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .hero .content h2 {
        font-size: 2rem;
    }

    .about .section,
    .contact .section {
        grid-template-columns: 1fr;
    }

    .informations .section {
        grid-template-columns: 1fr;
    }
}