/* -------------------------------------------------------------------------- */
/*                                 VARIABLES                                  */
/* -------------------------------------------------------------------------- */
:root {
    /* Colors */
    --color-primary: #3A5A40;
    /* Deep Green */
    --color-primary-light: #588157;
    --color-secondary: #DAD7CD;
    /* Sage/Beige */
    --color-accent: #A3B18A;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-white: #ffffff;
    --color-off-white: #f9f9f9;
    --color-bg-alt: #f3f4f1;

    /* Typography */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-smooth: 0.6s cubic-bezier(0.25, 1, 0.5, 1);

    /* Shadows */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
}

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

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

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

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

ul {
    list-style: none;
}

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

/* -------------------------------------------------------------------------- */
/*                                 TYPOGRAPHY                                 */
/* -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: 4rem;
    font-weight: 700;
    color: var(--color-primary);
}

h2 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-primary);
}

h3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-light);
    font-size: 1.05rem;
    /* Slightly larger for better readability */
    line-height: 1.7;
}

.section-title {
    text-align: center;
    position: relative;
    padding-bottom: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-accent);
}

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

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

.subtitle {
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.1rem;
    /* Increased from 0.9rem to be > p (1rem) but < h2 */
    color: var(--color-primary-light);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* -------------------------------------------------------------------------- */
/*                                   LAYOUT                                   */
/* -------------------------------------------------------------------------- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section {
    padding: var(--spacing-xl) 0;
}

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

/* -------------------------------------------------------------------------- */
/*                                 COMPONENTS                                 */
/* -------------------------------------------------------------------------- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: 2px solid var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-primary-light);
    border-color: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    margin-left: var(--spacing-sm);
}

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

.btn-white {
    background-color: var(--color-white);
    color: var(--color-primary);
    border: 2px solid var(--color-white);
}

.btn-white:hover {
    background-color: transparent;
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-outline-white {
    background-color: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
    margin-left: var(--spacing-sm);
}

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

/* -------------------------------------------------------------------------- */
/*                                   HEADER                                   */
/* -------------------------------------------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 0.5rem 0;
    transition: padding var(--transition-fast);
}

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

/* Logo Styles */
.logo {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    /* Increased to balance with larger logo */
    font-weight: 700;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
    /* Prevent logo from shrinking and overlapping */
}

.logo img {
    height: 120px;
    /* Increased size by another 50% */
    width: auto;
    transition: height var(--transition-fast);
}

.logo span {
    color: var(--color-accent);
}

/* Navigation Styles */
.nav-list {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
    transition: gap var(--transition-fast);
}

.nav-list li {
    list-style: none;
    /* Ensure no bullets */
}

.nav-link {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--color-text);
    position: relative;
    text-decoration: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--color-primary);
    transition: width var(--transition-fast);
}

.nav-link:hover::after {
    width: 100%;
}

.btn-contact {
    background-color: var(--color-primary);
    color: white !important;
    padding: 8px 20px;
    border-radius: 30px;
    transition: background-color var(--transition-fast);
}

.btn-contact:hover {
    background-color: var(--color-primary-light);
    color: white !important;
}

.btn-contact::after {
    display: none;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-primary);
    position: relative;
    z-index: 1100;
}

/* -------------------------------------------------------------------------- */
/*                                    HERO                                    */
/* -------------------------------------------------------------------------- */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: flex-start;
    /* Move content to top */
    padding-top: 240px;
    /* Adjust vertical position manually */
    background-color: var(--color-off-white);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1544367563-12123d8959d9?q=80&w=2070&auto=format&fit=crop');
    /* Valid Unsplash Image */
    background-size: cover;
    background-position: center;
    clip-path: polygon(20% 0%, 100% 0, 100% 100%, 0% 100%);
    opacity: 0.9;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    width: 90%;
}

.eyebrow {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-primary-light);
    font-weight: 600;
    display: block;
    margin-bottom: var(--spacing-xs);
}

.hero p {
    font-size: 1.2rem;
    max-width: 500px;
    margin-bottom: var(--spacing-md);
}

