/* 
   FIXES.CSS - COMPREHENSIVE POLISH (v5)
   Poppins everywhere, smooth, readable, mobile-perfect
*/

/* ========================================
   GLOBAL TYPOGRAPHY - POPPINS EVERYWHERE
   ======================================== */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
button,
input,
textarea,
select,
.section-description,
.section-label,
.nav-link,
.btn,
.footer *,
.card * {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

/* KEEP Playfair Display ONLY for italic accent spans (highlighted text) */
.section-title span,
h1 span,
h2 span,
h3 span {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-style: italic !important;
}

/* Base typography improvements */
body {
    font-size: 16px !important;
    line-height: 1.7 !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2 !important;
    letter-spacing: -0.02em !important;
}

p {
    line-height: 1.75 !important;
    color: #64748b !important;
}

/* ========================================
   SMOOTH TRANSITIONS EVERYWHERE
   ======================================== */
*,
*::before,
*::after {
    transition: background-color 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease,
        opacity 0.3s ease !important;
}

/* Disable transition on scroll for performance */
.header.scrolled * {
    transition-duration: 0.15s !important;
}

/* ========================================
   HEADER - CLEAN & SMOOTH
   ======================================== */
.header-inner {
    background: #ffffff !important;
    backdrop-filter: none !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
    border: 1px solid rgba(0, 0, 0, 0.02) !important;
    padding: 0.5rem 2rem !important;
    opacity: 1 !important;
    height: 80px !important;
    min-height: 80px !important;
    max-height: 80px !important;
}

.header.scrolled .header-inner {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08) !important;
}

.header .logo,
.header .logo-img {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

.header .logo {
    height: auto !important;
    width: auto !important;
    display: inline-block !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    vertical-align: middle !important;
}

.header .logo-img {
    height: 140px !important;
    width: auto !important;
    object-fit: contain !important;
    display: block !important;
}

.nav-link {
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    color: #334155 !important;
    padding: 0.5rem 1rem !important;
    border-radius: 0.5rem !important;
}

.nav-link:hover,
.nav-link.active {
    color: #4A90D9 !important;
    background: rgba(74, 144, 217, 0.08) !important;
}

/* ========================================
   FEATURE PILLS (Why Choose Us) - SMOOTH
   ======================================== */
.feature-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 1.25rem !important;
    background: #ffffff !important;
    padding: 1.5rem !important;
    border-radius: 1rem !important;
    border: 1px solid #f1f5f9 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
}

.feature-item:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.06) !important;
    border-color: #e2e8f0 !important;
}

