/* Main Styles */
html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 20px); /* Offset for fixed header + margin */
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-premium);
    cursor: pointer;
}

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

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-accent);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--color-white);
    color: var(--color-white);
}

.btn-secondary:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
    transform: translateY(-2px);
}

.btn-outline-dark {
    border: 1px solid var(--color-text-dark);
    color: var(--color-text-dark);
}

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

/* Basic Card (used in FAQ, Reviews, etc.) */
.card {
    background: var(--color-white);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-premium);
}

.card:hover {
    box-shadow: var(--shadow-premium);
    transform: translateY(-5px);
}

/* Services Section Modern Styles */
.services-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem; /* Increased gap for a more airy, premium feel */
    max-width: 1200px;
    margin: 0 auto;
}



.service-card {
    background: var(--color-white);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem; /* Reduced from 2rem */
    position: relative;
    overflow: hidden;
    transition: var(--transition-premium);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    width: 100%; /* Important for grid distribution */
    min-height: 220px; /* Reduced from 280px */
    box-shadow: 0 10px 30px -15px rgba(0,0,0,0.05);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-premium);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px -20px rgba(44, 74, 62, 0.15), 0 0 0 1px rgba(44, 74, 62, 0.05);
    border-color: rgba(44, 74, 62, 0.1);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.mobile-chevron {
    display: none;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
    color: var(--color-primary);
    transition: transform 0.3s ease;
}

.service-icon {
    width: 48px; /* Reduced from 60px */
    height: 48px; /* Reduced from 60px */
    background-color: var(--color-secondary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem; /* Reduced from 1.25rem */
    transition: var(--transition-premium);
    position: relative;
    z-index: 2;
}

/* Mobile Accordion Styles */
@media (max-width: 768px) {
    .services-container {
        gap: 0.75rem; /* Reduced gap for compact view */
    }

    .mobile-chevron {
        display: block;
        top: 1.2rem; /* Adjust alignment */
        right: 1.2rem;
    }

    .service-card {
        cursor: pointer;
        min-height: auto;
        padding: 1.25rem; /* Reduced padding */
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    /* Hide icon on mobile as requested */
    .service-card .service-icon {
        display: none;
    }

    .service-card h3 {
        font-size: 1.15rem;
        margin-bottom: 0; /* Remove margin when collapsed */
        font-weight: 600;
        padding-right: 2rem; /* Space for chevron */
    }

    /* Hide description and link by default */
    .service-card p,
    .service-card .service-link {
        display: none;
        opacity: 0;
    }

    /* Expanded State */
    .service-card.expanded p {
        display: block;
        margin-top: 1rem;
        margin-bottom: 1rem;
        animation: fadeIn 0.4s ease forwards;
        font-size: 0.95rem;
    }

    .service-card.expanded .service-link {
        display: inline-flex;
        animation: fadeIn 0.4s ease forwards;
    }

    .service-card.expanded .mobile-chevron {
        transform: rotate(180deg);
        color: var(--color-accent);
    }
    
    .service-card.expanded {
        background-color: #fff;
        border-color: var(--color-primary);
    }
}

.service-icon i {
    font-size: 2.5rem;
    color: var(--color-primary);
    transition: var(--transition-premium);
}

.service-card:hover .service-icon {
    background-color: var(--color-primary);
    transform: rotate(-5deg) scale(1.1);
    box-shadow: 0 10px 20px rgba(44, 74, 62, 0.2);
}

.service-card:hover .service-icon i {
    color: var(--color-white);
}

.service-content {
    position: relative;
    z-index: 2;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-card h3 {
    font-family: var(--font-sans); /* Changed from Serif to Sans for a 'sweeter', softer look */
    font-size: 1.1rem; /* Reduced from 1.25rem */
    margin-bottom: 0.5rem; /* Reduced from 0.75rem */
    color: var(--color-primary);
    line-height: 1.3;
    font-weight: 600;
    transition: var(--transition-premium);
    position: relative;
    display: inline-block;
    letter-spacing: -0.02em; /* Tighter letter spacing for modern sans */
}

.service-card h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--color-accent);
    transition: var(--transition-premium);
    opacity: 0.6;
}

.service-card:hover h3 {
    color: var(--color-text-dark);
}

.service-card:hover h3::after {
    width: 60px;
    opacity: 1;
    background-color: var(--color-primary);
}

.service-card p {
    color: var(--color-text-main);
    line-height: 1.4; /* Reduced from 1.5 */
    margin-bottom: 1rem; /* Reduced from 1.5rem */
    font-size: 0.95rem; /* Slightly smaller text */
}

.service-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-decoration: none;
    transition: var(--transition-premium);
}

.service-link i {
    transition: transform 0.3s ease;
}

.service-card:hover .service-link {
    color: var(--color-accent);
}

.service-card:hover .service-link i {
    transform: translateX(5px);
}

/* Background decorative element */
.service-card::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
    opacity: 0.02;
    border-radius: 50%;
    transition: var(--transition-premium);
}

.service-card:hover::after {
    opacity: 0.05;
    transform: scale(1.2);
}

/* Scroll Buttons */
.services-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--color-white);
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: var(--shadow-md);
    display: flex; /* Hidden by default, shown in media query */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--color-primary);
    z-index: 10;
    transition: var(--transition-premium);
    opacity: 0; /* Hidden on mobile */
    pointer-events: none;
}

