/* Stile Base */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

/* Header */
.header {
    background: linear-gradient(90deg, #2c3e50, #16a085);
    color: #fff;
    padding: 15px 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header .logo h1 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #f1c40f;
    display: flex;
    align-items: center;
    margin: 0;
}

.header .logo h1 i {
    margin-right: 10px;
}

.navbar {
    display: none;
}

.navbar ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.navbar ul li {
    margin-left: 15px;
}

.navbar ul li a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: color 0.3s;
}

.navbar ul li a:hover {
    color: #f1c40f;
}

/* Responsività */
.navbar-toggler {
    border: none;
    background: none;
    color: #fff;
    font-size: 1.5rem;
    display: block;
}

/* Popout Contatti */
.contact-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    color: #2c3e50;
    max-width: 400px;
    width: 100%;
}

.popup-content h2 {
    color: #16a085;
    margin-bottom: 10px;
}

.popup-content p {
    margin: 10px 0;
}

.popup-content .social-icons a {
    margin: 0 10px;
    color: #2c3e50;
    font-size: 1.5rem;
    text-decoration: none;
}

.popup-content .social-icons a:hover {
    color: #16a085;
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #16a085;
}

/* Hero Section */
.hero {
    width: 100%;
    background: #2c3e50;
    color: #fff;
}

.hero-video {
    width: 100%;
    height: auto;
}

.hero-video video {
    width: 100%;
    height: auto;
    display: block;
}

.hero-text {
    text-align: center;
    padding: 20px;
    background: #16a085;
    color: #fff;
}

.hero-text h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #f1c40f;
}

.hero-text p {
    font-size: 1.2rem;
    color: #fff;
    margin: 0 auto;
    max-width: 800px;
    line-height: 1.6;
}

.hero-video video {
    width: 100%;
    height: auto;
    display: block;
}

/* Introduction Section */
.introduction {
    background-color: #f9f9f9;
    padding: 40px 20px;
    text-align: center;
}

.introduction h2 {
    font-size: 2rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 20px;
}

.introduction p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}

.introduction ul {
    list-style: none;
    padding: 0;
}