.feature-icon {
    flex-shrink: 0 !important;
    width: 56px !important;
    height: 56px !important;
    background: linear-gradient(135deg, #EBF5FF 0%, #dbeafe 100%) !important;
    border-radius: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #4A90D9 !important;
}

.feature-icon .material-symbols-outlined {
    font-size: 28px !important;
}

.feature-content,
.feature-item>div:not(.feature-icon) {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
}

.feature-content h4,
.feature-item>div:not(.feature-icon) h4 {
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    margin: 0 !important;
    line-height: 1.3 !important;
}

.feature-content p,
.feature-item>div:not(.feature-icon) p {
    font-size: 0.9rem !important;
    color: #64748b !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

/* ========================================
   FOOTER - CLEAN & READABLE
   ======================================== */
.footer {
    background: #ffffff !important;
    color: #475569 !important;
    border-top: 1px solid #e2e8f0 !important;
    padding: 4rem 0 2rem !important;
}

.footer-title {
    color: #0f172a !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    margin-bottom: 1.25rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

.footer-title::after {
    content: '';
    display: block;
    width: 32px;
    height: 3px;
    background: #4A90D9 !important;
    margin-top: 0.5rem;
    border-radius: 2px;
}

.footer-brand .logo-img {
    height: 65px !important;
    width: auto !important;
    opacity: 1 !important;
    filter: none !important;
    margin-bottom: 1.25rem !important;
    background: transparent !important;
}

.footer-description {
    color: #64748b !important;
    font-size: 0.9rem !important;
    line-height: 1.7 !important;
    max-width: 280px !important;
}

.footer-links {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
}

.footer-links a {
    color: #475569 !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    display: inline-block !important;
}

.footer-links a:hover {
    color: #4A90D9 !important;
    transform: translateX(4px) !important;
}

.footer-contact-item {
    color: #475569 !important;
    font-size: 0.9rem !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
    margin-bottom: 0.75rem !important;
}

.footer-contact-item .material-symbols-outlined {
    color: #4A90D9 !important;
    font-size: 20px !important;
    background: #EBF5FF !important;
    padding: 8px !important;
    border-radius: 8px !important;
}

.footer-contact-item a {
    color: inherit !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}

.footer-contact-item a:hover {
    color: #4A90D9 !important;
}

.footer-newsletter {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 1rem !important;
    padding: 1.5rem !important;
    box-shadow: none !important;
}

.footer-newsletter-content h4 {
    color: #0f172a !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
}

.footer-newsletter-content p {
    font-size: 0.875rem !important;
}

.footer-newsletter-form input {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 0.5rem !important;
    padding: 0.75rem 1rem !important;
    color: #1e293b !important;
    font-size: 0.9rem !important;
}

.footer-newsletter-form input:focus {
    border-color: #4A90D9 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.1) !important;
}

/* ========================================
   BUTTONS - SMOOTH & PREMIUM
   ======================================== */
.btn,
button,
.header-cta {
    font-weight: 600 !important;
    letter-spacing: 0.01em !important;
    border-radius: 0.5rem !important;
}

.btn:hover,
button:hover,
.header-cta:hover {
    transform: translateY(-2px) !important;
}

/* ========================================
   MOBILE RESPONSIVENESS - PERFECT
   ======================================== */
@media (max-width: 1024px) {
    .header-inner {
        padding: 0.5rem 1rem !important;
        height: 72px !important;
        min-height: 72px !important;
        max-height: 72px !important;
    }

    .header .logo-img {
        height: 110px !important;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 15px !important;
    }

    .header-inner {
        padding: 0.5rem 0.75rem !important;
        border-radius: 1rem !important;
        height: 64px !important;
        min-height: 64px !important;
        max-height: 64px !important;
    }

    .header .logo-img {
        height: 110px !important;
    }

    .section-label {
        text-align: center !important;
        display: block !important;
        width: 100% !important;
    }

    /* Feature Pills - Stack on mobile */
    .feature-item {
        flex-direction: column !important;
        text-align: center !important;
        align-items: center !important;
        padding: 1.5rem 1rem !important;
    }

    .feature-content,
    .feature-item>div:not(.feature-icon) {
        align-items: center !important;
    }

    .feature-content h4,
    .feature-item>div:not(.feature-icon) h4 {
        font-size: 1rem !important;
    }

    .feature-content p,
    .feature-item>div:not(.feature-icon) p {
        font-size: 0.85rem !important;
    }

    /* Footer - Single column */
    .footer {
        padding: 3rem 0 2rem !important;
    }

    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
        text-align: center !important;
    }

    .footer-title::after {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .footer-links {
        align-items: center !important;
    }

    .footer-contact-item {
        justify-content: center !important;
        text-align: left !important;
    }

    .footer-brand .logo-img {
        height: 55px !important;
        margin: 0 auto 1rem auto !important;
        display: block !important;
    }

    .footer-description {
        max-width: 100% !important;
        margin: 0 auto !important;
    }

    .footer-newsletter {
        flex-direction: column !important;
        text-align: center !important;
        padding: 1.25rem !important;
    }

    .footer-newsletter-form {
        flex-direction: column !important;
        width: 100% !important;
    }

    /* Section titles - Smaller on mobile */
    .section-title {
        font-size: 1.75rem !important;
    }

    .section-label {
        font-size: 0.75rem !important;
    }

    .section-description {
        font-size: 0.95rem !important;
    }
}

@media (max-width: 480px) {
    .header-inner {
        padding: 0.4rem 0.5rem !important;
        height: 56px !important;
        min-height: 56px !important;
        max-height: 56px !important;
    }

    .header .logo-img {
        height: 95px !important;
    }

    .feature-item {
        padding: 1.25rem 0.75rem !important;
    }

    .section-title {
        font-size: 1.5rem !important;
    }
}

/* ========================================
   TESTIMONIAL CARDS - BETTER READABILITY
   ======================================== */
.testimonial-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 1rem !important;
    padding: 1.5rem !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
}

.testimonial-card.featured {
    background: linear-gradient(135deg, #4A90D9 0%, #3b82f6 100%) !important;
    border: none !important;
    box-shadow: 0 8px 24px rgba(74, 144, 217, 0.25) !important;
}

.testimonial-card.featured .testimonial-quote,
.testimonial-card.featured .testimonial-name,
.testimonial-card.featured p,
.testimonial-card.featured span {
    color: #ffffff !important;
}

.testimonial-card.featured .testimonial-role {
    color: rgba(255, 255, 255, 0.85) !important;
}

.testimonial-card.featured .testimonial-stars .material-symbols-outlined {
    color: #fbbf24 !important;
    /* Gold stars */
}

.testimonial-quote {
    font-size: 1rem !important;
    line-height: 1.7 !important;
    color: #334155 !important;
    font-style: italic !important;
}

.testimonial-name {
    font-weight: 600 !important;
    color: #0f172a !important;
}

.testimonial-role {
    font-size: 0.85rem !important;
    color: #64748b !important;
}

.testimonial-stars {
    display: flex !important;
    gap: 2px !important;
    margin-bottom: 0.75rem !important;
}

.testimonial-stars .material-symbols-outlined {
    font-size: 18px !important;
    color: #fbbf24 !important;
    /* Gold */
}

/* Newsletter button styling */
.footer-newsletter-form .btn {
    background: #4A90D9 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 0.75rem 1.5rem !important;
    font-weight: 600 !important;
    border-radius: 0.5rem !important;
    cursor: pointer !important;
    white-space: nowrap !important;
}

.footer-newsletter-form .btn:hover {
    background: #3b82f6 !important;
    transform: translateY(-2px) !important;
}

/* Footer bottom links fix for light theme */
.footer-bottom {
    border-top: 1px solid #e2e8f0 !important;
    padding-top: 2rem !important;
    margin-top: 2rem !important;
    color: #64748b !important;
}

.footer-bottom a {
    color: #64748b !important;
}

.footer-bottom a:hover {
    color: #4A90D9 !important;
}

.footer-social a {
    background: #f1f5f9 !important;
    color: #475569 !important;
}

.footer-social a:hover {
    background: #4A90D9 !important;
    color: #ffffff !important;
}

/* ========================================
   MATERIAL ICONS - FORCE PROPER DISPLAY
   ======================================== */
/* Ensure Material Symbols font is applied everywhere */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined' !important;
    font-weight: normal !important;
    font-style: normal !important;
    font-size: 24px !important;
    line-height: 1 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    display: inline-block !important;
    white-space: nowrap !important;
    word-wrap: normal !important;
    direction: ltr !important;
    -webkit-font-feature-settings: 'liga' !important;
    -webkit-font-smoothing: antialiased !important;
}

/* Location/Contact Info Items */
.location-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 1rem !important;
    padding: 1rem 0 !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.location-item:last-child {
    border-bottom: none !important;
}

.location-icon {
    width: 48px !important;
    height: 48px !important;
    background: #EBF5FF !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.location-icon .material-symbols-outlined {
    font-size: 24px !important;
    color: #4A90D9 !important;
}

.location-item-label {
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: #94a3b8 !important;
    margin-bottom: 0.25rem !important;
}

.location-item-value {
    font-size: 0.95rem !important;
    color: #334155 !important;
    line-height: 1.5 !important;
}

.location-item-value a {
    color: #4A90D9 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}

.location-item-value a:hover {
    text-decoration: underline !important;
}

/* Form footer items with icons */
.form-footer {
    display: flex !important;
    justify-content: center !important;
    gap: 2rem !important;
    margin-top: 1.5rem !important;
    padding-top: 1.5rem !important;
    border-top: 1px solid #f1f5f9 !important;
}

.form-footer-item {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    font-size: 0.85rem !important;
    color: #64748b !important;
}

.form-footer-item .material-symbols-outlined {
    font-size: 18px !important;
    color: #4A90D9 !important;
}

/* Footer contact items with icons */
.footer-contact-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
    margin-bottom: 1rem !important;
    color: #475569 !important;
    font-size: 0.9rem !important;
}

.footer-contact-item .material-symbols-outlined {
    font-size: 20px !important;
    color: #4A90D9 !important;
    background: #EBF5FF !important;
    padding: 8px !important;
    border-radius: 8px !important;
    flex-shrink: 0 !important;
}

.footer-contact-item a {
    color: #4A90D9 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
}

/* Improved footer grid layout */
.footer-grid {
    display: grid !important;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr !important;
    gap: 3rem !important;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 2rem !important;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr !important;
        text-align: center !important;
    }

    .footer-contact-item {
        justify-content: center !important;
    }

    .footer-links {
        align-items: center !important;
    }
}

/* Remove excess service links - make footer cleaner */
.footer-links-services a {
    font-size: 0.85rem !important;
}

/* Fix newsletter form layout */
.footer-newsletter {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 2rem !important;
    flex-wrap: wrap !important;
}

.footer-newsletter-content {
    flex: 1 !important;
    min-width: 200px !important;
}

.footer-newsletter-form {
    display: flex !important;
    gap: 0.75rem !important;
    flex: 1 !important;
    max-width: 400px !important;
}

.footer-newsletter-form input {
    flex: 1 !important;
}

/* ========================================
   CTA SECTION - FIX TEXT CONTRAST
   ======================================== */
.cta-section,
.section-cta,
[class*="cta"] {
    color: #ffffff !important;
}

.cta-section h2,
.cta-section h3,
.cta-section p,
.section-cta h2,
.section-cta h3,
.section-cta p,
.cta-title,
.cta-description {
    color: #ffffff !important;
}

.cta-section .section-description,
.section-cta .section-description {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Target the "Hai paura del dentista" section specifically */
section[style*="gradient"] p,
section[style*="primary"] p {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Ensure CTA buttons stand out */
.cta-section .btn,
.section-cta .btn {
    background: #ffffff !important;
    color: #4A90D9 !important;
    border: none !important;
}

.cta-section .btn:hover,
.section-cta .btn:hover {
    background: #f8fafc !important;
    transform: translateY(-2px) !important;
}

/* CTA Card specific fix */
.cta-card {
    color: #ffffff !important;
}

.cta-card h2,
.cta-card h3,
.cta-card p,
.cta-content h2,
.cta-content h3,
.cta-content p {
    color: #ffffff !important;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9) !important;
    opacity: 1 !important;
}

/* ========================================
   HERO SECTION - ENHANCED & MOBILE-FIRST
   ======================================== */

/* Better background fade transition */
.hero-bg {
    position: absolute !important;
    inset: 0 !important;
    z-index: 0 !important;
}

.hero-bg img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center right !important;
    transform: scale(1.02) !important;
    /* Slight zoom for impact */
    transition: transform 8s ease-out !important;
}

.hero:hover .hero-bg img {
    transform: scale(1) !important;
    /* Subtle zoom out on hover */
}

/* Smoother gradient fade - left to right */
.hero-bg::after {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(105deg,
            rgba(15, 23, 42, 0.95) 0%,
            rgba(15, 23, 42, 0.85) 25%,
            rgba(15, 23, 42, 0.6) 45%,
            rgba(15, 23, 42, 0.3) 65%,
            rgba(15, 23, 42, 0.05) 85%,
            transparent 100%) !important;
}

/* Hero content - left aligned for impact */
.hero-content {
    position: relative !important;
    z-index: 1 !important;
    max-width: 650px !important;
    margin: 0 !important;
    padding: 6rem 0 !important;
    text-align: left !important;
}

/* Hero Badge */
.hero-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
    padding: 0.5rem 1rem !important;
    border-radius: 2rem !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    margin-bottom: 1.5rem !important;
}

.hero-badge .material-symbols-outlined {
    font-size: 18px !important;
    color: #fbbf24 !important;
    /* Gold */
}

/* Hero Title - Big & Bold */
.hero-title {
    font-family: 'Poppins', sans-serif !important;
    font-size: clamp(2.5rem, 5vw, 4rem) !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    color: #ffffff !important;
    margin-bottom: 1.5rem !important;
    letter-spacing: -0.02em !important;
}

.hero-title span,
.hero-title .font-serif {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-style: italic !important;
    font-weight: 600 !important;
    color: #4A90D9 !important;
    /* Brand Blue accent */
}

/* Hero Description */
.hero-description {
    font-size: 1.15rem !important;
    line-height: 1.7 !important;
    color: rgba(255, 255, 255, 0.85) !important;
    max-width: 500px !important;
    margin-bottom: 2rem !important;
}

/* Hero Actions - Buttons */
.hero-actions {
    display: flex !important;
    gap: 1rem !important;
    flex-wrap: wrap !important;
    margin-bottom: 2.5rem !important;
}

.hero-actions .btn-primary {
    background: #4A90D9 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 1rem 2rem !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 8px 24px rgba(74, 144, 217, 0.3) !important;
}

.hero-actions .btn-primary:hover {
    background: #3b82f6 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 32px rgba(74, 144, 217, 0.4) !important;
}

.hero-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    backdrop-filter: blur(10px) !important;
    padding: 1rem 2rem !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    border-radius: 0.75rem !important;
}