.scroll-btn:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: var(--shadow-premium);
}

.scroll-btn.prev { left: -24px; }
.scroll-btn.next { right: -24px; }

@media (min-width: 769px) {
    .scroll-btn {
        display: none !important; /* Hide scroll buttons on desktop as requested */
    }
    
    .services-container {

        display: flex;
        flex-wrap: wrap; /* Allow wrapping to show all items */
        justify-content: center; /* Center items */
        overflow-x: visible; /* Remove scroll */
        gap: 1.5rem;
        padding-bottom: 0;
        padding-left: 0;
        scroll-snap-type: none; /* Remove snap */
        /* Remove Scrollbar Styling */
        scrollbar-width: auto;
    }

    .services-container::-webkit-scrollbar {
        height: 8px;
    }

    .services-container::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 4px;
    }

    .services-container::-webkit-scrollbar-thumb {
        background: var(--color-primary);
        border-radius: 4px;
    }
    
    .services-container::-webkit-scrollbar-thumb:hover {
        background: var(--color-primary-light);
    }
    
    /* Ensure optimal fit for 3 cards per row */
    .service-card {
        flex: 0 1 calc(33.333% - 1.0rem); /* 3 per row minus gap */
        max-width: none; 
        min-width: 300px; 
        width: auto; 
        scroll-snap-align: none;
        margin-right: 0;
        padding: 2rem; 
        min-height: 280px; 
        display: flex;
        flex-direction: column;
    }

    .service-content {
        display: flex;
        flex-direction: column;
        flex-grow: 1;
    }

    .service-link {
        margin-top: auto; /* Push button to bottom */
    }

    /* Wide Cards (Dynamic Grid - Bottom Row) */
    .service-card.service-card-wide {
        flex: 0 1 calc(50% - 1.0rem); /* 2 per row */
        flex-direction: row; /* Horizontal Layout */
        align-items: center;
        gap: 1.5rem;
    }

    .service-card.service-card-wide .service-icon {
        margin-bottom: 0;
        width: 80px; /* Larger icon area */
        height: 80px;
        flex-shrink: 0;
    }

    .service-card.service-card-wide .service-icon i {
        font-size: 2.5rem;
    }

    .service-card.service-card-wide .service-content {
        text-align: left;
        align-items: flex-start;
    }
}


/* Responsive adjustments */
@media (max-width: 480px) {
    .service-card {
        padding: 1.5rem;
        min-height: auto;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1.5rem;
    }
}

/* --- New Service Page Specific Styles (Zig-Zag / Wide Cards) --- */
.services-list-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg); /* Larger gap between rows */
    max-width: 1000px;
    margin: 0 auto;
}

.service-wide-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    background: #F0F2F1; /* Subtle contrast as requested */
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-md);
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-premium);
    overflow: hidden;
    position: relative;
    /* align-items: center; -> moved to desktop media query */
}

/* IconWrapper for Wide Card */
.service-wide-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-secondary);
    border-radius: var(--border-radius-md);
    height: 200px; /* Fixed height for visual consistency */
    width: 100%;
    transition: var(--transition-premium);
}

.service-wide-icon i {
    font-size: 5rem;
    color: var(--color-primary);
    transition: var(--transition-premium);
}

/* Service Wide Image (New) */
.service-wide-image {
    width: 100%;
    height: 200px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: var(--transition-premium);
}

.service-wide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-premium);
}

.service-wide-card:hover .service-wide-image img {
    transform: scale(1.05);
}

.service-wide-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--spacing-xs);
}

.service-wide-content h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
}

.service-wide-content p {
    color: var(--color-text-main);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

/* Hover Effects */
.service-wide-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-premium);
}

.service-wide-card:hover .service-wide-icon {
    background-color: var(--color-primary);
}

.service-wide-card:hover .service-wide-icon i {
    color: var(--color-white);
    transform: scale(1.1);
}

/* Desktop Zig-Zag Layout */
@media (min-width: 769px) {
    .service-wide-card {
        grid-template-columns: 1fr 1.5fr; /* Icon Area : Content Area */
        gap: var(--spacing-lg);
        padding: var(--spacing-lg);
        min-height: 300px;
    }

    /* Alternating Layout */
    .service-wide-card:nth-child(even) {
        grid-template-columns: 1.5fr 1fr; /* Content Area : Icon Area */
    }
    
    .service-wide-card:nth-child(even) .service-wide-icon {
        order: 2; /* Move icon to right */
    }
    
    .service-wide-card:nth-child(even) .service-wide-content {
        order: 1; /* Move content to left */
        text-align: right; /* Align text to right for symmetry */
        align-items: flex-end; /* Align button to right */
    }

    .service-wide-icon,
    .service-wide-image {
        height: 100%; /* Fill height on desktop */
        min-height: 250px;
    }

    .service-wide-card:nth-child(even) .service-wide-image {
        order: 2; /* Move image to right for alternating layout */
    }
}


/* Navbar */
.navbar {
    height: var(--header-height);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--glass-border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
    will-change: background-color, backdrop-filter;
    contain: layout;
}

