:root {
    /* Color Palette - Farmacia Prima Scelta Brand */
    --brand-primary: #1AB3A6;
    --brand-primary-dark: #158b81;
    --brand-secondary: #3CBFB3;
    --brand-green: #7DD957;
    --brand-accent: #52C9BC;
    
    --bg-main: #ffffff;
    --bg-soft: #f8f9fa;
    --bg-card: #ffffff;
    --bg-light-teal: #f0faf9;
    
    --primary: var(--brand-primary);
    --primary-dark: var(--brand-primary-dark);
    --accent: var(--brand-green);
    
    --text-main: #202124;
    --text-muted: #5f6368;
    --text-light: #ffffff;
    
    --border: #dadce0;
    --shadow-soft: 0 2px 6px 0 rgba(0,0,0,0.05);
    --shadow-medium: 0 4px 12px 0 rgba(0,0,0,0.1);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 8px;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 8rem 0;
}

.bg-soft {
    background-color: var(--bg-soft);
}

/* Typography Extensions */
.text-center { text-align: center; }
.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}
.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 4rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary);
    color: var(--text-light);
    box-shadow: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15);
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 1px 3px 0 rgba(60,64,67,0.3), 0 4px 8px 3px rgba(60,64,67,0.15);
}

.btn-outline {
    border: 1px solid var(--border);
    color: var(--primary);
    background: var(--white);
}

.btn-outline:hover {
    background: var(--bg-soft);
    border-color: var(--primary);
}

/* UI Elements */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-medium);
    border-color: transparent;
}

.tag {
    display: inline-block;
    padding: 0.25rem 1rem;
    background: rgba(26, 179, 166, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

/* Images */
.img-responsive {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
}

/* Dashboard UI Component */
.dashboard-ui {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    text-align: left;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--bg-soft);
    padding-bottom: 1rem;
}

.dashboard-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
}

.dashboard-brand-pill {
    background: #e8f7f5;
    color: var(--brand-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}

.stat-main {
    margin-bottom: 2rem;
}

.stat-value-big {
    font-size: 4rem;
    font-weight: 800;
    color: var(--brand-green);
    line-height: 1;
}

.stat-label-big {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 600;
}

.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.stat-item-small {
    padding-top: 1rem;
    border-top: 1px solid var(--bg-soft);
}

.stat-value-small {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.chart-placeholder {
    height: 60px;
    background: linear-gradient(90deg, transparent 0%, rgba(125, 217, 87, 0.1) 50%, transparent 100%);
    margin-top: 1rem;
    border-radius: 4px;
    position: relative;
}


.chart-placeholder::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--brand-green);
}

/* Certifications */
.certifications-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.cert-logo {
    height: 80px;
    width: auto;
    opacity: 0.9;
    transition: var(--transition);
    filter: grayscale(20%);
}

.cert-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* Partners Slider */
.partners-section {
    margin-top: 5rem;
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
}

.slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slider-track {
    display: flex;
    width: calc(250px * 14); /* Estimate width, will scroll indefinitely */
    animation: scroll 40s linear infinite;
}

.slide {
    width: 250px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
}

.slide img {
    max-width: 100%;
    max-height: 80px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition);
}

.slide img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 7)); } /* Scroll half if duplicated */
}

/* Pause animation on hover */
.slider-container:hover .slider-track {
    animation-play-state: paused;
}

/* Contact Form Styles (Moved from footer.php) */
.site-footer {
    padding: 8rem 0 4rem;
    border-top: 1px solid var(--border);
}

.cta-wrapper {
    max-width: 800px;
    margin: 0 auto 6rem;
}

.audit-form {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08); /* Smoother shadow */
    margin-top: 3rem;
    border: 1px solid rgba(0,0,0,0.02);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem; /* Slightly more gap */
}

.audit-form input {
    width: 100%; /* Ensure full width */
    padding: 1.1rem 1.5rem;
    background-color: var(--bg-soft); /* Light grey background */
    border: 1px solid transparent; /* Cleaner look */
    border-radius: 12px; /* Softer corners */
    font-size: 1rem;
    color: var(--text-main);
    outline: none;
    transition: all 0.2s ease;
    font-family: inherit;
}

.audit-form input::placeholder {
    color: #9aa0a6;
}

.audit-form input:hover {
    background-color: #f1f3f4;
}

.audit-form input:focus {
    background-color: #ffffff;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 4px rgba(26, 179, 166, 0.15);
}

.audit-form .btn {
    grid-column: span 2;
    margin-top: 1rem;
    width: 100%;
    padding: 1.1rem;
    font-size: 1.1rem;
}

#form-feedback {
    padding: 1.25rem;
    border-radius: 12px;
    font-weight: 600;
    text-align: center;
}

#form-feedback.success {
    background: rgba(125, 217, 87, 0.1);
    color: var(--brand-green);
    border: 1px solid rgba(125, 217, 87, 0.2);
}

#form-feedback.error {
    background: rgba(234, 67, 53, 0.1);
    color: #ea4335;
    border: 1px solid rgba(234, 67, 53, 0.2);
}

.footer-legal {
    border-top: 1px solid var(--border);
    padding-top: 3rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-legal .brand {
    margin-bottom: 1.5rem;
    filter: grayscale(1);
    opacity: 0.6;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    .audit-form .btn {
        grid-column: span 1;
    }
    .audit-form {
        padding: 2rem 1.5rem; /* Less padding on mobile */
    }
}


/* Default: Hide Mobile Elements on Desktop */
.mobile-toggle, .mobile-menu {
    display: none;
}

/* Mobile Menu & Responsive Header Overrides */
@media (max-width: 900px) {
    .desktop-nav, .header-cta.desktop-only {
        display: none !important;
    }
    
    /* Hamburger Icon */
    .mobile-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1002;
    }
    
    .mobile-toggle .bar {
        width: 100%;
        height: 3px;
        background: var(--text-main);
        border-radius: 3px;
        transition: var(--transition);
        transform-origin: left;
    }
    
    /* Toggle Animation */
    .mobile-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg);
    }
    .mobile-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .mobile-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg);
    }
    
    /* Mobile Menu Overlay */
    .mobile-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(15px);
        z-index: 1001;
        transition: 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        box-shadow: -5px 0 15px rgba(0,0,0,0.05);
    }
    
    .mobile-menu.active {
        right: 0;
    }
    
    .mobile-nav-links {
        list-style: none;
        text-align: center;
        display: flex;
        flex-direction: column;
        gap: 2rem;
        padding: 0;
    }
    
    .mobile-nav-links a {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--text-main);
        text-decoration: none;
    }
    
    .mobile-nav-links .mobile-cta {
        margin-top: 1rem;
        color: var(--text-light);
        display: inline-flex;
    }
}