.hero-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

/* Hero Trust Items */
.hero-trust {
    display: flex !important;
    gap: 2rem !important;
    flex-wrap: wrap !important;
}

.hero-trust-item {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    font-size: 0.9rem !important;
    color: rgba(255, 255, 255, 0.8) !important;
}

.hero-trust-item .material-symbols-outlined {
    font-size: 20px !important;
    color: #4A90D9 !important;
}

/* ========================================
   HERO MOBILE RESPONSIVE - IMPACTFUL
   ======================================== */
@media (max-width: 992px) {
    .hero-content {
        max-width: 100% !important;
        padding: 5rem 0 !important;
    }

    .hero-bg::after {
        background: linear-gradient(to bottom,
                rgba(15, 23, 42, 0.9) 0%,
                rgba(15, 23, 42, 0.7) 50%,
                rgba(15, 23, 42, 0.5) 100%) !important;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 100vh !important;
        padding-top: 80px !important;
    }

    .hero-content {
        text-align: center !important;
        padding: 3rem 1rem !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .hero-bg::after {
        background: linear-gradient(to bottom,
                rgba(15, 23, 42, 0.92) 0%,
                rgba(15, 23, 42, 0.85) 60%,
                rgba(15, 23, 42, 0.7) 100%) !important;
    }

    .hero-title {
        font-size: 2.25rem !important;
        line-height: 1.15 !important;
    }

    .hero-description {
        font-size: 1rem !important;
        max-width: 100% !important;
        padding: 0 1rem !important;
    }

    .hero-actions {
        flex-direction: column !important;
        width: 100% !important;
        gap: 0.75rem !important;
    }

    .hero-actions .btn {
        width: 100% !important;
        justify-content: center !important;
        padding: 1rem 1.5rem !important;
    }

    .hero-trust {
        flex-direction: column !important;
        gap: 1rem !important;
        align-items: center !important;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.875rem !important;
    }

    .hero-badge {
        font-size: 0.75rem !important;
        padding: 0.4rem 0.8rem !important;
    }

    .hero-description {
        font-size: 0.95rem !important;
    }
}

/* HERO LIGHT OVERLAY - Replace dark with light */
.hero-bg::after {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(105deg,
            rgba(255, 255, 255, 0.95) 0%,
            rgba(255, 255, 255, 0.85) 30%,
            rgba(255, 255, 255, 0.6) 50%,
            rgba(255, 255, 255, 0.3) 70%,
            rgba(255, 255, 255, 0.05) 100%) !important;
}

/* Hero content with dark text for light background */
.hero-content {
    text-align: left !important;
}

.hero-badge {
    background: #4A90D9 !important;
    border: none !important;
    color: #ffffff !important;
    backdrop-filter: none !important;
}

.hero-badge .material-symbols-outlined {
    color: #fbbf24 !important;
}

.hero-title {
    color: #0f172a !important;
}

.hero-title span,
.hero-title .font-serif {
    color: #4A90D9 !important;
}

.hero-description {
    color: #475569 !important;
}

.hero-actions .btn-secondary {
    background: transparent !important;
    color: #0f172a !important;
    border: 2px solid #0f172a !important;
    backdrop-filter: none !important;
}

.hero-actions .btn-secondary:hover {
    background: #0f172a !important;
    color: #ffffff !important;
}

.hero-trust-item {
    color: #475569 !important;
}

.hero-trust-item .material-symbols-outlined {
    color: #4A90D9 !important;
}

/* Mobile - keep light overlay */
@media (max-width: 992px) {
    .hero-bg::after {
        background: linear-gradient(to bottom,
                rgba(255, 255, 255, 0.98) 0%,
                rgba(255, 255, 255, 0.9) 40%,
                rgba(255, 255, 255, 0.7) 100%) !important;
    }
}

@media (max-width: 768px) {
    .hero-content {
        text-align: center !important;
    }

    .hero-bg::after {
        background: linear-gradient(to bottom,
                rgba(255, 255, 255, 0.98) 0%,
                rgba(255, 255, 255, 0.95) 50%,
                rgba(255, 255, 255, 0.85) 100%) !important;
    }
}

/* HERO IMAGE - Show left side, hide right */
.hero-bg img {
    object-position: left center !important;
}

/* HERO CONTENT - Centered, better readability */
.hero-content {
    text-align: center !important;
    margin: 0 auto !important;
    max-width: 700px !important;
}

.hero-title {
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.5) !important;
}