/* Stato Trasparente (Initial) */
.navbar.navbar-transparent {
    background: transparent;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: none;
    box-shadow: none;
}

/* Colori link quando navbar è trasparente su desktop (su margine bianco) */
@media (min-width: 769px) {
    .navbar.navbar-transparent {
        background: rgba(255, 255, 255, 0.5);
        backdrop-filter: blur(10px);
    }

    .navbar.navbar-transparent .nav-links a,
    .navbar.navbar-transparent .logo,
    .navbar.navbar-transparent .menu-toggle {
        color: var(--color-text-dark) !important;
        text-shadow: none;
    }
    
    .navbar.navbar-transparent .btn-primary {
         background: var(--color-accent);
         border-color: var(--color-accent);
         color: #FFFFFF;
    }
}

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

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

.text-white {
    color: var(--color-white) !important;
}

/* Scrolled State */
.navbar.navbar-scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    border-bottom-color: rgba(0,0,0,0.05);
}

.navbar.navbar-scrolled .nav-links a,
.navbar.navbar-scrolled .logo,
.navbar.navbar-scrolled .menu-toggle {
    color: var(--color-text-dark) !important;
}

.navbar.navbar-scrolled .logo img {
    filter: none !important;
    opacity: 1 !important;
}

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

.nav-links {
    display: flex;
    gap: var(--spacing-md);
}

.nav-links a {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-dark);
}

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

/* Logo Styles */
.logo {
    font-size: 1.2rem; /* Mobile default */
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
    transition: height 0.4s ease, filter 0.4s ease;
    will-change: height, filter;
}

@media (min-width: 769px) {
    .logo {
        font-size: 1.5rem;
    }
    
    .logo img {
        height: 60px; /* Desktop size increased */
    }
}

/* Mobile Menu Trigger */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--color-primary);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10000; /* Ensure button stays on top of dropdown */
    position: relative;
    padding: 0.5rem; /* Better tap target */
    margin-right: -0.5rem; /* Align visual edge */
}

/* Ensure Icon inside toggle has dimensions */
.menu-toggle i {
    display: inline-block;
    vertical-align: middle;
    width: 24px;
    height: 24px;
    font-size: 1.5rem; /* Ensure consistent size */
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .nav-links {
        display: none; /* JS will toggle this */
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--color-white);
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: var(--shadow-md);
        text-align: center;
    }
    
    .nav-links.active {
        display: flex !important;
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    /* Animation */
    .nav-links {
        transition: transform 0.3s ease, opacity 0.3s ease;
        transform: translateY(-10px);
        opacity: 1; /* Was opacity 0 but keeping visible hidden is better if we use js toggle */
        /* Actually lets stick to display toggle for now to be safe, but add transitions if possible */
        /* Given the JS uses class toggle for display, we'll keep display but ensure it works */
    }

    /* Mobile Menu overrides for transparent header */
    .navbar.navbar-transparent .nav-links {
        background: white; /* Always white bg/dark text on mobile dropdown for readability */
    }
    .navbar.navbar-transparent .nav-links a {
        color: var(--color-text-dark);
    }
}

/* Light Page Mode (For pages with white background at top) */
/* Inverts white navbar elements to dark when transparent */
body.light-page .navbar.navbar-transparent .logo img {
    filter: brightness(0); /* Turns white logo to black */
}

body.light-page .navbar.navbar-transparent .menu-toggle {
    color: var(--color-primary) !important;
}

body.light-page .navbar.navbar-transparent .nav-links a {
    color: var(--color-text-dark);
}

body.light-page .navbar.navbar-transparent {
    border-bottom: 1px solid rgba(0,0,0,0.05); /* Subtle dark border instead of white */
}

/* Ensure links are dark on desktop too for light pages */
@media (min-width: 769px) {
    body.light-page .navbar.navbar-transparent .nav-links a,
    body.light-page .navbar.navbar-transparent .logo {
        color: var(--color-text-dark) !important;
    }
}


/* Footer */
footer {
    background-color: var(--color-secondary);
    padding: var(--spacing-lg) 0;
    margin-top: var(--spacing-xl);
}

/* Services Section Background */
#servizi {
    background-color: #f9f9f9;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

#servizi::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(44, 74, 62, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}

#servizi::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(224, 122, 95, 0.03) 0%, transparent 70%); /* Accent color hint */
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}

#servizi .container {
    position: relative;
    z-index: 2;
}

/* Hero Moderno */
.hero-fullscreen {
    position: relative;
    min-height: 100vh; /* Fallback */
    min-height: 100svh; /* Mobile stable (prevents jump) */
    background-image: url('https://res.cloudinary.com/dt0ytwmol/image/upload/f_auto,q_auto,w_1920/v1771178399/profilo2_ha0leg.jpg');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
}

@media (min-width: 769px) {
    .hero-fullscreen {
        margin-top: calc(var(--header-height) + 20px); /* Ripristino margine reale tra navbar e hero */
        min-height: calc(100vh - var(--header-height) - 40px);
        border-radius: var(--border-radius-lg); /* Toque de design per la hero separata */
        width: 95%;
        max-width: 1400px; /* Limit width */
        margin-left: auto;
        margin-right: auto;
        background-size: contain !important; /* Forces image to be fully visible */
        background-repeat: no-repeat;
        background-position: center top;
        background-position: center top; 
        background-size: 100% auto; /* Forces image to fit width, showing it 'further away' */
    }
    
    .hero-content {
        padding-top: var(--spacing-md); /* Reset padding */
    }
}

