@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&family=Quicksand:wght@500;600;700&display=swap');

:root {
    --primary-color: #3F6D4E;
    --primary-hover: #32583e;
    --secondary-color: #E08E45;
    --secondary-hover: #c97934;
    --bg-cream: #FAF8F5;
    --bg-card: #FFFFFF;
    --text-dark: #33302C;
    --text-muted: #6B655F;
    --accent-yellow: #D9A441;
    --accent-yellow-light: #FFF8E7;
    --border-light: #EFE7DA;
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --radius-pill: 50px;
    --shadow-soft: 0 10px 30px rgba(63, 109, 78, 0.08);
    --shadow-hover: 0 15px 35px rgba(63, 109, 78, 0.15);
    --font-heading: 'Quicksand', sans-serif;
    --font-body: 'Nunito', sans-serif;
    --mobile-bar-height: 68px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-cream);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-color);
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--secondary-hover);
}

/* ===========================
   Header & Navigation
   =========================== */
.header-sticky {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #FAF8F5;
    border-bottom: 2px solid var(--border-light);
    padding: 0.4rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(63, 109, 78, 0.06);
}

.logo-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.header-logo-img {
    height: 110px;
    max-height: 115px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.header-logo-img:hover {
    transform: scale(1.03);
}

/* Hamburger menu toggle (mobile only) */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}
.nav-toggle:hover { background: rgba(63,109,78,0.08); }
.nav-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    list-style: none;
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.98rem;
    padding: 0.45rem 0.7rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
    background: rgba(63, 109, 78, 0.08);
}

/* ===========================
   Buttons
   =========================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.6rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.btn-primary {
    background-color: var(--secondary-color);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(224, 142, 69, 0.35);
    color: #ffffff;
}

.btn-green {
    background-color: var(--primary-color);
    color: #ffffff;
}

.btn-green:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(63, 109, 78, 0.35);
    color: #ffffff;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    position: relative;
    padding: 5rem 2rem;
    background: linear-gradient(135deg, rgba(63,109,78,0.08) 0%, rgba(224,142,69,0.06) 100%);
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
    text-align: center;
    overflow: hidden;
}

.hero-content {
    max-width: 850px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.8rem;
    line-height: 1.25;
    margin-bottom: 1.25rem;
    color: var(--primary-color);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===========================
   Section Cards & Layout
   =========================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}

.cards-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 380px));
    gap: 2rem;
    justify-content: flex-start;
}

@media (max-width: 768px) {
    .cards-showcase-grid {
        grid-template-columns: 1fr;
    }
}

/* ===========================
   Cards
   =========================== */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 1.8rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: calc(var(--radius-md) - 6px);
    margin-bottom: 1.2rem;
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: 0.6rem;
    color: var(--primary-color);
}

.card-text {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 1.2rem;
    flex-grow: 1;
}

/* ===========================
   Badges
   =========================== */
.badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 700;
    background-color: var(--accent-yellow-light);
    color: #926715;
    border: 1px solid rgba(217, 164, 65, 0.3);
}

.badge-green {
    background-color: #2E7D32;
    color: #ffffff;
    border: none;
}

.badge-orange {
    background-color: #D84315;
    color: #ffffff;
    border: none;
}

.badge-date {
    background-color: rgba(216, 67, 21, 0.95);
    color: #ffffff !important;
    font-weight: 700;
    border: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.badge-category {
    background-color: rgba(46, 125, 50, 0.95);
    color: #ffffff !important;
    font-weight: 700;
    border: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* ===========================
   Forms & Inputs
   =========================== */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-sm);
    background: #ffffff;
    transition: border-color 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(63, 109, 78, 0.15);
}

/* ===========================
   Alerts
   =========================== */