.hero-description {
    max-width: 550px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    font-size: 1.1rem !important;
    line-height: 1.8 !important;
}

.hero-actions {
    justify-content: center !important;
}

.hero-trust {
    justify-content: center !important;
}

/* Stronger overlay for better text readability */
.hero-bg::after {
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0.98) 0%,
            rgba(255, 255, 255, 0.95) 40%,
            rgba(255, 255, 255, 0.85) 60%,
            rgba(255, 255, 255, 0.6) 80%,
            rgba(255, 255, 255, 0.3) 100%) !important;
}

/* Even more readable badges */
.hero-badge {
    box-shadow: 0 4px 12px rgba(74, 144, 217, 0.3) !important;
}

/* Buttons with better contrast */
.hero-actions .btn-primary {
    box-shadow: 0 8px 20px rgba(74, 144, 217, 0.35) !important;
}

/* REDUCED WHITE GRADIENT - More image visible */
.hero-bg::after {
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0.85) 0%,
            rgba(255, 255, 255, 0.7) 30%,
            rgba(255, 255, 255, 0.4) 50%,
            rgba(255, 255, 255, 0.15) 70%,
            transparent 100%) !important;
}

/* Text with better contrast via shadow instead of overlay */
.hero-title {
    color: #0f172a !important;
    text-shadow:
        0 1px 2px rgba(255, 255, 255, 0.8),
        0 2px 8px rgba(255, 255, 255, 0.6) !important;
}

.hero-description {
    color: #1e293b !important;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.7) !important;
    font-weight: 500 !important;
}

.hero-badge {
    background: #4A90D9 !important;
    color: #ffffff !important;
}

.hero-trust-item {
    color: #334155 !important;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6) !important;
    font-weight: 500 !important;
}

/* Mobile - slightly more coverage for readability */
@media (max-width: 768px) {
    .hero-bg::after {
        background: linear-gradient(to bottom,
                rgba(255, 255, 255, 0.92) 0%,
                rgba(255, 255, 255, 0.8) 50%,
                rgba(255, 255, 255, 0.5) 100%) !important;
    }
}

/* MOBILE HEADER - Fix close button visibility */
.mobile-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 1001 !important;
}

.mobile-toggle .material-symbols-outlined {
    font-size: 28px !important;
    color: #0f172a !important;
}

/* Ensure mobile menu close icon is visible */
.header.menu-open .mobile-toggle .material-symbols-outlined {
    color: #0f172a !important;
}

/* CALL BUTTON - White text on blue background */
.hero-actions .btn-primary,
.btn-primary {
    background: #4A90D9 !important;
    color: #ffffff !important;
    border: none !important;
}

.hero-actions .btn-primary:hover,
.btn-primary:hover {
    background: #3b82f6 !important;
}

/* HERO IMAGE - Shift even more to the left */
.hero-bg img {
    object-position: 0% center !important;
    /* Far left */
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex !important;
        width: 44px !important;
        height: 44px !important;
        background: transparent !important;
    }

    nav.nav-main.active+.mobile-toggle .material-symbols-outlined,
    .mobile-toggle[aria-expanded="true"] .material-symbols-outlined {
        color: #0f172a !important;
    }
}

/* MOBILE MENU CLOSE BUTTON */
.mobile-menu-close {
    position: absolute !important;
    top: 1rem !important;
    right: 1rem !important;
    width: 48px !important;
    height: 48px !important;
    background: #f1f5f9 !important;
    border: none !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 1010 !important;
}

.mobile-menu-close .material-symbols-outlined {
    font-size: 28px !important;
    color: #0f172a !important;
}

.mobile-menu-close:hover {
    background: #e2e8f0 !important;
}

.mobile-menu {
    position: relative !important;
    padding-top: 4rem !important;
    /* Space for close button */
}

/* FIX: Remove bad mobile menu styles on desktop */
@media (min-width: 769px) {
    .mobile-menu {
        display: none !important;
        padding-top: 0 !important;
    }

    .mobile-toggle {
        display: none !important;
    }

    .mobile-menu-close {
        display: none !important;
    }
}

/* FIX: Mobile menu should only have padding when active */
.mobile-menu {
    padding-top: 0 !important;
}

.mobile-menu.active {
    padding-top: 4rem !important;
}

/* FIX: Close button only visible when menu is active */
.mobile-menu-close {
    display: none !important;
}

.mobile-menu.active .mobile-menu-close {
    display: flex !important;
}

/* ========================================
   MOBILE MENU - FINAL CLEAN FIX
   ======================================== */
/* Remove all previous bad styles */
.mobile-menu {
    position: fixed !important;
    padding-top: calc(80px + 3rem) !important;
    /* header height + space */
}