/* Overlay scuro per leggibilità - Migliorato */
.hero-overlay {
    position: absolute;
    inset: 0;
    /* Gradiente più sofisticato: scuro sopra per navbar, scuro sotto per testo, chiaro al centro per immagine */
    /* Dual Gradient: Vignette for focus + Dark bottom for text */
    background: 
        radial-gradient(circle at 50% 50%, rgba(0,0,0,0) 0%, rgba(0,0,0,0.2) 100%),
        linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1100px;
    padding: var(--spacing-md);
    text-align: center;
    color: var(--color-white);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1.1;
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5); /* Ombra più forte per contrasto */
    color: #FFFFFF !important; /* FORZATO BIANCO */
}

.hero-subtitle {
    font-family: var(--font-sans);
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-weight: 400; /* Un po' più grassetto */
    color: #F0F0F0 !important; /* FORZATO QUASI BIANCO */
    margin-bottom: var(--spacing-lg);
    max-width: 700px;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-quote-small {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(1.1rem, 2.2vw, 1.4rem); /* Slightly larger */
    color: #ffffff;
    margin-bottom: var(--spacing-sm);
    display: inline-block;
    letter-spacing: 0.5px;
    font-weight: 600; /* Bolder */
    text-shadow: 0 2px 4px rgba(0,0,0,0.8); /* Better shadow */
}

.hero-actions {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    width: 100%;
}

@media (max-width: 768px) {
    .hero-fullscreen {
        background-image: url('https://res.cloudinary.com/dt0ytwmol/image/upload/f_auto,q_auto,w_800/v1771178399/profilo4_ldxzpu.jpg');
        background-attachment: scroll;
        min-height: 100vh;
        min-height: 100svh; /* Mobile stable to prevent address bar jump */
        align-items: center;
        justify-content: center;
        padding-top: 0; /* Remove top padding to allow real fullscreen centering */
        padding-bottom: 0;
    }

    .hero-content {
        align-items: center;
        text-align: center;
        padding: 0 var(--spacing-sm);
        margin-top: 0; /* Remove margin, centering should be handled by flex */
    }

    .hero-title {
        font-size: clamp(2rem, 10vw, 2.8rem); /* Slightly larger and more dynamic */
        line-height: 1.15;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        line-height: 1.5;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        width: 100%;
        padding: 0 1rem;
        justify-content: center;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 100%;
        padding: 1rem;
        font-size: 0.95rem;
    }

    /* Small Mobile Devices (< 400px) */
    @media (max-width: 400px) {
        .hero-title {
            font-size: 1.8rem;
        }
        .hero-quote-small {
            font-size: 0.9rem;
            margin-bottom: 0.25rem;
        }
        .hero-subtitle {
            font-size: 0.9rem;
        }
        .hero-fullscreen {
            padding-top: 0;
        }
    }

    /* Navbar initially transparent on mobile too */
    .navbar.navbar-transparent {
        background: transparent !important;
        backdrop-filter: none !important;
        box-shadow: none !important;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .navbar.navbar-transparent .menu-toggle {
        color: var(--color-white) !important; /* Force white toggle */
        display: block !important;
    }

    .navbar.navbar-transparent .logo img {
        filter: brightness(0) invert(1); /* Make logo white on dark background */
        opacity: 0.9;
    }

    /* Since the logo is an image and presumably has dark text, we might need a filter or just accept it as is if it's well-designed for dark/light. 
       Usually, a white version of the logo would be better, but I'll stick to transparency first. */
    
    .hero-quote-small {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-content > * {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0; /* Initial state */
}

.hero-quote-small { animation-delay: 0.1s; }
.hero-title { animation-delay: 0.2s; }
.hero-subtitle { animation-delay: 0.3s; }
.hero-actions { animation-delay: 0.4s; }

/* Bio Section - Experience Cards */
.bio-section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
}

.bio-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--color-primary);
}

.detail-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--color-primary);
    height: 100%;
    transition: transform 0.2s ease;
}

.detail-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.detail-card h4 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.detail-card .date {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
    display: block;
    font-weight: 600;
}

/* Service Indications Grid */
.indication-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.indication-item {
    display: flex;
    align-items: flex-start;
    padding: 1.5rem;
    background-color: #F9FAFB;
    border-radius: var(--border-radius-sm);
    border: 1px solid #E5E7EB;
    transition: transform 0.2s ease;
}

.indication-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.indication-item i {
    font-size: 1.5rem;
    color: var(--color-accent);
    margin-right: 1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.indication-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--color-text-dark);
}

.indication-item p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.5;
}

/* Fix for fixed navbar overlapping content on service pages */
main.section-padding {
    padding-top: calc(var(--header-height) + var(--spacing-md));
}