.alert {
    padding: 1rem 1.2rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.alert-success {
    background-color: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #C8E6C9;
}

.alert-danger {
    background-color: #FFEBEE;
    color: #C62828;
    border: 1px solid #FFCDD2;
}

/* ===========================
   Tables
   =========================== */
.table-responsive {
    overflow-x: auto;
}

.table-custom {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.table-custom th, .table-custom td {
    padding: 1rem 1.2rem;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.table-custom th {
    background: rgba(63, 109, 78, 0.06);
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-weight: 700;
}

/* ===========================
   Footer
   =========================== */
footer {
    background-color: #2D4734;
    color: #E2ECE5;
    padding: 4rem 2rem 2rem;
    margin-top: 4rem;
}

/* Extra bottom padding on mobile to clear the sticky CTA bar */
@media (max-width: 768px) {
    footer {
        padding-bottom: calc(var(--mobile-bar-height) - 1rem);
    }
    .footer-bottom {
        margin-top: 1.5rem;
    }
    .footer-bottom p {
        margin-bottom: 0;
    }
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 3rem;
}

.footer-col h4 {
    color: var(--secondary-color);
    font-size: 1.25rem;
    margin-bottom: 1.2rem;
}

.footer-col p, .footer-col li {
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
    list-style: none;
}

.footer-logo-img {
    height: 85px;
    width: auto;
    object-fit: contain;
    background: #FAF8F5;
    padding: 8px 14px;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.18);
    display: inline-block;
    transition: transform 0.3s ease;
}

.footer-logo-img:hover {
    transform: scale(1.04);
}

.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.85rem;
    color: #A3B8AA;
}

/* ===========================
   Mobile Sticky CTA Bar
   (only on small screens, shown after scrolling)
   =========================== */
.mobile-cta-bar {
    display: none; /* hidden on desktop */
}

@media (max-width: 768px) {
    .mobile-cta-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 2000;
        background: #2D4734;
        border-top: 2px solid rgba(255,255,255,0.12);
        box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
        height: calc(var(--mobile-bar-height) + env(safe-area-inset-bottom, 0px));
        padding-bottom: env(safe-area-inset-bottom, 0px);
        transform: translateY(100%);
        transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        pointer-events: none;
    }

    .mobile-cta-bar.visible {
        transform: translateY(0);
        pointer-events: auto;
    }

    .mobile-cta-btn {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        text-decoration: none;
        font-family: var(--font-heading);
        font-weight: 700;
        font-size: 0.78rem;
        color: #ffffff;
        padding: 0.6rem 0.4rem;
        transition: background 0.2s;
        border: none;
        background: none;
        cursor: pointer;
    }

    .mobile-cta-btn:hover, .mobile-cta-btn:active {
        background: rgba(255,255,255,0.08);
        color: #ffffff;
    }

    .mobile-cta-btn .cta-icon {
        font-size: 1.5rem;
        line-height: 1;
    }

    .mobile-cta-separator {
        width: 1px;
        background: rgba(255,255,255,0.15);
        margin: 10px 0;
    }

    /* Push main body content above the bar when it's visible */
    body.bar-visible {
        padding-bottom: calc(var(--mobile-bar-height) + env(safe-area-inset-bottom, 0px));
    }
}

/* ===========================
   Responsive: Tablet & Mobile
   =========================== */