/* Close button positioned at top right of fixed menu */
.mobile-menu-close {
    position: fixed !important;
    top: 1rem !important;
    right: 1rem !important;
    z-index: 1100 !important;
    display: none !important;
}

/* Only show close button when menu is active */
.mobile-menu.active .mobile-menu-close {
    display: flex !important;
}

/* Hide burger and mobile menu on desktop */
@media (min-width: 769px) {

    .mobile-menu,
    .mobile-toggle,
    .mobile-menu-close {
        display: none !important;
    }
}

/* Mobile toggle visible on mobile */
@media (max-width: 768px) {
    .mobile-toggle {
        display: flex !important;
    }
}

/* MOBILE MENU - Better spacing */
.mobile-menu nav {
    margin-top: 3rem !important;
    /* Space from X button */
    padding-top: 1rem !important;
}

/* Chiama button white text in mobile menu */
.mobile-menu .btn-primary {
    background: #4A90D9 !important;
    color: #ffffff !important;
}

.mobile-menu .btn-primary span,
.mobile-menu .btn-primary .material-symbols-outlined {
    color: #ffffff !important;
}

/* ========================================
   COMPREHENSIVE MOBILE OPTIMIZATION
   ======================================== */

/* ---- GLOBAL MOBILE FIXES ---- */
@media (max-width: 768px) {

    /* Container padding */
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* All sections - proper padding */
    .section {
        padding: 3rem 0 !important;
    }

    /* Section headers - centered */
    .section-header {
        text-align: center !important;
        margin-bottom: 2rem !important;
    }

    .section-header.center {
        max-width: 100% !important;
    }

    .section-label {
        display: inline-block !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .section-title {
        font-size: 1.75rem !important;
        text-align: center !important;
    }

    .section-description {
        text-align: center !important;
        max-width: 100% !important;
        padding: 0 0.5rem !important;
    }

    /* ---- GRIDS - Stack on mobile ---- */
    .grid,
    .grid-2,
    .grid-3,
    .grid-4,
    [class*="grid-"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
    }

    /* ---- CARDS - Full width, centered ---- */
    .card {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 1.25rem !important;
    }

    /* ---- BUTTONS - Full width on mobile ---- */
    .btn-lg,
    .btn-xl {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
    }

    /* ---- FOOTER MOBILE ---- */
    .footer {
        text-align: center !important;
        padding: 2.5rem 0 !important;
    }

    .footer-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 2rem !important;
        align-items: center !important;
    }

    .footer-brand {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    .footer-brand .logo-img {
        margin: 0 auto 1rem !important;
    }

    .footer-description {
        text-align: center !important;
        max-width: 280px !important;
        margin: 0 auto !important;
    }

    .footer-column {
        width: 100% !important;
        text-align: center !important;
    }

    .footer-title {
        text-align: center !important;
    }

    .footer-title::after {
        margin: 0.5rem auto 0 !important;
    }

    .footer-links {
        align-items: center !important;
        text-align: center !important;
    }

    .footer-links a {
        display: block !important;
        text-align: center !important;
    }

    .footer-contact-item {
        justify-content: center !important;
        flex-wrap: wrap !important;
        text-align: center !important;
    }

    .footer-contact-item span:last-child {
        width: 100% !important;
        text-align: center !important;
    }

    .footer-newsletter {
        flex-direction: column !important;
        text-align: center !important;
        align-items: center !important;
    }

    .footer-newsletter-content {
        text-align: center !important;
    }

    .footer-newsletter-form {
        flex-direction: column !important;
        width: 100% !important;
        max-width: 300px !important;
    }

    .footer-newsletter-form input,
    .footer-newsletter-form button {
        width: 100% !important;
    }

    .footer-bottom {
        flex-direction: column !important;
        gap: 1rem !important;
        text-align: center !important;
    }

    .footer-social {
        justify-content: center !important;
    }

    /* ---- CONTACT PAGE MOBILE ---- */
    .contact-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 2rem !important;
    }

    .location-item {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 0.75rem !important;
    }

    .location-icon {
        margin: 0 auto !important;
    }

    .location-item-label,
    .location-item-value {
        text-align: center !important;
    }

    .location-item>div {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    /* WhatsApp card on contact */
    .card .flex {
        flex-direction: column !important;
        text-align: center !important;
        gap: 1rem !important;
    }

    .card .flex .flex-1 {
        text-align: center !important;
    }

    /* Form footer */
    .form-footer {
        flex-direction: column !important;
        gap: 1rem !important;
        align-items: center !important;
    }

    /* ---- HERO MOBILE ---- */
    .hero {
        min-height: 100vh !important;
        padding-top: 80px !important;
    }

    .hero-content {
        text-align: center !important;
        padding: 2rem 1rem !important;
    }

    .hero-badge {
        margin: 0 auto 1.5rem !important;
    }

    .hero-title {
        font-size: 2rem !important;
        text-align: center !important;
    }

    .hero-description {
        text-align: center !important;
        padding: 0 !important;
        margin: 0 auto 2rem !important;
    }

    .hero-actions {
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
    }

    .hero-actions .btn {
        width: 100% !important;
        max-width: 280px !important;
    }

    .hero-trust {
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.75rem !important;
    }

    .hero-trust-item {
        justify-content: center !important;
    }

    /* ---- SERVICES GRID MOBILE ---- */
    .services-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .service-card {
        width: 100% !important;
        text-align: center !important;
    }

    .service-card-icon {
        margin: 0 auto 1rem !important;
    }

    /* ---- FEATURE ITEMS MOBILE ---- */
    .features-grid,
    .about-features {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .feature-item {
        flex-direction: column !important;
        text-align: center !important;
        align-items: center !important;
    }

    .feature-icon {
        margin: 0 auto 1rem !important;
    }

    .feature-content {
        align-items: center !important;
        text-align: center !important;
    }

    /* ---- TESTIMONIALS MOBILE ---- */
    .testimonials-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .testimonial-card {
        width: 100% !important;
        text-align: center !important;
    }

    .testimonial-author {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    .testimonial-stars {
        justify-content: center !important;
    }

    /* ---- CTA SECTION MOBILE ---- */
    .cta-card {
        flex-direction: column !important;
        text-align: center !important;
        gap: 1.5rem !important;
        padding: 2rem 1.5rem !important;
    }

    .cta-content {
        text-align: center !important;
    }

    /* ---- LOCATION SECTION MOBILE ---- */
    .location-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 2rem !important;
    }

    .location-info {
        text-align: center !important;
    }

    .location-card {
        text-align: center !important;
    }

    .location-map {
        height: 300px !important;
        border-radius: 1rem !important;
        margin: 0 auto !important;
    }

    .location-map iframe {
        border-radius: 1rem !important;
    }

    /* ---- PAGE HEADER MOBILE ---- */
    .page-header {
        padding: 6rem 0 3rem !important;
        text-align: center !important;
    }

    .page-header-content {
        text-align: center !important;
    }

    .page-title {
        font-size: 2rem !important;
        text-align: center !important;
    }

    .page-subtitle {
        text-align: center !important;
        max-width: 100% !important;
    }

    /* ---- BLOG CARDS MOBILE ---- */
    .blog-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
    }

    .blog-card {
        width: 100% !important;
    }

    /* ---- ABOUT SECTION MOBILE ---- */
    .about-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 2rem !important;
    }

    .about-content {
        text-align: center !important;
    }

    .about-stats {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 1rem !important;
    }

    .about-stat {
        text-align: center !important;
        min-width: 120px !important;
    }

    /* ---- FORM INPUTS MOBILE ---- */
    .form-group {
        margin-bottom: 1rem !important;
    }

    .form-input,
    .form-select,
    .form-textarea {
        width: 100% !important;
        font-size: 16px !important;
        /* Prevent zoom on iOS */
    }

    .form-checkbox label {
        text-align: left !important;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .container {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    .section-title {
        font-size: 1.5rem !important;
    }

    .hero-title {
        font-size: 1.75rem !important;
    }

    .card {
        padding: 1rem !important;
    }

    .footer {
        padding: 2rem 0 !important;
    }
}

/* Blog Content Fixes for Scraped Data */
.blog-item-description {
    font-family: 'Poppins', sans-serif !important;
    line-height: 1.8 !important;
    color: var(--text-color) !important;
}

.blog-item-description p {
    margin-bottom: 1.5rem !important;
    color: var(--text-color) !important;
    background-color: transparent !important;
    font-size: 1.1rem !important;
    text-align: left !important;
    /* Force left align usually better than justify for web */
    width: 100% !important;
}

/* Override MS Word junk styles */
.blog-item-description .Paragraph,
.blog-item-description [class*="SCXW"] {
    color: inherit !important;
    background-color: transparent !important;
    font-family: inherit !important;
    /* Reset weird margins */
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* ========================================
   USER REQUESTED FIXES (2026-02-01)
   ======================================== */

/* 1. DENTAL FAMILY IMAGE ZOOM OUT ON MOBILE */
@media (max-width: 768px) {
    .about-photo {
        height: auto !important;
        min-height: auto !important;
        margin-top: 2rem !important;
        display: block !important;
        width: 100% !important;
    }

    .about-photo img {
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
        /* Shows full image, no cropping */
        object-position: center !important;
        max-height: 400px !important;
    }
}

/* 2. VIDEO PLAYER FIX ON MOBILE */
@media (max-width: 768px) {
    .about-video {
        position: relative !important;
        z-index: 50 !important;
        /* Ensure on top */
        overflow: hidden !important;
        /* prevent overflow issues */
    }

    .about-video iframe {
        pointer-events: auto !important;
        position: relative !important;
        z-index: 51 !important;
        touch-action: auto !important;
        /* Ensure it fits */
        width: 100% !important;
        height: 100% !important;
        min-height: 250px !important;
    }
}

/* 3. REVIEWS FIXES */
/* Mobile: Blue review first */
@media (max-width: 768px) {
    .testimonials-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 2rem !important;
    }

    .testimonial-card.featured {
        order: -1 !important;
        margin-bottom: 1rem !important;
        transform: scale(1.02) !important;
        /* Highlight it slightly */
        z-index: 2 !important;
        position: relative !important;
    }
}

/* Full Stars */
.testimonial-stars .material-symbols-outlined {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24 !important;
}

/* 4. BLOG FEATURED ARTICLE DESIGN */
/* Center and Symmetrize */
.featured-post {
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    border-radius: 1rem !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
    background: #ffffff !important;
    margin-bottom: 4rem !important;
}

.featured-post-content {
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 3rem 2rem !important;
    background: linear-gradient(to bottom, #ffffff, #f9fafb) !important;
    width: 100% !important;
}

.featured-post-image {
    width: 100% !important;
}

.featured-post-image img {
    border-radius: 1rem 1rem 0 0 !important;
    width: 100% !important;
    max-height: 500px !important;
    object-fit: cover !important;
    display: block !important;
}

.featured-post-title {
    font-family: 'Playfair Display', serif !important;
    font-size: 3rem !important;
    font-weight: 700 !important;
    margin-bottom: 1.5rem !important;
    line-height: 1.2 !important;
    color: #1e293b !important;
    max-width: 900px !important;
    text-align: center !important;
}

.featured-post .section-label {
    margin-bottom: 1.5rem !important;
    background: rgba(74, 144, 217, 0.1) !important;
    padding: 0.5rem 1.5rem !important;
    border-radius: 2rem !important;
    color: #4A90D9 !important;
    display: inline-block !important;
    font-weight: 600 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
}

.featured-post p {
    font-size: 1.2rem !important;
    line-height: 1.8 !important;
    max-width: 750px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    color: #475569 !important;
    text-align: center !important;
    margin-bottom: 2rem !important;
}

/* Button Hover Animation */
.featured-post .btn {
    margin-top: 1rem !important;
    padding: 1rem 2.5rem !important;
    font-size: 1.1rem !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    background: #4A90D9 !important;
    color: white !important;
    box-shadow: 0 10px 20px -10px rgba(74, 144, 217, 0.5) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.featured-post .btn:hover {
    transform: translateY(-5px) scale(1.05) !important;
    background: #3b82f6 !important;
    box-shadow: 0 20px 30px -10px rgba(74, 144, 217, 0.6) !important;
}

.featured-post .btn .material-symbols-outlined {
    transition: transform 0.3s ease !important;
}

.featured-post .btn:hover .material-symbols-outlined {
    transform: translateX(5px) !important;
}

@media (max-width: 768px) {
    .featured-post-title {
        font-size: 2rem !important;
    }

    .featured-post p {
        font-size: 1rem !important;
    }

    .featured-post-content {
        padding: 2rem 1.5rem !important;
    }
}

/* ========================================
   BLOG MOBILE IMPROVEMENTS (2026-02-01)
   ======================================== */

/* Featured Post Mobile Tweak - "Un po' troppo grande" */
@media (max-width: 768px) {
    .featured-post {
        margin-bottom: 2rem !important;
    }

    .featured-post-title {
        font-size: 1.75rem !important;
        /* Reduced from 2rem/3rem */
        line-height: 1.3 !important;
    }

    .featured-post-content {
        padding: 1.5rem 1rem !important;
    }

    .featured-post .btn {
        width: 100% !important;
        justify-content: center !important;
        padding: 0.875rem 1.5rem !important;
    }
}

/* General Blog Content Improvements - "Migliora testo e formattazione" */
.article-content,
.blog-content {
    /* Base typography for articles */
    font-size: 1.1rem !important;
    line-height: 1.8 !important;
    color: #334155 !important;
}

.article-content p,
.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem !important;
}

.article-content h2 {
    font-size: 1.75rem !important;
    margin-top: 2.5rem !important;
    margin-bottom: 1rem !important;
    color: #1e293b !important;
    font-weight: 700 !important;
}

.article-content h3 {
    font-size: 1.4rem !important;
    margin-top: 2rem !important;
    margin-bottom: 0.75rem !important;
    color: #334155 !important;
    font-weight: 600 !important;
}

/* Mobile Content Specifics */
@media (max-width: 768px) {
    .article-content {
        font-size: 1.05rem !important;
        /* Slightly smaller for mobile reading */
        line-height: 1.75 !important;
        padding: 0 !important;
    }

    .article-content h2 {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
    }

    .article-content h3 {
        font-size: 1.25rem !important;
    }

    .article-content img {
        border-radius: 0.75rem !important;
        margin: 1.5rem 0 !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    }
}

/* Fix spacing in lists inside articles */
.article-content ul,
.article-content ol {
    padding-left: 1.5rem !important;
}

.article-content li {
    margin-bottom: 0.5rem !important;
}

/* Better quotes/highlights in text */
.article-content blockquote {
    border-left: 4px solid #4A90D9 !important;
    padding-left: 1.5rem !important;
    margin: 2rem 0 !important;
    font-style: italic !important;
    color: #475569 !important;
    background: #f8fafc !important;
    padding: 1.5rem !important;
    border-radius: 0 1rem 1rem 0 !important;
}

/* Fix Scraped Content Weirdness */
.article-content span,
.article-content p span {
    font-family: 'Poppins', sans-serif !important;
    background-color: transparent !important;
    font-size: inherit !important;
}

/* Force word wrapping and prevent horizontal scroll */
.article-content {
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
    hyphens: auto !important;
}

/* Better list styling for scraped data */
.article-content ul[role="list"] {
    list-style: none !important;
    padding-left: 0 !important;
}

.article-content ul[role="list"] li {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.5rem !important;
    margin-bottom: 1rem !important;
}

.article-content ul[role="list"] li::before {
    content: '•';
    color: #4A90D9;
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
}

/* Hide the original weird bullets if any */
.article-content ul[role="list"] li::marker {
    content: none !important;
}

/* ========================================
   CTA BOX FIXES (2026-02-01)
   "Riquadro a cazzo decentrato" -> Fixed to be symmetrical and contained
   ======================================== */

.prose .cta-card {
    /* Reset negative margins that caused asymmetry */
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
    width: 100% !important;

    /* Ensure symmetric padding */
    padding: 3rem 2rem !important;

    /* Center everything flex-wise just in case */
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;

    /* Box shadow and radius polish */
    box-shadow: 0 20px 40px -10px rgba(74, 144, 217, 0.25) !important;
    border-radius: 1.5rem !important;
}

/* Fix text wrapping issues */
.prose .cta-card p {
    max-width: 700px !important;
    /* increased from 500px to prevent "valu-tazione" split */
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
}

/* Ensure button is centered and looks good */
.prose .cta-card .btn {
    margin-top: 1rem !important;
    display: inline-flex !important;
    align-self: center !important;
}

/* ========================================
   CUSTOM VIDEO PLAYER OVERLAY (2026-02-01)
   "Video bello e funzionante su mobile"
   ======================================== */

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    cursor: pointer;
    border-radius: 1rem;
    /* Consistent with other elements */
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.2);
    background: #000;
    /* Fallback */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-wrapper:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.3);
}