/* Studio Section Custom Grid */
.studio-grid {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

/* Default Mobile Order */
.studio-img-1 { order: 1; }
.studio-text { order: 2; }
.studio-img-2 { order: 3; }
.studio-card { order: 4; }

@media (min-width: 769px) {
    .studio-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto; /* Content row, Card row */
        gap: var(--spacing-lg) var(--spacing-md);
        align-items: start;
        position: relative;
    }

    .studio-text {
        grid-column: 1;
        grid-row: 1;
        align-self: center;
        padding-right: var(--spacing-lg);
        z-index: 2;
    }

    /* Image 1: Main Atmosphere (Top Right) */
    .studio-img-1 {
        grid-column: 2;
        grid-row: 1;
        width: 85%;
        height: 400px;
        justify-self: end;
        object-fit: cover;
        border-radius: var(--border-radius-md);
        box-shadow: var(--shadow-soft);
    }

    /* Image 2: Detail (Bottom Left of Column 2 - Overlapping) */
    .studio-img-2 {
        grid-column: 2;
        grid-row: 1;
        width: 60%;
        height: 280px;
        align-self: end; /* Aligns to bottom of the row */
        justify-self: start;
        margin-bottom: -30px; /* Slight overlap push down */
        margin-left: -30px; /* Pull left to overlap text slightly or just create dynamic feel */
        object-fit: cover;
        border-radius: var(--border-radius-md);
        border: 5px solid var(--color-white);
        box-shadow: var(--shadow-premium);
        z-index: 2;
        position: relative;
        top: 40px; /* Push down to overlap Img 1 visually */
    }

    .studio-card {
        grid-column: 1 / -1; /* Spans full width */
        grid-row: 2;
        margin-top: 4rem; /* Space from the overlap composition */
        width: 100%;
    }
}

/* =========================
   RECENSIONI (scope)
   ========================= */
#recensioni{
  --brand: #2f6b4f;
  --text: #0f172a;
  --muted: #475569;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --border: rgba(15, 23, 42, .10);
  --shadow: 0 12px 30px rgba(15, 23, 42, .10);
  --shadow-hover: 0 18px 46px rgba(15, 23, 42, .16);
  --radius: 18px;
}

#recensioni .container{
  max-width: 1100px;
}

/* Titolo: più “editoriale” e centrato bene */
#recensioni h2{
  color: var(--text);
  letter-spacing: -0.02em;
  font-weight: 700;
}

/* Wrapper: tieni la tua grid su desktop, ma rendila più “compatta” e allineata */
#recensioni .testimonials-slider{
  align-items: stretch;
}

/* Card: nuovo look premium */
#recensioni .testimonial-card{
  /* sovrascrive gli inline style */
  text-align: left !important;

  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 26px;
  position: relative;

  display: flex;
  flex-direction: column;
  gap: 14px;

  min-height: 280px;
  overflow: hidden;
  transform: translateZ(0);
}

/* Accento laterale (molto diverso dallo “shadow-only”) */
#recensioni .testimonial-card::before{
  content: "";
  position: absolute;
  inset: 0;
  border-left: 6px solid color-mix(in srgb, var(--brand) 65%, transparent);
  pointer-events: none;
}

/* Virgolette decorative */
#recensioni .testimonial-card::after{
  content: "“";
  position: absolute;
  top: -8px;
  right: 14px;
  font-size: 86px;
  line-height: 1;
  color: rgba(47, 107, 79, .12);
  font-weight: 800;
  pointer-events: none;
}

/* Stelle: allineamento + dimensione coerente */
#recensioni .testimonial-card .text-accent{
  color: var(--brand);
  display: flex;
  align-items: center;
  gap: 6px;
}

#recensioni .testimonial-card .ph-star{
  font-size: 18px;
  filter: drop-shadow(0 2px 6px rgba(47, 107, 79, .18));
}

/* Testo recensione: più leggibile e “calmo” */
#recensioni .testimonial-card p.mb-md.text-light{
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
  margin: 0;
  font-style: italic; /* mantieni la tua scelta anche se ora è già inline */
}

/* Firma: inchiodata in basso + stile migliore */
#recensioni .testimonial-card p.font-bold{
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed rgba(15, 23, 42, .12);
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Hover: effetto premium */
#recensioni .testimonial-card{
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

#recensioni .testimonial-card:hover{
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(47, 107, 79, .25);
}

/* Focus visibile (utile se aggiungi tabindex o link dentro le card) */
#recensioni :is(a, button, .testimonials-slider, [tabindex]):focus-visible{
  outline: 3px solid color-mix(in srgb, var(--brand) 55%, #ffffff);
  outline-offset: 4px;
  border-radius: 12px;
}

/* =========================
   Mobile: “carousel” con scroll-snap
   ========================= */
@media (max-width: 768px){
  /* Trasforma la grid in scorrimento orizzontale */
  #recensioni .testimonials-slider{
    display: flex !important;     /* bypass eventuale .grid */
    gap: 14px;
    overflow-x: auto;
    padding: 6px 8px 18px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  #recensioni .testimonial-card{
    flex: 0 0 86%;
    scroll-snap-align: start;
    min-height: 260px;
  }
}

/* =========================
   Riduci animazioni se richiesto
   ========================= */
@media (prefers-reduced-motion: reduce){
  #recensioni *{
    transition: none !important;
    scroll-behavior: auto !important;
  }

  #recensioni .testimonial-card:hover{
    transform: none;
  }
}

