/* Global Styles & Variables */
:root {
    --primary-color: #3FB7AE;
    /* Teal from Logo */
    --primary-dark: #2a8a83;
    /* Darker Teal */
    --secondary-color: #3FB7AE;
    /* Unified Accent */
    --secondary-dark: #2a8a83;
    --text-color: #333;
    --light-gray: #f8f9fa;
    --white: #ffffff;
    --border-radius: 8px;
    --font-family: 'Manrope', sans-serif;
    --transition-speed: 0.3s;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: background-color var(--transition-speed), transform 0.2s;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mb-3 {
    margin-bottom: 3rem;
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo img {
    height: 62.5px;
    /* Adjust based on actual logo aspect ratio */
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-color);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.navbar .btn-primary {
    padding: 10px 20px;
    /* Reduced padding to match logo height */
    font-size: 0.95rem;
}

.mobile-menu-btn {
    display: none;
}

/* Hero Section */
.hero {
    padding: 160px 0;
    /* Increased padding for better visual */
    background-image: url('../assets/hero-bg.png');
    /* Dog and Cat */
    background-attachment: scroll;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Dark overlay for readability */
    z-index: 1;
}

.hero .container {
    display: block;
    /* Switch from grid to block for centered/focused content */
    max-width: 800px;
    /* Limit width */
    margin: 0 auto;
    text-align: center;
    z-index: 2;
    position: relative;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.35rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Services Preview */
.services-preview {
    padding: 80px 0;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.section-subtitle {
    color: #666;
    max-width: 600px;
    margin: 0 auto 50px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 0;
    /* Remove padding to let image fill header */
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    overflow: hidden;
    /* Ensure image clips */
}

/* .service-card:hover removed to prevent confusion with clickable elements */

.service-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-content {
    padding: 30px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* Features/About Snippet */
.features-section {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.feature-item h3 {
    margin-top: 15px;
    margin-bottom: 10px;
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: #ccc;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 0.9rem;
}

/* Footer Legal Info Redesign */
.footer-legal {
    text-align: center;
    font-size: 0.8rem;
    color: #888;
    margin-top: 20px;
}

.legal-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    line-height: 1.8;
}

.legal-info span {
    display: inline-flex;
    align-items: center;
}

.legal-info .separator {
    color: #444;
    font-weight: 300;
}

@media (max-width: 992px) {
    .legal-info {
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .legal-info {
        flex-direction: column;
        gap: 8px;
    }

    .legal-info .separator {
        display: none;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    /* Hide desktop CTA on mobile to save space */
    .navbar .btn-primary {
        display: none;
    }

    .navbar .nav-links {
        display: none;
        position: absolute;
        top: 81px;
        /* Match header height + 1px border/shadow */
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: var(--white);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        gap: 0;
    }

    .navbar .nav-links.active {
        display: flex;
    }

    .navbar .nav-links a {
        padding: 15px 20px;
        border-bottom: 1px solid #f0f0f0;
        display: block;
        width: 100%;
        text-align: center;
    }

    .navbar {
        position: relative;
        justify-content: flex-end;
    }

    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .mobile-menu-btn {
        display: block;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 10px;
        /* Touch target size */
        z-index: 1001;
        /* Ensure above absolute nav if needed */
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
}

/* Pricing / Plans Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: start;
}

.pricing-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    text-align: center;
    position: relative;
    transition: transform var(--transition-speed);
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.pricing-card.featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(63, 183, 174, 0.15);
    /* Updated shadow color to match teal */
    z-index: 2;
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.plan-price span {
    font-size: 1rem;
    color: #666;
    font-weight: 400;
}

.plan-features {
    list-style: none;
    margin-bottom: 30px;
    text-align: left;
}

.plan-features li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    color: #555;
}

.plan-features li .material-icons-outlined {
    color: var(--secondary-color);
    margin-right: 10px;
    font-size: 1.2rem;
    margin-top: 2px;
}

.recommended-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Contact Icons Branding */
.contact-icon-row {
    display: flex;
    /* Cambiato in flex per forzare il ritorno a capo */
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    /* Aumentato il margine inferiore tra le righe */
}

.contact-icon-svg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.contact-icon-svg svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

/* Specific Colors */
.whatsapp-color {
    color: #25D366;
}

.landline-color {
    color: #555;
    opacity: 0.7;
}

/* Footer Specific Overrides */
footer .contact-icon-svg,
footer .material-icons-outlined {
    color: white !important;
    /* Forza il bianco nel footer */
    opacity: 1 !important;
}

footer .whatsapp-color {
    color: white !important;
    /* Anche WhatsApp bianca nel footer per coerenza */
}

/* Contact Links */
.contact-link {
    color: inherit;
    text-decoration: underline;
    /* Forza la visualizzazione come link cliccabile */
    transition: color var(--transition-speed);
}

.contact-link:hover {
    color: var(--primary-color);
}

/* Cookie Banner */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    padding: 20px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    transform: translateY(100%);
    animation: slideUp 0.5s forwards;
    transition: opacity 0.5s ease;
}

@keyframes slideUp {
    to {
        transform: translateY(0);
    }
}

#cookie-banner .cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

#cookie-banner p {
    flex: 1;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: white;
}

#cookie-banner .cookie-buttons {
    display: flex;
    gap: 15px;
}

@media (max-width: 768px) {
    #cookie-banner .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    #cookie-banner .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
}

/* Facility Intro Section */
.facility-intro {
    padding: 100px 0;
    background-color: #F9FAFB;
}

.facility-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.facility-intro-content .section-title {
    text-align: left;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.facility-intro-content p {
    font-size: 1.15rem;
    color: #555;
    margin-bottom: 30px;
}

.facility-features {
    list-style: none;
    padding: 0;
}

.facility-features li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--text-color);
}

.facility-features .material-icons-outlined {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.facility-intro-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

@media (max-width: 992px) {
    .facility-intro-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .facility-intro {
        padding: 60px 0;
    }

    .facility-intro-image img {
        height: 400px;
    }

    .facility-intro-content {
        order: 2;
    }

    .facility-intro-image {
        order: 1;
    }
}

/* Centering the 7th card on desktop */
@media (min-width: 992px) {
    .services-grid .service-card-centered {
        grid-column: 2;
    }
}

/* Specific Service Lists */
.service-details-list {
    color: #555;
    line-height: 1.6;
    list-style: none;
    padding-left: 0;
}

.service-details-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
}

.service-details-list li .material-icons-outlined {
    flex-shrink: 0;
    font-size: 20px;
    color: var(--secondary-color);
    margin-right: 12px;
    margin-top: 4px;
}