/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #fffaef;
    --color-accent: #4d6345;
    --color-accent-light: #5e7a54;
    --color-accent-dark: #3b4d34;
    --color-text: #2c2c2c;
    --color-text-light: #5a5a5a;
    --color-white: #ffffff;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --radius: 12px;
    --transition: 0.3s ease;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 250, 239, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(77, 99, 69, 0.08);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 100px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text);
    transition: color var(--transition);
    position: relative;
}

.nav-links a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition);
}

.nav-links a:not(.nav-cta):hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--color-accent);
}

.nav-cta {
    background: var(--color-accent);
    color: var(--color-white) !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    transition: background var(--transition), transform var(--transition);
}

.nav-cta:hover {
    background: var(--color-accent-dark);
    transform: translateY(-1px);
}

.nav-cta::after {
    display: none !important;
}

.nav-socials {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: 8px;
    flex-shrink: 0;
}

.nav-social {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    transition: color var(--transition), transform var(--transition);
}

.nav-social svg,
.floating-cta svg {
    display: block;
}

.nav-social:hover {
    color: var(--color-accent);
    transform: scale(1.15);
}

.nav-social-whatsapp:hover {
    color: #25d366;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-white);
    border-color: var(--color-accent);
}

.btn-primary:hover {
    background: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(77, 99, 69, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--color-accent);
    border-color: var(--color-accent);
}

.btn-secondary:hover {
    background: var(--color-accent);
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.1rem;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-bg) 0%, #f0ead6 50%, #e8e0c8 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(77, 99, 69, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(77, 99, 69, 0.06) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-logo {
    display: block;
    height: 202px;
    width: auto;
    margin: 0 auto 24px;
    animation: fadeInDown 0.8s ease-out;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.2rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--color-text);
}

.hero h1 .accent {
    color: var(--color-accent);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    color: var(--color-text-light);
    margin-bottom: 40px;
    font-weight: 300;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== SECTIONS ===== */
.section {
    padding: 100px 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: var(--color-text);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--color-accent);
    margin: 16px auto 0;
    border-radius: 2px;
}

/* ===== CHI SIAMO ===== */
.chi-siamo {
    background: var(--color-white);
}

.chi-siamo-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
}

.chi-siamo-text p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: var(--color-text-light);
}

.chi-siamo-text p strong {
    color: var(--color-text);
}

.chi-siamo-stats {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.stat {
    text-align: center;
    padding: 28px;
    background: var(--color-bg);
    border-radius: var(--radius);
    border: 1px solid rgba(77, 99, 69, 0.1);
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1.2;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-top: 4px;
}

/* ===== SERVIZI ===== */
.servizi {
    background: var(--color-bg);
}

.servizi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.servizio-card {
    background: var(--color-white);
    padding: 0;
    border-radius: var(--radius);
    border: 1px solid rgba(77, 99, 69, 0.08);
    transition: all var(--transition);
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.servizio-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(77, 99, 69, 0.2);
}

.servizio-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.servizio-card:hover .servizio-img {
    transform: scale(1.08);
}

.servizio-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--color-text);
    padding: 24px 32px 0;
}

.servizio-card p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.6;
    padding: 12px 32px 24px;
    margin: 0;
}

.servizio-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--color-text);
}

.servizio-card p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* ===== PERCHE SCEGLIERCI ===== */
.perche {
    background: var(--color-accent);
    color: var(--color-white);
}

.perche .section-title {
    color: var(--color-white);
}

.perche .section-title::after {
    background: rgba(255, 255, 255, 0.5);
}

.perche-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.perche-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 28px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: background var(--transition);
}

.perche-item:hover {
    background: rgba(255, 255, 255, 0.18);
}

.perche-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    color: rgba(255, 255, 255, 0.9);
}

.perche-icon svg {
    width: 100%;
    height: 100%;
}

.perche-item h3 {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 500;
}

/* ===== GALLERIA ===== */
.galleria {
    background: var(--color-white);
}

.galleria-desc {
    text-align: center;
    color: var(--color-text-light);
    margin-top: -40px;
    margin-bottom: 48px;
    font-size: 1.05rem;
}

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

.galleria-item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
}

.galleria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.galleria-item:hover img {
    transform: scale(1.05);
}

.galleria-overlay {
    position: absolute;
    inset: 0;
    background: rgba(77, 99, 69, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
}

.galleria-item:hover .galleria-overlay {
    opacity: 1;
}

.galleria-overlay span {
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
}

/* ===== CTA FINALE ===== */
.cta-finale {
    background: linear-gradient(135deg, var(--color-bg) 0%, #f0ead6 100%);
    text-align: center;
    padding: 120px 0;
}

.cta-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 600;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.4;
    color: var(--color-text);
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== FOOTER ===== */
.footer {
    background: #2a3326;
    color: rgba(255, 255, 255, 0.85);
    padding-top: 64px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 12px;
}

.footer-logo-img {
    height: 60px;
    width: auto;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    font-size: 0.92rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 20px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col ul li {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
}

.footer-col ul li svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.4);
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition);
}

.footer-col ul li a:hover {
    color: var(--color-white);
}

.footer-bottom {
    padding: 20px 0;
}

.footer-bottom p {
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ===== FLOATING CTA ===== */
.floating-cta {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
    transition: all var(--transition);
    z-index: 999;
}

.floating-cta:hover {
    background: #1ebe5b;
    transform: scale(1.1);
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .chi-siamo-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .chi-siamo-stats {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .stat {
        flex: 1;
        min-width: 180px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        gap: 12px;
    }

    .logo-img {
        height: 82px;
    }

    .nav-socials {
        order: 2;
        margin-left: auto;
        gap: 10px;
    }

    .nav-social svg {
        width: 22px;
        height: 22px;
    }

    .nav-toggle {
        display: flex;
        order: 3;
        flex-shrink: 0;
    }

    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(255, 250, 239, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 32px 24px;
        gap: 24px;
        transform: translateY(-120%);
        transition: transform var(--transition);
        box-shadow: var(--shadow-md);
        z-index: 998;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .hero {
        min-height: 90vh;
        padding-top: 72px;
    }

    .section {
        padding: 72px 0;
    }

    .servizi-grid {
        grid-template-columns: 1fr;
    }

    .galleria-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .cta-finale {
        padding: 80px 0;
    }
}

@media (max-width: 480px) {
    .nav-container {
        gap: 10px;
    }

    .logo-img {
        height: 74px;
    }

    .nav-socials {
        gap: 8px;
    }

    .nav-social svg {
        width: 20px;
        height: 20px;
    }

    .floating-cta {
        width: 56px;
        height: 56px;
        right: 18px;
        bottom: 18px;
    }

    .floating-cta svg {
        width: 26px;
        height: 26px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .galleria-grid {
        grid-template-columns: 1fr;
    }

    .chi-siamo-stats {
        flex-direction: column;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
    }
}