/* -------------------------------------------------------------------------- */
/*                                  CHI SONO                                  */
/* -------------------------------------------------------------------------- */
.about-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    /* Image takes less space (40%), Text takes more (60%) */
    gap: var(--spacing-xl);
    align-items: center;
}

.img-frame {
    position: relative;
    /* Removed padding and border for clean look */
}

.img-frame img {
    width: 100%;
    height: auto;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-md);
}

.img-frame::before {
    display: none;
    /* Remove background decoration */
}

.credentials {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.credential-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--color-primary);
}

/* -------------------------------------------------------------------------- */
/*                                 INFO BAND                                  */
/* -------------------------------------------------------------------------- */
.info-band {
    background-color: var(--color-primary);
    color: var(--color-white);
    text-align: center;
}

.info-content {
    max-width: 800px;
    margin: 0 auto;
}

.info-band .info-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.info-content p {
    font-size: 1.1rem;
}

/* -------------------------------------------------------------------------- */
/*                                TRATTAMENTI                                 */
/* -------------------------------------------------------------------------- */
.treatments {
    background-color: var(--color-bg-alt);
}

.section-desc {
    max-width: 600px;
    margin: 0 auto var(--spacing-lg) auto;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.card {
    background-color: var(--color-white);
    padding: var(--spacing-md);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
    text-align: center;
    border-bottom: 3px solid transparent;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-bottom: 3px solid var(--color-primary);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--color-primary-light);
    margin-bottom: var(--spacing-sm);
}

/* -------------------------------------------------------------------------- */
/*                                TESTIMONIALS                                */
/* -------------------------------------------------------------------------- */
.testimonials {
    background-color: #ffffff;
    /* Explicit color for Safari */
}

.testimonials-grid {
    display: flex;
    flex-wrap: wrap;
    margin: -1rem;
    /* Negative margin to counteract card padding */
}

.testimonial-card {
    flex: 1 1 300px;
    margin: 1rem;
    background-color: #f3f4f1;
    /* Explicit color */
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(0, 0, 0, 0.03);
    min-height: 250px;
    /* Ensure consistent height in flex */
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    background-color: #ffffff;
}

.stars {
    color: #FFB347;
    /* Soft gold */
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.testimonial-text {
    font-style: italic;
    color: #333333;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 1rem;
}

.author-name {
    font-weight: 600;
    color: #3A5A40;
    font-size: 1.1rem;
}

.review-source {
    font-size: 0.8rem;
    color: #666666;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
}

.review-source i {
    color: #4285F4;
    /* Google Blue */
}

/* Fallback for browsers that support Grid gap but let's stick to Flex for Safari safety here */
@supports (display: grid) {
    .testimonials-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
        margin: 0;
    }

    .testimonial-card {
        margin: 0;
    }
}

/* -------------------------------------------------------------------------- */
/*                                  CONTACT                                   */
/* -------------------------------------------------------------------------- */
.shadow-box {
    background: var(--color-white);
    box-shadow: var(--shadow-md);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
}

.contact-info {
    flex: 1;
    padding: var(--spacing-xl);
    min-width: 300px;
}

.contact-map {
    flex: 1;
    min-width: 300px;
    min-height: 400px;
    background-color: #eee;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: var(--spacing-md);
}

.contact-item i {
    font-size: 1.2rem;
    color: var(--color-primary);
    margin-top: 4px;
}

.contact-item h4 {
    margin-bottom: 0px;
    font-size: 1rem;
    color: var(--color-primary);
}

.contact-item p,
.contact-item a {
    font-size: 1rem;
    color: var(--color-text-light);
    overflow-wrap: break-word;
    word-break: break-word;
}

.contact-item a:hover {
    color: var(--color-primary);
}

.social-links {
    margin-top: var(--spacing-md);
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    transition: var(--transition-fast);
}

