/* Base Variables */
:root {
    --primary-color: #2E8B57; /* Sea Green - Affidabile, legato a salute */
    --primary-light: #54B47E;
    --primary-dark: #1E663F;
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #FFFFFF;
    --bg-light: #F7F9F8;
    --border-color: #E0E0E0;
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
    --transition: all 0.3s ease;
    --shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    color: var(--text-color);
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

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

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-small {
    max-width: 800px;
    margin: 0 auto;
}

.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 2rem;
}

.grid {
    display: grid;
    gap: 30px;
}

.col-2 {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 768px) {
    .col-2 {
        grid-template-columns: 1fr;
    }
}

.align-center {
    align-items: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-family: var(--font-primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 139, 87, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Navbar Sticky */
.navbar {
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links a {
    font-weight: 600;
    color: var(--text-color);
    font-family: var(--font-primary);
    font-size: 0.95rem;
}

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

.nav-links .btn-nav {
    background-color: var(--primary-color);
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
}

.nav-links .btn-nav:hover {
    background-color: var(--primary-dark);
}

@media (max-width: 900px) {
    .nav-links {
        display: none; /* Inferred single menu via hamburger for mobile omitted for extreme simplicity, or can be adjusted */
    }
}

/* Hero Section */
.hero {
    position: relative;
    padding: 150px 0;
    background: url('2026 Studio Veterinario small (1).png') center/cover no-repeat;
    color: #fff;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(46, 139, 87, 0.4));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 20px;
}

.hero .sub-headline {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 30px;
    color: #f1f1f1;
}

@media (max-width: 768px) {
    .hero {
        padding: 100px 0;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
}

/* Mission Section */
.mission-image {
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin: 30px auto 0;
}

/* Service Cards */
.card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Perche Noi */
.perche-noi .quote {
    font-size: 1.4rem;
    font-style: italic;
    color: var(--primary-color);
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
    margin: 20px 0 30px;
}

.features-list {
    list-style: none;
}

.features-list li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
}

.features-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.rounded {
    border-radius: 12px;
}
.shadow {
    box-shadow: var(--shadow);
}

/* CTA Section */
.cta {
    background-color: var(--primary-color);
    color: #fff;
}

.cta h2 {
    color: #fff;
}

.cta .btn-outline {
    border-color: #fff;
    color: #fff;
}
.cta .btn-outline:hover {
    background-color: #fff;
    color: var(--primary-color);
}

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

.cta .btn-primary {
    background-color: #fff;
    color: var(--primary-color);
}
.cta .btn-primary:hover {
    background-color: var(--bg-light);
}

/* FAQ */
.faq-accordion {
    margin-top: 30px;
}

.faq-item {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    margin: 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-color);
}

.faq-item.active .faq-question::after {
    content: '−';
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 500px;
}

/* Footer */
.footer {
    background-color: #222;
    color: #aaa;
    padding: 40px 0 20px;
    font-size: 0.9rem;
}

.footer-legal {
    margin-top: 15px;
    font-size: 0.8rem;
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary-color);
    text-decoration: underline;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
}
.btn-link:hover {
    color: var(--primary-light);
}

/* Modale */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.modal-content {
    background-color: #fff;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.close-modal {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    line-height: 1;
}

.close-modal:hover {
    color: red;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    font-size: 0.95rem;
}

.modal-body h4 {
    margin-top: 20px;
    color: var(--primary-dark);
}

.modal-body ul {
    margin-left: 20px;
    margin-bottom: 15px;
}