/* =========================
   STUDIO (scope)
   ========================= */
#studio{
  --brand: #2f6b4f;
  --text: #0f172a;
  --muted: #475569;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --border: rgba(15, 23, 42, .10);
  --shadow: 0 14px 40px rgba(15, 23, 42, .12);
  --radius: 18px;
}

#studio .container{
  max-width: 1100px;
}

/* Griglia: testo+card a sinistra, immagini a destra (mosaico) */
#studio .studio-grid{
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  grid-template-areas:
    "text img1"
    "card img2";
  gap: clamp(16px, 2.2vw, 28px);
  align-items: start;
}

/* Testo: gerarchia migliore */
#studio .studio-text{ grid-area: text; }

#studio .studio-text span{
  color: var(--brand);
  letter-spacing: .12em;
  opacity: .95;
}

#studio .studio-text h2{
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

#studio .studio-text p{
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
  max-width: 60ch;
}

/* Card: più “pulita” e con accento */
#studio .studio-card{
  grid-area: card;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 22px;
  position: relative;
  overflow: hidden;
}

#studio .studio-card::before{
  content: "";
  position: absolute;
  inset: 0;
  border-left: 6px solid color-mix(in srgb, var(--brand) 65%, transparent);
  pointer-events: none;
}

#studio .studio-card h4{
  color: var(--text);
  margin-bottom: 10px;
}

#studio .studio-card .ph-map-pin{
  margin-right: 8px; /* sostituisce inline style */
}

/* Link “mappa”: più visibile e coerente */
#studio .studio-card a{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  text-decoration: none;
  font-weight: 700;
}

#studio .studio-card a:hover{
  text-decoration: underline;
  text-underline-offset: 3px;
}

#studio :is(a, button, [tabindex]):focus-visible{
  outline: 3px solid color-mix(in srgb, var(--brand) 55%, #ffffff);
  outline-offset: 4px;
  border-radius: 12px;
}

/* Immagini: mosaico elegante, dimensioni coerenti */
#studio .studio-img-1{ grid-area: img1; }
#studio .studio-img-2{ grid-area: img2; }

#studio .studio-img-1,
#studio .studio-img-2{
  width: 100% !important;              /* sovrascrive inline */
  border-radius: var(--radius) !important;
  object-fit: cover !important;         /* evita deformazioni [web:22] */
  display: block;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* Altezze coerenti senza “salti” usando aspect-ratio [web:17] */
#studio .studio-img-1{ aspect-ratio: 16 / 10; }
#studio .studio-img-2{ aspect-ratio: 4 / 3; }

/* Piccolo “lift” sulle immagini */
#studio .studio-img-1,
#studio .studio-img-2{
  transition: transform .22s ease, box-shadow .22s ease;
}

#studio .studio-img-1:hover,
#studio .studio-img-2:hover{
  transform: translateY(-6px);
  box-shadow: 0 18px 54px rgba(15, 23, 42, .16);
}

/* Responsive: sotto 900px impila bene e fai respirare le immagini */
@media (max-width: 900px){
  #studio .studio-grid{
    grid-template-columns: 1fr;
    grid-template-areas:
      "text"
      "img1"
      "img2"
      "card";
  }

  #studio .studio-text p{ max-width: 70ch; }
}

/* Riduci motion se richiesto [web:2] */
@media (prefers-reduced-motion: reduce){
  #studio *{
    transition: none !important;
    scroll-behavior: auto !important;
  }

  #studio .studio-img-1:hover,
  #studio .studio-img-2:hover{
    transform: none;
  }
}

/* =========================
   STUDIO SLIDER (scope)
   ========================= */

/* Common Slider Styles */
.image-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    width: 100%;
}

.image-slider::-webkit-scrollbar {
    display: none;
}

.slider-img {
    width: 100%;
    height: auto;
    flex-shrink: 0;
    scroll-snap-align: center;
    object-fit: cover;
    aspect-ratio: 16/9; /* Landscape for studio */
}

/* Studio Specific Override */
/* Renamed to match HTML class */
.studio-grid .studio-slider-wrapper {
    width: 100%;
    position: relative; /* For absolute positioning of arrows */
}

/* Slider Navigation Buttons */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3); /* Subtle background */
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    width: 36px; /* Slightly smaller */
    height: 36px;
    display: flex; /* Flex to center icon */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: none; /* No shadow by default */
    z-index: 10;
    transition: all 0.2s ease;
    color: var(--color-primary);
    font-size: 1.1rem;
    opacity: 0; /* Hidden by default until hover of container or always visible but subtle? User asked "less invasive". Let's verify instructions. */
    /* "Non deve essere cliccabile" -> handled by JS + opacity/pointer-events */
    opacity: 0.5; /* Slightly more subtle by default */
}

.services-wrapper {
    position: relative;
}

/* Hover on wrapper to make buttons clearer? Or just hover on button? */
.studio-slider-wrapper:hover .slider-nav,
.services-wrapper:hover .slider-nav {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.slider-nav:hover {
    background: white !important;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2) !important;
}

.slider-nav.disabled {
    opacity: 0;
    pointer-events: none;
    cursor: default;
}

.slider-nav.prev { left: 10px; }
.slider-nav.next { right: 10px; }