.social-icon:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* -------------------------------------------------------------------------- */
/*                                   FOOTER                                   */
/* -------------------------------------------------------------------------- */
.footer {
    background-color: #2c2c2c;
    color: #aeaeae;
    padding: var(--spacing-md) 0;
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-logo {
    color: var(--color-white);
    font-family: var(--font-heading);
    font-weight: 600;
}

.footer-links a {
    margin: 0 10px;
    padding: 5px 0;
    color: #aeaeae;
    position: relative;
    z-index: 5;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-white);
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
    margin-top: 1rem;
    text-align: center;
    width: 100%;
}


/* -------------------------------------------------------------------------- */
/*                                RESPONSIVE                                  */
/* -------------------------------------------------------------------------- */

/* Prevent overlap for mid-sized screens */
@media (max-width: 1300px) {
    .logo {
        font-size: 1.8rem;
    }

    .logo img {
        height: 100px;
    }

    .nav-list {
        gap: 1.2rem;
    }

    .nav-link {
        font-size: 1rem;
    }
}

@media (max-width: 1100px) {
    .header-container {
        padding: 0 2rem;
    }

    .mobile-toggle {
        display: block;
        padding-right: 0.5rem;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--color-white);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        padding: 5rem 2rem;
        transition: right 0.4s ease;
    }

    .nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .hero-bg {
        width: 100%;
        clip-path: none;
        opacity: 0.2;
    }

    .shadow-box {
        background: transparent;
        box-shadow: none;
        overflow: visible;
    }

    .contact-info {
        background: var(--color-white);
        box-shadow: var(--shadow-md);
        border-radius: 12px;
        margin-bottom: 2rem;
        padding: 2rem 1.5rem;
    }

    .contact-map {
        box-shadow: var(--shadow-md);
        border-radius: 12px;
        overflow: hidden;
        min-height: 300px;
    }

    .hero-content {
        text-align: center;
        margin: 0 auto;
    }

    .credentials {
        flex-direction: column;
        gap: 1rem;
    }

    h1 {
        font-size: 2.5rem;
    }

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

@media (max-width: 600px) {
    .section {
        padding: var(--spacing-lg) 0;
    }

    /* FIX: Reduce logo size on mobile to prevent overflow */
    .logo {
        font-size: 1.4rem;
        /* Reduced from default */
        gap: 6px;
    }

    .logo img {
        height: 50px;
        /* Drastically reduced from 120px/100px */
    }

    /* FIX: Adjust header padding for more space */
    .header-container {
        padding: 0 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .btn-outline {
        margin-left: 0;
    }

}

/* Visit Phases (Timeline Style) */
.visit-phases {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.phase-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.phase-num {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
    min-width: 40px;
}

.phase-content h4 {
    margin-bottom: 0.2rem;
    color: var(--color-primary);
}

.phase-content p {
    font-size: 1rem;
    margin-bottom: 0;
}

@media (max-width: 1100px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    /* Ensure image shows before text on mobile */
    .about-image {
        order: -1;
    }
}

/* -------------------------------------------------------------------------- */
/*                                ANIMATIONS                                  */
/* -------------------------------------------------------------------------- */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

.delay-4 {
    animation-delay: 0.8s;
}

.delay-5 {
    animation-delay: 1.0s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Reveal Classes */
.scroll-reveal {
    /* opacity: 0;  <-- REMOVED: Visible by default for SEO/Fallback */
    transition: all 0.8s ease;
    opacity: 1;
    /* Default state */
    transform: translateY(0);
}

/* Class added by JS to hide elements initially */
.scroll-reveal.reveal-hidden {
    opacity: 0;
}

.scroll-reveal.reveal-hidden.bottom {
    transform: translateY(30px);
}

.scroll-reveal.reveal-hidden.left {
    transform: translateX(-30px);
}

.scroll-reveal.reveal-hidden.right {
    transform: translateX(30px);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translate(0, 0);
}

/* -------------------------------------------------------------------------- */
/*                                PAGE HEADERS                                */
/* -------------------------------------------------------------------------- */
.page-header {
    margin-top: 160px;
    /* Accounts for taller fixed header */
    padding: 3rem 0 2rem;
    /* Reduced based on feedback */
    background-color: var(--color-bg-alt);
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.page-header h1 {
    font-size: 3.8rem;
    /* Larger, more elegant */
    margin-bottom: var(--spacing-sm);
    font-weight: 400;
    /* Lighter weight for elegance */
    letter-spacing: -1px;
}

.page-header p {
    font-size: 1.4rem;
    color: var(--color-primary-light);
    font-family: var(--font-heading);
    font-style: italic;
    opacity: 0.9;
}

/* -------------------------------------------------------------------------- */
/*                                DETAIL PAGES                                */
/* -------------------------------------------------------------------------- */

/* Components */
.styled-list {
    margin: var(--spacing-md) 0;
}

.styled-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-text);
}

.styled-list li i {
    color: var(--color-accent);
}

.signature {
    margin-top: var(--spacing-md);
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-primary);
    font-style: italic;
}

/* Quote Badge Component - Simplified for consistency */
.quote-badge {
    max-width: 900px;
    margin: 2.5rem auto 1rem;
    padding: 2rem 1rem;
    background-color: transparent;
    color: var(--color-primary);
    position: relative;
    border-top: 1px solid rgba(58, 90, 64, 0.2);
    border-bottom: 1px solid rgba(58, 90, 64, 0.2);
}

.quote-badge p {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--color-primary) !important;
    margin-bottom: 0.8rem;
    line-height: 1.4;
    letter-spacing: 0.3px;
    text-align: center;
}