.video-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.video-wrapper:hover .video-cover {
    opacity: 0.6;
    /* Darken slightly to pop the button */
}

/* Play Button Container */
.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Pulse animation */
.video-play-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

.video-wrapper:hover .video-play-btn {
    transform: translate(-50%, -50%) scale(1.1);
    background: #ffffff;
    box-shadow: 0 0 40px rgba(74, 144, 217, 0.6);
    /* Blue glow */
}

/* Play Icon */
.video-play-btn .material-symbols-outlined {
    font-size: 40px;
    color: #4A90D9;
    /* Primary color */
    margin-left: 4px;
    /* Visual center adjustment */
    transition: color 0.3s ease;
}

.video-wrapper:hover .video-play-btn .material-symbols-outlined {
    color: #2563eb;
    /* Darker blue */
}

/* The actual iframe once loaded */
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    border: none;
}

/* Mobile specific touch target size */
@media (max-width: 768px) {
    .video-play-btn {
        width: 70px;
        height: 70px;
    }

    .video-play-btn .material-symbols-outlined {
        font-size: 32px;
    }
}

/* ========================================
   SERVICES & VIDEO FIXES (2026-02-01)
   ======================================== */

/* 1. SERVICES SECTION */

/* "SOLO su pc togli questa sezione dei servizi" */
@media (min-width: 992px) {}