/* Update Desktop Studio Layout to align Text+Card Left, Slider Right */
@media (min-width: 769px) {
    .studio-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto; /* Text row, Card row */
        align-items: start;
        grid-template-areas: none; /* Reset areas */
    }
    
    .studio-text {
        grid-column: 1;
        grid-row: 1;
        padding-right: var(--spacing-lg);
    }
    
    .studio-card {
        grid-column: 1; /* Keep on Left */
        grid-row: 2;
        margin-top: 0; /* Adjust spacing */
        align-self: start;
    }
    
    .studio-slider-wrapper {
        grid-column: 2;
        grid-row: 1 / span 2; /* Span full height of left column content */
        height: 100%;
        display: flex;
        align-items: center; /* Center slider vertically in the right column */
    }

    .image-slider {
        /* Ensure slider takes full height/width available or fixed aspect */
        height: auto;
        min-height: 400px; /* Min height for presence */
    }
    
    .slider-img {
        aspect-ratio: 4/5; /* Portrait-ish or taller aspect for the side column? Or keep 16/9?
                             User said "swiitchare scrollandole".
                             If it's a side column, maybe rectangle.
                             Let's stick to 4/3 or 16/9 but ensure consistent size. */
        aspect-ratio: 4/3;
        height: 100%;
        object-fit: cover;
    }
}

/* Restore/Handle Mobile "As Is" */
@media (max-width: 768px) {
    .studio-grid {
        display: flex;
        flex-direction: column;
    }

    /* 
       Mobile Order Strategy:
       User likes "Img1 -> Text -> Img2 -> Card".
       We grouped images into .studio-slider-wrapper.
       We can't easily split them.
       Best compromise: Slider (Images) -> Text -> Card.
       OR Text -> Slider -> Card.
       
       Let's try: Slider (Top) -> Text -> Card.
       This mimics the "Img1 Top" feel.
    */
    .studio-slider-wrapper { order: 1; margin-bottom: var(--spacing-md); }
    .studio-text { order: 2; }
    .studio-card { order: 3; }
    
    .slider-img {
        aspect-ratio: 16/9; /* Widescreen for mobile */
    }
}

/* =========================
   FAQ SECTION
   ========================= */
.faq-item {
    transition: var(--transition-premium);
}

.faq-item:hover {
    border-color: var(--color-primary-light);
}

.faq-item p {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 0 !important;
}

.faq-item.active {
    border-color: var(--color-primary);
    background-color: var(--color-white);
}

.faq-item.active p {
    max-height: 200px; /* Sufficient for FAQ answers */
    opacity: 1;
    margin-top: 1rem !important;
    padding-bottom: 0.5rem;
}

.faq-item .ph-caret-down {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .ph-caret-down {
    transform: rotate(180deg);
    color: var(--color-accent);
}

/* =========================
   FINAL CTA REDESIGN
   ========================= */
.final-cta {
    background-color: var(--color-primary);
    position: relative;
    overflow: hidden;
    padding: 3rem 0; /* Significantly reduced for desktop compact view */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Background elements for the final CTA */
.final-cta::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(224, 122, 95, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

.final-cta::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(74, 124, 89, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

.cta-glass-card {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    padding: 2rem; /* Compact padding */
    max-width: 800px;
    width: 90%;
    text-align: center;
    box-shadow: 0 40px 100px -20px rgba(0,0,0,0.3);
}

.cta-tagline {
    display: block;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--spacing-xs); /* Smaller margin */
}

.final-cta h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 2.5vw, 2rem); /* Even smaller */
    color: var(--color-white);
    margin-bottom: var(--spacing-sm); /* Reduced margin */
    line-height: 1.2;
}

.final-cta p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem; /* Standard text size */
    line-height: 1.6;
    margin-bottom: 2rem; /* Fixed comfortable margin */
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-btn-wrapper {
    display: flex;
    justify-content: center;
}

.btn-cta-premium {
    background-color: var(--color-white);
    color: var(--color-primary);
    padding: 1.2rem 3rem;
    border-radius: 50px; /* Pill shape for premium feel */
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 2px solid var(--color-white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.btn-cta-premium:hover {
    background-color: transparent;
    color: var(--color-white);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .final-cta {
        padding: var(--spacing-lg) 0;
    }
    
    .cta-glass-card {
        padding: var(--spacing-md) var(--spacing-sm);
    }
    
    .final-cta h2 {
        font-size: 1.75rem;
    }
    
    .btn-cta-premium {
        padding: 1rem 2rem;
        width: 100%;
    }
}

.cta-secondary-contact {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-secondary-contact p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
}

.cta-secondary-contact a {
    color: var(--color-white);
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    transition: var(--transition-premium);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-secondary-contact a:hover {
    color: var(--color-accent);
    transform: translateX(5px);
}



/* =========================
   CONTACT PAGE REFINEMENTS
   ========================= */

.icon-box {
    background: var(--color-secondary);
    padding: 12px;
    border-radius: 12px;
    margin-right: 20px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: var(--transition-premium);
}

.icon-box i {
    font-size: 1.5rem;
    color: var(--color-primary);
}

.flex.items-start:hover .icon-box {
    transform: scale(1.1) rotate(-5deg);
    background-color: var(--color-primary);
}

.flex.items-start:hover .icon-box i {
    color: var(--color-white);
}

.glass-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
}

.whatsapp-icon-wrapper {
    background: #25D366;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    position: relative;
    z-index: 1;
}

.whatsapp-icon-wrapper i {
    font-size: 3.5rem;
    color: white;
}

.whatsapp-icon-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: #25D366;
    z-index: -1;
    animation: pulse-whatsapp 2s infinite;
}

@keyframes pulse-whatsapp {
    0% { transform: scale(1); opacity: 0.5; }
    70% { transform: scale(1.3); opacity: 0; }
    100% { transform: scale(1.3); opacity: 0; }
}

.btn-whatsapp {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #25D366;
    border: 2px solid #25D366;
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--border-radius-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-premium);
}

.btn-whatsapp:hover {
    background: transparent;
    color: #25D366;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.15);
}

@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .glass-card {
        margin-top: 2rem;
    }
}