.quote-badge cite {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.1rem;
    display: block;
    color: var(--color-primary);
    text-align: center;
}


/* Philosophy Section */
.philosophy-section {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg) 0;
    border-top: 1px solid #eee;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
    text-align: center;
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: var(--spacing-sm);
}

/* Principles Grid (Osteopatia) */
.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    max-width: 1000px;
    margin: 0 auto;
}

.principle-card {
    background: var(--color-white);
    padding: var(--spacing-md);
    border: 1px solid #eee;
    border-radius: 8px;
    transition: var(--transition-fast);
}

.principle-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-5px);
}

.principle-card h3 {
    color: var(--color-primary-light);
    font-size: 1.3rem;
}

/* Service Blocks (Trattamenti) */
.service-block {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    background: var(--color-white);
    padding: var(--spacing-md);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

.service-block:hover {
    box-shadow: var(--shadow-md);
}

.service-icon {
    font-size: 3rem;
    color: var(--color-primary);
    min-width: 80px;
    text-align: center;
    padding-top: 10px;
}

.service-content h2 {
    font-size: 1.8rem;
    margin-bottom: var(--spacing-xs);
}

.service-content h4 {
    margin-top: var(--spacing-md);
    margin-bottom: 5px;
    color: var(--color-primary-light);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* Responsive tweaks for new pages */
@media (max-width: 768px) {
    .quote-badge {
        padding: 1.5rem 0.5rem;
        margin: 2rem 1rem 0;
    }

    .quote-badge p {
        font-size: 1.2rem;
    }

    .service-block {
        flex-direction: column;
        text-align: center;
    }

    .styled-list li {
        justify-content: center;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }
}

/* -------------------------------------------------------------------------- */
/*                            PAGE: TRATTAMENTI DETAILED                      */
/* -------------------------------------------------------------------------- */

.service-detail-block {
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-md);
    background-color: var(--color-white);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.service-detail-block:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* --- Service Header --- */
.service-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.service-header.user-reverse {
    flex-direction: row-reverse;
    text-align: right;
}

.service-header.user-reverse .header-text {
    align-items: flex-end;
}

.icon-circle {
    width: 80px;
    height: 80px;
    background-color: var(--color-bg-alt);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--color-primary);
    font-size: 2rem;
    border: 2px solid var(--color-secondary);
}

.header-text h2 {
    margin-bottom: 0;
    font-size: 2.2rem;
    line-height: 1.1;
}

/* --- Service Body --- */
.service-body>p {
    font-size: 1.05rem;
    margin-bottom: var(--spacing-md);
    max-width: 800px;
    line-height: 1.8;
}

/* --- Lists Container --- */
.lists-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--spacing-md);
    align-items: start;
    margin-top: var(--spacing-md);
}