/* "su telefono lasciala... togli però i loghi... togli il cerchio bianco... lascia solo la scritta" */
@media (max-width: 991px) {}

/* 2. VIDEO PLAYER FIX */
/* "Fallo bello funzionante" - Standard iframe is most robust */
.video-wrapper {
    /* Keep the nice container */
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ========================================
   SERVIZI.PHP NAV STRIP FIXES (2026-02-01)
   ======================================== */

/* Desktop: Hide the nav strip completely */
@media (min-width: 992px) {
    .services-nav {
        display: none !important;
    }
}

/* Mobile: Text Only (Remove icons/circles) */
@media (max-width: 991px) {

    .services-nav .services-nav-item img,
    .services-nav .service-icon-img {
        display: none !important;
    }

    .services-nav-item {
        /* Center text */
        justify-content: center !important;
        text-align: center !important;
        padding: 0.75rem 1.25rem !important;
        /* Ensure no weird background/border if any */
        border: 1px solid #e2e8f0 !important;
        background: #ffffff !important;
        box-shadow: none !important;
        min-width: auto !important;
        /* Allow shrink to text */
    }

    .services-nav-item span {
        font-size: 0.95rem !important;
        font-weight: 500 !important;
        margin: 0 !important;
        /* Remove margin-left if existed due to icon */
    }
}

/* ========================================

/* Ensure full width */

.hours-grid {
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: #f8fafc;
    /* Light background for the list */
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
}







@media (max-width: 768px) {
    .hours-grid {
        gap: 0.5rem;
    }



}

/* HOURS SPACED (2026-02-01) */
.hours-simple-container {
    padding-top: 0.5rem;
    width: 100%;
}

.hours-simple-row {
    display: flex;
    justify-content: flex-start;
    gap: 2rem;
    align-items: center;
    padding-bottom: 0.5rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.hours-simple-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.hours-day {
    font-weight: 600;
    color: #1e293b;
    font-size: 1rem;
    min-width: 120px;
    flex-shrink: 0;
}

.hours-time {
    color: #475569;
    font-size: 0.95rem;
    text-align: left;
}

.hours-time.closed {
    color: #ef4444;
}

/* Mobile optimization */
@media (max-width: 768px) {
    .hours-simple-container {
        max-width: 360px;
        margin: 0 auto;
        /* Center the block */
    }
}

/* ========================================
   MOBILE MAP & ABOUT FIXES (2026-02-01)
   ======================================== */

/* 1. About Section - Remove the 50% blue background split on mobile */
@media (max-width: 768px) {
    .section-about::before {
        display: none !important;
    }

    .section-about {
        background: #ffffff !important;
    }

    /* Center About items */
    .about-features {
        display: inline-flex !important;
        flex-direction: column !important;
        text-align: left !important;
        margin: 0 auto !important;
    }
}

/* 2. Map Fix - Ensure centering on mobile */
@media (max-width: 768px) {
    .location-map {
        width: 100% !important;
        margin: 0 auto !important;
        height: 300px !important;
        border-radius: 1rem !important;
    }

    .location-map iframe {
        border-radius: 1rem !important;
    }
}

/* ========================================
   ABOUT SECTION MOBILE REFINEMENT (2026-02-01)
   "Bella, simmetrica, centrata e leggibile"
   ======================================== */

@media (max-width: 768px) {
    .section-about {
        text-align: center !important;
        padding: 4rem 0 !important;
    }

    .about-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .about-content .section-label {
        margin: 0 auto 1rem auto !important;
    }

    .about-content .section-title {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .about-lead {
        text-align: center !important;
        margin-bottom: 2rem !important;
    }

    .about-content p {
        text-align: center !important;
    }

    /* Features list - Symmetrical 2-column grid on mobile if possible, or centered list */
    .about-features {
        grid-template-columns: 1fr 1fr !important;
        gap: 1rem !important;
        text-align: left !important;
        display: grid !important;
        width: 100% !important;
        max-width: 500px !important;
        margin: 2rem auto !important;
        padding: 0 1rem !important;
    }

    @media (max-width: 480px) {
        .about-features {
            grid-template-columns: 1fr !important;
            max-width: 280px !important;
        }
    }

    .about-features li {
        justify-content: flex-start !important;
        background: rgba(74, 144, 217, 0.05) !important;
        padding: 0.75rem 1rem !important;
        border-radius: 0.75rem !important;
        font-size: 0.9rem !important;
    }

    /* Motto - Centered */
    .about-motto {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 2rem 1.5rem !important;
        margin-top: 2.5rem !important;
        width: 100% !important;
    }

    .about-motto .material-symbols-outlined {
        margin-bottom: 1rem !important;
        font-size: 32px !important;
    }

    /* Spacing between text and media */
    .about-media {
        margin-top: 3rem !important;
        gap: 2rem !important;
    }
}

/* ========================================
   ABOUT SECTION - INTELLIGENT UI/UX (2026-02-01)
   "Messo in modo intelligente, Premium UX"
   ======================================== */

@media (max-width: 768px) {

    /* Header - More prominence */
    .section-about .section-title {
        font-size: 2rem !important;
        line-height: 1.2 !important;
        margin-bottom: 2.5rem !important;
    }

    /* 1. History Card - "Intelligent grouping of roots" */
    .about-lead {
        background: #f8fafc !important;
        /* Very light slate */
        padding: 2rem 1.5rem !important;
        border-radius: 1.25rem !important;
        border-top: 4px solid #4A90D9 !important;
        text-align: left !important;
        position: relative !important;
        margin-bottom: 2.5rem !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03) !important;
        font-size: 1.1rem !important;
        font-weight: 500 !important;
        color: #1e293b !important;
    }



    /* 2. Philosophy & Features Grouping */
    .about-content>p:not(.about-lead):not(.about-motto) {
        font-size: 0.95rem !important;
        line-height: 1.7 !important;
        color: #475569 !important;
        padding: 0 0.5rem !important;
    }

    .about-features {
        margin: 2rem 0 !important;
        gap: 0.75rem !important;
    }

    .about-features li {
        background: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
        padding: 1rem !important;
        display: flex !important;
        align-items: center !important;
        gap: 0.75rem !important;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02) !important;
        border-radius: 1rem !important;
        font-size: 0.85rem !important;
        font-weight: 600 !important;
        color: #334155 !important;
    }

    .about-features li .material-symbols-outlined {
        color: #4A90D9 !important;
        background: rgba(74, 144, 217, 0.08) !important;
        padding: 5px !important;
        border-radius: 50% !important;
        font-size: 18px !important;
    }

    /* 3. Motto - High impact closing */
    .about-motto {
        margin-top: 3rem !important;
        background: linear-gradient(135deg, #ffffff, #f1f5f9) !important;
        border: 1px solid #e2e8f0 !important;
        padding: 2.5rem 1.5rem !important;
        position: relative !important;
        overflow: hidden !important;
    }

    .about-motto::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background: linear-gradient(to right, #4A90D9, #fbbf24);
    }

    /* 4. Media container polish */
    .about-media {
        padding: 0 0.5rem !important;
    }

    .video-wrapper,
    .about-photo {
        border: 4px solid #ffffff !important;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
    }
}

/* ========================================
   YOUTUBE LAZY LOADING FACADE
   ======================================== */
.youtube-facade {
    position: relative;
    cursor: pointer;
    background: #000;
}

.youtube-facade .youtube-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease !important;
}

.youtube-facade:hover .youtube-thumbnail {
    transform: scale(1.02);
    filter: brightness(0.8);
}

.youtube-facade .youtube-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.3s ease, opacity 0.3s ease !important;
}

.youtube-facade:hover .youtube-play-btn {
    transform: translate(-50%, -50%) scale(1.1);
}

.youtube-facade .youtube-play-btn svg {
    display: block;
    width: 68px;
    height: 48px;
}

.youtube-facade .youtube-play-btn .youtube-play-bg {
    transition: fill 0.2s ease;
}

.youtube-facade:hover .youtube-play-btn .youtube-play-bg {
    fill: #cc0000;
}

/* When video is playing */
.youtube-facade.playing {
    cursor: default;
}

.youtube-facade.playing iframe {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}