* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
}

/* Font corsivo per elementi specifici */
h1, h2, h3 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 600;
}

.logo-text, .footer-logo-text {
    font-family: 'Dancing Script', cursive;
    font-weight: 700;
}

header {
    background: linear-gradient(135deg, #2d5016 0%, #4a7c2c 100%);
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 50%;
    background: white;
    padding: 2px;
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
    font-family: 'Segoe UI', sans-serif;
}

.nav-links a:hover {
    color: #a8d08d;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Mappa Google Maps */
/* Sezione Mappa - Centrata e a tutta larghezza */
.map-section-full {
    background: #f5f5f5;
    padding: 4rem 2rem;
    text-align: center;
    width: 100%;
    max-width: none;
}

.map-section-full h2 {
    font-size: 3rem;
    color: #2d5016;
    margin-bottom: 3rem;
}

.map-container {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: 0;
    display: block;
}

.map-address {
    font-size: 1.2rem;
    color: #2d5016;
    font-weight: 600;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .map-container iframe {
        height: 300px;
    }

    .map-section-full h2 {
        font-size: 2.2rem;
    }
}

/* Fix video background - larghezza completa */
#home.hero {
    max-width: none !important;
    width: 100vw !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
}

@media (max-width: 768px) {
    .map-container iframe {
        height: 300px;
    }
}

/* Hero Section con Video */
.hero {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.video-background video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 80, 22, 0.6);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s backwards;
    font-family: 'Segoe UI', sans-serif;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: #4a7c2c;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: transform 0.3s, background 0.3s;
    animation: fadeInUp 1s ease 0.4s backwards;
    font-family: 'Segoe UI', sans-serif;
}

.btn:hover {
    background: #5d9639;
    transform: translateY(-3px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

h2 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #2d5016;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    color: #2d5016;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.gallery {
    background: #f5f5f5;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 300px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 2rem 1rem 1rem;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2d5016;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4a7c2c;
}

footer {
    background: #2d5016;
    color: white;
    padding: 3rem 2rem 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #a8d08d;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo-img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    border-radius: 50%;
    background: white;
    padding: 2px;
}

.footer-logo-text {
    font-weight: 700;
}

.footer-info p,
.footer-contact p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
    font-family: 'Segoe UI', sans-serif;
}

.footer-contact h4,
.footer-social h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #a8d08d;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 600;
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

.social-links a svg {
    width: 22px;
    height: 22px;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-5px);
}

.social-links a:hover svg {
    transform: scale(1.1);
}

.social-links a:nth-child(1):hover {
    background: #1877F2;
    box-shadow: 0 5px 15px rgba(24, 119, 242, 0.4);
}

.social-links a:nth-child(2):hover {
    background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF, #515BD4);
    box-shadow: 0 5px 15px rgba(221, 42, 123, 0.4);
}

.social-links a:nth-child(3):hover {
    background: #0A66C2;
    box-shadow: 0 5px 15px rgba(10, 102, 194, 0.4);
}

.social-links a:nth-child(4):hover {
    background: #FF0000;
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.4);
}

.social-links a:nth-child(5):hover {
    background: #25D366;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

/* Pulsante WhatsApp Floating */
.whatsapp-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    text-decoration: none;
    z-index: 999;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    padding: 0;
    overflow: hidden;
}

.whatsapp-button:hover {
    background: #20BA5A;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    width: 170px;
    padding: 0 20px 0 15px;
}

.whatsapp-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    transition: transform 0.3s ease;
}

.whatsapp-icon svg {
    width: 32px;
    height: 32px;
}

.whatsapp-button:hover .whatsapp-icon {
    transform: scale(1.1);
}

.whatsapp-text {
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    font-weight: bold;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    margin-left: 0;
}

.whatsapp-button:hover .whatsapp-text {
    opacity: 1;
    max-width: 100px;
    margin-left: 10px;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.8);
    }
}

.whatsapp-button {
    animation: pulse 2s infinite;
}

.whatsapp-button:hover {
    animation: none;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        left: -100%;
        flex-direction: column;
        background: #2d5016;
        width: 100%;
        padding: 2rem;
        transition: left 0.3s;
    }

    .nav-links.active {
        left: 0;
    }

    .logo-text {
        font-size: 1.3rem;
    }

    .logo-img {
        width: 40px;
        height: 40px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .about {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-info h3 {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .whatsapp-button {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
    }

    .whatsapp-icon {
        width: 28px;
        height: 28px;
    }

    .whatsapp-icon svg {
        width: 28px;
        height: 28px;
    }

    .whatsapp-button:hover {
        width: 56px;
        padding: 0;
        transform: scale(1.1);
    }

    .whatsapp-text {
        display: none;
    }
}