@media (max-width: 900px) {
    .header-sticky {
        padding: 0.4rem 1.2rem;
    }
    .grid-3 {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* Show hamburger, hide nav by default */
    .nav-toggle {
        display: flex;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #FAF8F5;
        border-bottom: 2px solid var(--border-light);
        box-shadow: 0 8px 20px rgba(63,109,78,0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
        z-index: 999;
    }

    nav.open {
        max-height: 600px;
    }

    .header-sticky {
        position: sticky;
        flex-wrap: wrap;
        padding: 0.4rem 1rem;
    }

    .nav-links {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.5rem 0;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        border-radius: 0;
        border-bottom: 1px solid var(--border-light);
    }

    .nav-links li:last-child a {
        border-bottom: none;
    }

    /* Reset button styles inside mobile nav to plain list items */
    .nav-links .btn,
    .nav-links .btn-sm,
    .nav-links .btn-primary,
    .nav-links .btn-outline,
    .nav-links .btn-green,
    .nav-links .badge-orange {
        all: unset;
        display: block;
        width: 100%;
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        font-family: var(--font-body);
        font-weight: 600;
        color: var(--text-dark);
        border-radius: 0;
        border-bottom: 1px solid var(--border-light);
        box-sizing: border-box;
        cursor: pointer;
        transition: background 0.2s, color 0.2s;
    }

    .nav-links .btn:hover,
    .nav-links .btn-sm:hover,
    .nav-links .btn-primary:hover,
    .nav-links .btn-outline:hover,
    .nav-links .btn-green:hover,
    .nav-links .badge-orange:hover {
        background: rgba(63, 109, 78, 0.08);
        color: var(--primary-color);
        transform: none;
        box-shadow: none;
    }

    .header-logo-img {
        height: 80px;
    }

    .hero {
        padding: 3rem 1.2rem;
    }

    .hero h1 {
        font-size: 1.9rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 320px;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .container {
        padding: 2rem 1rem;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 1.4rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .header-logo-img {
        height: 68px;
    }
    .hero h1 {
        font-size: 1.6rem;
    }
    .btn {
        font-size: 0.95rem;
        padding: 0.65rem 1.2rem;
    }
}

/* ===========================
   Back-to-top Button
   =========================== */
#backToTop {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1500;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(63, 109, 78, 0.4);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

#backToTop.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

#backToTop:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(63, 109, 78, 0.45);
}

/* On mobile: keep it in the top-right, below the sticky header, so it
   never overlaps the bottom CTA bar (mobile browsers change the visible
   viewport height when their bottom toolbar appears/disappears, which
   made a bottom-anchored button jump over the "Chiama" button) */
@media (max-width: 768px) {
    #backToTop {
        display: none !important;
    }
}

/* btn-green (WhatsApp CTA) */
.btn-green {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #25D366;
    color: #fff;
    border: none;
    border-radius: var(--radius-pill);
    padding: 0.75rem 1.8rem;
    font-weight: 700;
    font-family: var(--font-body);
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 18px rgba(37,211,102,0.28);
}
.btn-green:hover {
    background: #1db954;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37,211,102,0.38);
}

/* =====================================================
   Interactive 3D Dog Park Section
   ===================================================== */
.park3d-section {
    position: relative;
    height: 500vh;
    background: #cfe8f5;
}

.park3d-sticky {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

#park3d-canvas-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#park3d-canvas-wrap canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.park3d-hud {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.park3d-panel {
    position: absolute;
    left: 6%;
    top: 50%;
    transform: translateY(-50%) translateX(-20px);
    max-width: 440px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
    background: rgba(255, 255, 255, 0.90);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2.2rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 40px rgba(45, 71, 52, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.park3d-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

.park3d-panel .eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ffffff;
    background: var(--primary-color);
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    margin-bottom: 1rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(63, 109, 78, 0.25);
}

.park3d-panel h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin: 0 0 0.8rem 0;
    color: var(--primary-dark);
    line-height: 1.15;
    font-weight: 800;
}

.park3d-panel p {
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
    color: var(--text-color);
}

.park3d-panel .cta {
    margin-top: 1.4rem;
    pointer-events: auto;
    display: inline-block;
}

/* Leash progress rail */
.park3d-rail {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: auto;
}

.park3d-rail .line {
    width: 3px;
    height: 220px;
    background: rgba(63, 109, 78, 0.2);
    position: relative;
    border-radius: 3px;
}

.park3d-rail .fill {
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    background: var(--secondary-color);
    height: 0%;
    transition: height 0.1s linear;
    border-radius: 3px;
    box-shadow: 0 0 8px rgba(217, 138, 61, 0.6);
}

.park3d-rail .dots {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    width: 3px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.park3d-rail .dot {
    width: 14px;
    height: 14px;
    margin-left: -5.5px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid rgba(63, 109, 78, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.park3d-rail .dot.active {
    background: var(--secondary-color);
    border-color: #ffffff;
    transform: scale(1.25);
    box-shadow: 0 0 0 5px rgba(217, 138, 61, 0.3);
}

.park3d-hint {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    color: var(--primary-dark);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: center;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    padding: 0.6rem 1.4rem;
    border-radius: 999px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    opacity: 1;
    transition: opacity 0.4s ease;
}

.park3d-hint .arrow {
    display: block;
    margin: 0.4rem auto 0;
    width: 10px;
    height: 10px;
    border-right: 2.5px solid var(--primary-dark);
    border-bottom: 2.5px solid var(--primary-dark);
    transform: rotate(45deg);
    animation: parkBob 1.6s ease-in-out infinite;
}

@keyframes parkBob {
    0%, 100% { transform: translateY(0) rotate(45deg); }
    50% { transform: translateY(6px) rotate(45deg); }
}

@media (max-width: 768px) {
    .park3d-sticky {
        height: 100vh;
        height: 100dvh;
    }

    .park3d-panel {
        left: 4%;
        right: 4%;
        max-width: none;
        top: auto;
        bottom: 6%;
        transform: translateY(20px);
        padding: 1.25rem 1.4rem;
        background: rgba(255, 255, 255, 0.45) !important;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.3);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
    .park3d-panel.active {
        transform: translateY(0);
    }

    /* Box in alto */
    .park3d-panel[data-i="0"],
    .park3d-panel[data-i="1"],
    .park3d-panel[data-i="2"],
    .park3d-panel[data-i="4"],
    .park3d-panel[data-i="5"] {
        top: 10% !important;
        bottom: auto !important;
    }

    /* Ultima scheda "Vieni a trovarci" bianca e solida */
    .park3d-panel[data-i="7"] {
        background: #fff !important;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    .park3d-panel .eyebrow {
        font-size: 0.72rem;
        padding: 0.3rem 0.7rem;
        margin-bottom: 0.6rem;
    }
    .park3d-panel h2 {
        font-size: 1.5rem;
        margin-bottom: 0.4rem;
    }
    .park3d-panel p {
        font-size: 0.92rem;
        line-height: 1.45;
    }
    .park3d-panel .cta {
        margin-top: 0.9rem;
        padding: 0.65rem 1.2rem;
        font-size: 0.9rem;
        width: 100%;
        text-align: center;
    }

    /* Mobile progress dots bar */
    .park3d-mobile-rail {
        display: flex;
        position: absolute;
        top: 16px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 10;
        gap: 8px;
        background: rgba(45, 71, 52, 0.8);
        backdrop-filter: blur(8px);
        padding: 6px 14px;
        border-radius: 999px;
        pointer-events: auto;
    }
    .park3d-mobile-dot {
        width: 9px;
        height: 9px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.4);
        transition: all 0.3s ease;
        cursor: pointer;
    }
    .park3d-mobile-dot.active {
        background: var(--secondary-color);
        transform: scale(1.35);
        box-shadow: 0 0 8px var(--secondary-color);
    }

    .park3d-hint {
        display: none;
    }
}

/* btn-green (WhatsApp CTA) */
.btn-green {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #25D366;
    color: #fff;
    border: none;
    border-radius: var(--radius-pill);
    padding: 0.75rem 1.8rem;
    font-weight: 700;
    font-family: var(--font-body);
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 18px rgba(37,211,102,0.28);
}
.btn-green:hover {
    background: #1db954;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37,211,102,0.38);
}

/* ===========================
   Cookie Banner (GDPR Modern Card)
   =========================== */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9999;
    max-width: 440px;
    width: calc(100% - 48px);
    transform: translateY(150%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, bottom 0.4s ease;
}

.cookie-banner.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.cookie-card {
    background: linear-gradient(145deg, rgba(20, 32, 24, 0.95), rgba(12, 22, 16, 0.98));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(78, 140, 96, 0.35);
    border-radius: 20px;
    padding: 1.4rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    color: #E2ECE5;
}

.cookie-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cookie-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(78, 140, 96, 0.2);
    border: 1px solid rgba(78, 140, 96, 0.4);
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
}

.cookie-icon {
    font-size: 1rem;
}

.cookie-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
}

.cookie-close-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.2rem 0.4rem;
    border-radius: 6px;
    transition: color 0.2s ease, background 0.2s ease;
}

.cookie-close-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.cookie-body p {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.5;
    color: #c9d8ce;
}

.cookie-body a {
    color: var(--secondary-color, #E28D38);
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.2s;
}

.cookie-body a:hover {
    color: #fff;
}

.cookie-actions {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.2rem;
}

.cookie-btn-accept {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #3f6d4e 0%, #2f523a 100%);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.75rem 1.2rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(47, 82, 58, 0.4);
    transition: all 0.25s ease;
}

.cookie-btn-accept:hover {
    background: linear-gradient(135deg, #4b825d 0%, #376044 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(47, 82, 58, 0.6);
}

@media (max-width: 768px) {
    .cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 16px;
        width: calc(100% - 24px);
        max-width: none;
    }
    body.bar-visible .cookie-banner {
        bottom: calc(var(--mobile-bar-height, 60px) + 16px + env(safe-area-inset-bottom, 0px));
    }
    .cookie-card {
        padding: 1.1rem;
        border-radius: 18px;
    }
    .cookie-body p {
        font-size: 0.82rem;
        line-height: 1.45;
    }
    .cookie-btn-accept {
        padding: 0.7rem 1rem;
        font-size: 0.88rem;
    }
}

/* ===========================
   Dog Guide Bubble 3D
   =========================== */
.dog-guide-bubble {
  position: fixed;
  bottom: 32px;
  left: 32px;
  max-width: 260px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.96);
  color: #2c3e2d;
  font-size: 0.95rem;
  line-height: 1.45;
  border-radius: 18px;
  border-bottom-left-radius: 4px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12), 0 0 0 1.5px rgba(63,109,78,0.08);
  z-index: 90;
  pointer-events: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.dog-guide-bubble.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (max-width: 768px) {
  .dog-guide-bubble {
    bottom: 20px;
    left: 20px;
    max-width: 200px;
    font-size: 0.85rem;
    padding: 10px 14px;
  }
}