.list-col {
    padding: var(--spacing-md);
    border-radius: 12px;
}

.list-col h4 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-size: 1.3rem;
    margin-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 5px;
    display: inline-block;
}

/* Style for the highlight box (e.g., L'Obiettivo, Per chi è) */
.list-col.highlight {
    background-color: var(--color-bg-alt);
    border: 1px solid var(--color-secondary);
}

.list-col.highlight p {
    margin-bottom: 0;
    font-weight: 500;
    color: var(--color-text);
}

/* --- Check List --- */
.check-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    color: var(--color-text-light);
}

.check-list li::before {
    content: '\f00c';
    /* FontAwesome check */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 3px;
    color: var(--color-primary-light);
    font-size: 0.9em;
}

.check-list li strong {
    color: var(--color-primary);
}

/* --- Divider --- */
.divider {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, transparent, var(--color-secondary), transparent);
    margin: var(--spacing-xl) 0;
    opacity: 0.6;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .service-header {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-sm);
    }

    .service-header.user-reverse {
        flex-direction: column;
        text-align: center;
    }

    .lists-container {
        grid-template-columns: 1fr;
    }

    .service-body>p {
        text-align: center;
    }
}

/* -------------------------------------------------------------------------- */
/*                                  TIMELINE                                  */
/* -------------------------------------------------------------------------- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 40px auto 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--color-secondary);
    top: 0;
    bottom: 0;
    left: 20px;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 100%;
    box-sizing: border-box;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    right: auto;
    background-color: var(--color-white);
    border: 4px solid var(--color-primary);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
    left: 12px;
}

.timeline-date {
    font-weight: bold;
    color: var(--color-primary);
    margin-bottom: 5px;
}

.timeline-content h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

@media (min-width: 768px) {
    .timeline::after {
        left: 50%;
    }

    .timeline-item {
        width: 50%;
    }

    .timeline-item:nth-child(odd) {
        left: 0;
        text-align: right;
        padding-right: 40px;
        padding-left: 0;
    }

    .timeline-item:nth-child(even) {
        left: 50%;
        padding-left: 40px;
    }

    .timeline-item:nth-child(even)::after {
        left: -8px;
    }

    .timeline-item:nth-child(odd)::after {
        left: auto;
        right: -8px;
    }
}

/* -------------------------------------------------------------------------- */
/*                                     FAQ                                    */
/* -------------------------------------------------------------------------- */
.faq-grid {
    display: grid;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.faq-item {
    background: var(--color-off-white);
    padding: var(--spacing-md);
    border-radius: 8px;
    border-left: 4px solid var(--color-primary);
}

.faq-item h4 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.faq-item p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* -------------------------------------------------------------------------- */
/*                            STYLED ORDERED LIST                             */
/* -------------------------------------------------------------------------- */
.styled-list-ordered {
    counter-reset: item;
    list-style-type: none;
    padding-left: 0;
}

.styled-list-ordered li {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 1.5rem;
}

.styled-list-ordered li::before {
    content: counter(item) ".";
    counter-increment: item;
    position: absolute;
    left: 0;
    top: 0;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-accent);
    font-weight: bold;
    line-height: 1;
}


/* -------------------------------------------------------------------------- */
/*                                  CTA STRIP                                 */
/* -------------------------------------------------------------------------- */
.cta-strip {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: var(--spacing-xl) 0;
    text-align: center;
    margin-top: 0;
    /* Attach to previous section if possible, or small gap */
}

.cta-strip h2 {
    color: var(--color-white);
    margin-bottom: var(--spacing-sm);
    font-size: 2.5rem;
}

.cta-strip p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto var(--spacing-md) auto;
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .cta-strip h2 {
        font-size: 2rem;
    }

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

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