.introduction ul li {
    font-size: 1rem;
    color: #16a085;
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.introduction ul li i {
    margin-right: 10px;
    color: #f1c40f;
}

/* Linea di Separazione tra Home e Servizi */
.section-divider {
    background: linear-gradient(90deg, #2c3e50, #16a085);
    text-align: center;
    padding: 30px;
    color: #fff;
    position: relative;
}

.section-divider .divider-text {
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 2px;
    z-index: 1;
}

/* Servizi con Background */
.services {
    position: relative;
    padding: 80px 20px;
}

.services-background {
    background-image: url('aerofotogrammetria con Drone.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    border-radius: 10px;
    padding: 60px 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.section-title {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 40px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

/* Card dei Servizi */
.service-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.15);
}

.service-card h3 {
    font-size: 1.8rem;
    color: #16a085;
    margin-bottom: 15px;
}

.service-card p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 20px;
}

.details-btn {
    background: linear-gradient(90deg, #16a085, #2c3e50);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.details-btn:hover {
    background: linear-gradient(90deg, #138f75, #1a2d40);
}

/* Popup */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    max-width: 500px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.5s ease-in-out;
}

.popup-content h3 {
    font-size: 1.8rem;
    color: #16a085;
    margin-bottom: 15px;
}

.popup-content p {
    font-size: 1rem;
    color: #555;
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #16a085;
    cursor: pointer;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Sezione Chi Siamo */
.about {
    padding: 80px 20px;
    background: linear-gradient(to bottom, #f4f4f4, #e8e8e8);
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    margin: 0 auto;
}

.about-text {
    flex: 1;
    max-width: 600px;
    text-align: left;
}

.about-text h2 {
    font-size: 3rem;
    color: #2c3e50;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.about-text p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
}

.about-media {
    flex: 1;
    text-align: center;
}

.image-container {
    width: 300px;
    height: 300px;
    overflow: hidden;
    border-radius: 20px;
    margin: 0 auto 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.info-btn {
    background: linear-gradient(90deg, #16a085, #2c3e50);
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.info-btn:hover {
    background: linear-gradient(90deg, #138f75, #1a2d40);
    transform: scale(1.05);
}


/* Popout Contatti */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 20px;
    max-width: 400px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.5s ease-in-out;
}

.popup-content h3 {
    font-size: 1.8rem;
    color: #16a085;
    margin-bottom: 15px;
}

.popup-content p {
    font-size: 1rem;
    color: #555;
}

.social-icons a {
    margin: 0 10px;
    font-size: 1.5rem;
    color: #2c3e50;
    text-decoration: none;
}

.social-icons a:hover {
    color: #16a085;
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #16a085;
    cursor: pointer;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Sezione Consigli */
.client-advice {
    padding: 80px 20px;
    background: linear-gradient(to bottom, #ffffff, #f4f4f4);
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 40px;
}

.advice-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    align-items: flex-start;
}

.advice-text {
    flex: 1;
    max-width: 600px;
    text-align: left;
}

.advice-text h3 {
    font-size: 1.8rem;
    color: #16a085;
    margin-bottom: 20px;
}

.advice-text p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
}

.advice-text ul {
    list-style: none;
    padding: 0;
}

.advice-text ul li {
    font-size: 1rem;
    color: #555;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.advice-text ul li i {
    color: #16a085;
    font-size: 1.2rem;
    margin-right: 10px;
}

/* Certificazioni */
.certifications {
    flex: 1;
    max-width: 600px;
    text-align: left;
}

.certifications h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 20px;
}

.certification-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.certification-item {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.certification-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.certification-item i {
    font-size: 2rem;
    color: #16a085;
    margin-bottom: 10px;
}

.certification-item p {
    font-size: 1rem;
    color: #555;
}

/* Pulsante Chat WhatsApp */
.whatsapp-chat {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.whatsapp-chat button {
    background-color: #25d366;
    color: #fff;
    border: none;
    padding: 15px 20px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.3s;
}

.whatsapp-chat button i {
    font-size: 1.5rem;
}

.whatsapp-chat button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Linea di Separazione tra le Sezioni */
.section-divider {
    background: linear-gradient(90deg, #2c3e50, #16a085);
    text-align: center;
    padding: 20px;
    color: #fff;
    position: relative;
    margin-bottom: 40px;
}

.section-divider .divider-text {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 2px;
    z-index: 1;
}

/* Sezione Lavori Effettuati */
.works {
    padding: 80px 20px;
    background: #f9f9f9;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 40px;
}

.gallery-section {
    margin-bottom: 60px;
}

.gallery-section h3 {
    font-size: 1.8rem;
    color: #16a085;
    margin-bottom: 20px;
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.gallery-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Popout Privacy Policy */
.privacy-popup {
    display: none; /* Mostrato dinamicamente con JS */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.5s ease-in-out;
}

.popup-content h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 20px;
}

.popup-content p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.popup-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.accept-btn,
.reject-btn {
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    border: none;
    transition: background 0.3s, transform 0.2s;
}

.accept-btn {
    background: #16a085;
    color: #fff;
}

.reject-btn {
    background: #e74c3c;
    color: #fff;
}

.accept-btn:hover {
    background: #138f75;
    transform: scale(1.05);
}

.reject-btn:hover {
    background: #c0392b;
    transform: scale(1.05);
}

.more-info {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #16a085;
    text-decoration: none;
    transition: color 0.3s;
}

.more-info:hover {
    color: #138f75;
}

/* Animazione popup */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Note Legali */
.legal-notes {
    padding: 40px 20px;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin: 40px auto;
    max-width: 800px;
    border-radius: 10px;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #2c3e50;
    text-align: center;
}

h2 {
    font-size: 1.8rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #16a085;
}

p {
    margin-bottom: 20px;
    font-size: 1rem;
    color: #555;
}

.navigation-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.navigation-buttons button {
    padding: 10px 20px;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.navigation-buttons button:first-child {
    background: #16a085;
    color: #fff;
}

.navigation-buttons button:last-child {
    background: #e74c3c;
    color: #fff;
}

.navigation-buttons button:hover {
    opacity: 0.9;
}

/* Footer */
.footer {
    text-align: center;
    background: #2c3e50;
    padding: 20px;
    color: #fff;
    margin-top: 40px;
    border-radius: 10px;
}

.footer img {
    max-width: 150px;
    margin-top: 10px;
}

.footer a {
    color: #16a085;
    text-decoration: none;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: #fff;
    padding: 20px 10px;
    font-size: 0.9rem;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-logo img {
    max-width: 80px;
}

.footer-menu {
    text-align: center;
    flex: 1;
}

.footer-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.footer-menu ul li {
    display: inline;
}

.footer-menu ul li a {
    text-decoration: none;
    color: #16a085;
    font-weight: bold;
    transition: color 0.3s;
}

.footer-menu ul li a:hover {
    color: #1abc9c;
}

.footer-menu .credits {
    margin-top: 10px;
    font-size: 0.8rem;
    color: #bbb;
}

.footer-menu .credits a {
    color: #16a085;
    text-decoration: none;
}

.footer-menu .credits a:hover {
    color: #1abc9c;
}

.footer-contacts {
    text-align: center;
}

.footer-contacts button {
    background: #16a085;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.footer-contacts button:hover {
    background: #138f75;
}

.footer-banner img {
    max-width: 150px;
    margin-top: 10px;
    display: block;
}