/* =========================
   CHI SONO PAGE ENHANCEMENTS
   ========================= */

/* Animations */
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.animate-fade-in-right {
    animation: fadeInRight 0.8s ease-out forwards;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.8s ease-out forwards;
}

/* Timeline Components */
.timeline-wrapper {
    position: relative;
    padding-left: 2rem;
}

.timeline-item {
    position: relative;
    margin-bottom: var(--spacing-lg);
}

.timeline-dot {
    position: absolute;
    left: -2.55rem; /* Precise alignment with 2rem padding (32px + 8px center) */
    top: 1.5rem;
    width: 16px; 
    height: 16px;
    background: var(--color-primary);
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--color-primary);
    z-index: 2;
    transition: background-color 0.3s ease;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item:hover .timeline-dot {
    background-color: var(--color-accent);
    box-shadow: 0 0 0 2px var(--color-accent);
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-premium);
}

/* Spacing Helpers (if missing in utilities) */
.gap-xl { gap: 4rem; }
.pt-xl { padding-top: 4rem; }
.pb-xl { padding-bottom: 4rem; }
.mb-xl { margin-bottom: 4rem; }

/* Responsive adjustments */
/* Responsive adjustments */
@media (max-width: 768px) {
    .gap-xl { gap: 2rem; }
    .pt-xl { padding-top: 2rem; }
    
    .timeline-wrapper {
        padding-left: 1.5rem;
    }
    
    .timeline-dot {
        left: -1.95rem; /* Adjusted for smaller padding */
        width: 14px;
        height: 14px;
        top: 1.25rem;
    }
}

/* Inner Page Padding Utility */
.pt-header {
    padding-top: calc(var(--header-height) + 2rem);
}
@media (max-width: 768px) {
    .pt-header {
        padding-top: calc(var(--header-height) + 1.5rem);
    }
}
/* Method Section Styles - Minimalist & Colorful */
.method-card {
    background: var(--color-white);
    border: 1px solid rgba(0,0,0,0.04); /* Very subtle border */
    border-radius: var(--border-radius-lg);
    padding: 3rem 2rem;
    position: relative;
    transition: all 0.4s ease;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03); /* Minimal shadow */
}

/* Hover Effect: Lift & Subtle Color Glow */
.method-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.01);
    border-color: rgba(44, 74, 62, 0.1); /* Slight primary tint on border */
}

/* Icon Wrapper Styling */
.method-icon-wrapper {
    width: 70px;
    height: 70px;
    background-color: #F0FAF5; /* Very light primary tint background */
    border-radius: 20px; /* Soft squiggle/rounded square */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto; /* Center icon */
    color: var(--color-primary);
    font-size: 2rem;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

/* Icon Hover Interaction */
.method-card:hover .method-icon-wrapper {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: scale(1.1) rotate(3deg); /* Playful micro-interaction */
    box-shadow: 0 10px 15px -3px rgba(44, 74, 62, 0.2);
}

/* Text Styling */
.method-card h3 {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    color: var(--color-text-dark);
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.method-card p {
    color: var(--color-text-light); /* Softer text color */
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Optional: Decorative accent line that appears on hover */
.method-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 40px;
    height: 3px;
    background-color: var(--color-accent); /* Color pop */
    transition: transform 0.4s ease;
    border-radius: 2px;
}

.method-card:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* Mobile Scroll for The Method Section */
@media (max-width: 768px) {
    .container.method-grid-scroll {
        display: flex !important; /* Override grid layout */
        flex-wrap: nowrap;
        overflow-x: auto;
        
        /* Layout & Spacing */
        gap: 1rem;
        padding-bottom: 2rem; /* Comfortable touch area */
        margin-left: -5%; /* Align with screen edge */
        width: 100vw; /* Full width scroll */
        padding-left: 5%; /* Start content aligned */
        padding-right: 5%; /* End padding */
        
        /* Smooth Scrolling */
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        
        /* Hide Scrollbar */
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .container.method-grid-scroll::-webkit-scrollbar {
        display: none;
    }

    .container.method-grid-scroll .method-card {
        flex: 0 0 85%; /* 85% width lets user see next card peeking */
        width: 85%;
        scroll-snap-align: center;
        margin-right: 0;
    }

#contatto-finale {
    scroll-margin-top: 100px;
}


