:root {
    --clr-background: oklch(99.2% 0.002 180);
    --clr-surface: oklch(100% 0.00011 180);
    --clr-surface-alt: oklch(98.5% 0.003 180);

    --clr-accent-blue: #6bcac8; /* Luminous turquoise-mint green */

    --clr-text-primary: oklch(0.20 0.02 180);
    --clr-text-secondary: oklch(0.40 0.02 180);
    --clr-text-muted: oklch(0.50 0.02 180);

    --clr-brand-rgb: 107, 202, 200; /* #6bcac8 */
    --clr-brand: rgb(var(--clr-brand-rgb));
    --clr-brand-dark: #4ba6a4; /* Deeper hover green-teal */
    --clr-brand-pale: #e6f5f4; /* Fresh pale mint background */
    --clr-brand-text: #185250; /* Luminous forest green for high readability text/icons */

    --clr-white: #ffffff;
    --clr-brand-gold: #f5ab00; /* Radiant golden accent */
    --clr-brand-navy: #0a1c1b; /* Deeper pine-slate black for visual weights */

    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    --glow-primary: rgba(107, 202, 200, 0.12);
    --glow-secondary: rgba(24, 82, 80, 0.08);

    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 1rem;
    --space-4: 1.5rem;
    --space-5: 2rem;
    --space-6: 3rem;
    --space-8: 3rem;
    --space-10: 5rem;
    --space-12: 6rem;
    --space-16: 8rem;

    --shadow-sm: 0 2px 4px 0 oklch(0.25 0.05 180 / 0.04);
    --shadow-md: 0 6px 12px -2px oklch(0.25 0.06 180 / 0.06), 0 2px 6px -2px oklch(0.25 0.06 180 / 0.04);
    --shadow-lg: 0 16px 32px -6px oklch(0.25 0.07 180 / 0.08), 0 4px 12px -4px oklch(0.25 0.07 180 / 0.04);

    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-pill: 500px;

    --border-subtle: 1px solid oklch(0.92 0.008 180);

    --clr-primary: var(--clr-brand);
    --clr-text: var(--clr-text-primary);
    --clr-border: oklch(0.92 0.008 180);

    --shadow-xl: 0 30px 60px -15px oklch(0.25 0.08 180 / 0.12);

    /* Transizioni */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 400ms cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    width: 100%;
    font-size: 107.5%; /* Scales the entire interface by ~7.5% for an extremely premium, highly readable, spacious feel! */
    background-color: var(--clr-white);
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--clr-text-primary);
    background: var(--clr-white);
    background-attachment: scroll;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    overflow-x: hidden;

    width: 100%;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: -100vh;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--clr-white);
    z-index: 9999;
}

main {
    position: relative;
    overflow: visible;
    z-index: 10;
    background-color: var(--clr-white);
    border-bottom-left-radius: var(--radius-xl);
    border-bottom-right-radius: var(--radius-xl);
    box-shadow: 0 10px 40px rgba(var(--clr-brand-rgb), 0.08);
}

main > *:last-child {
    border-bottom-left-radius: var(--radius-xl);
    border-bottom-right-radius: var(--radius-xl);
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.section-padding {
    padding: var(--space-8) 0;
}

.pt-0 {
    padding-top: 0 !important;
}

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

.bg-white {
    background-color: var(--clr-white) !important;
}

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

.skip-link {
    position: absolute;
    top: -100px;
    left: var(--space-4);
    background: var(--clr-brand);
    color: var(--clr-brand-navy);
    padding: var(--space-2) var(--space-4);
    z-index: 2000;
    transition: top 0.3s;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
}

.ambient-glow {
    position: relative;
    overflow: visible !important;
}

.ambient-glow::before,
.ambient-glow::after {
    content: '';
    position: absolute;
    width: 40vmax;
    height: 40vmax;
    border-radius: 50%;
    background: radial-gradient(circle, var(--glow-primary) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
    animation: float-glow 20s infinite alternate ease-in-out;
}

.ambient-glow::after {
    background: radial-gradient(circle, var(--glow-secondary) 0%, transparent 70%);
    width: 30vmax;
    height: 30vmax;
    right: -10%;
    top: -10%;
    animation-duration: 15s;
    animation-delay: -5s;
}

@keyframes float-glow {
    0% {
        transform: translate(-10%, -10%);
    }

    100% {
        transform: translate(10%, 10%);
    }
}

@keyframes glow-pulse {
    0% {
        box-shadow: 0 0 10px rgba(var(--clr-brand-rgb), 0.25);
    }
    50% {
        box-shadow: 0 0 25px rgba(var(--clr-brand-rgb), 0.65);
    }
    100% {
        box-shadow: 0 0 10px rgba(var(--clr-brand-rgb), 0.25);
    }
}

.page-header {
    padding-top: calc(var(--space-8) + var(--space-4));
    padding-bottom: calc(var(--space-8) + var(--space-4));
}

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

h1,
h2,
h3,
h4,
h5,
.hero__title {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--clr-text-primary);
    font-size: clamp(2.5rem, 7vw, 4rem);
    margin-bottom: var(--space-6);
}

.hero__title em {
    font-style: italic;
    color: var(--clr-brand);
    position: relative;
    display: inline-block;
}

.hero__title em::after {
    content: '';
    position: absolute;
    bottom: 0.1em;
    left: 0;
    width: 100%;
    height: 0.2em;
    background: var(--clr-brand-pale);
    z-index: -1;
    opacity: 0.5;
}

.section-title {
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    font-weight: 800;
    margin-bottom: var(--space-4);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 0;
    height: 3px;
    background: var(--clr-brand);
    border-radius: 2px;
    margin-top: var(--space-2);
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

.is-visible .section-title::after,
.animate-on-scroll.is-visible .section-title::after {
    width: 3rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--clr-text-secondary);
    max-width: 60ch;
    margin: 0 auto var(--space-8);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo__img {
    height: 3.5rem;
    width: auto;
}

.footer .logo__img {
    height: 3.2rem;
}

.logo__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    line-height: 1.1;
}

.logo__title {
    color: var(--clr-text-primary);
    font-size: 1.6rem;
    font-weight: 700;
}

.footer .logo__title {
    color: #f8fafc;
    font-size: 1.5rem;
}

.logo__subtitle {
    color: var(--clr-text-primary);
    font-size: 1.6rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
}

.footer .logo__subtitle {
    color: #cbd5e1;
    font-size: 1.5rem;
}

.header {
    background-color: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(20px) saturate(180%) brightness(1.02);
    -webkit-backdrop-filter: blur(20px) saturate(180%) brightness(1.02);
    box-shadow:
        0 1px 1px rgba(0, 0, 0, 0.01),
        0 4px 20px -5px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: var(--space-4) 0;
    transition: var(--transition-smooth);
}

.header--hidden {
    transform: translateY(-100%);
}

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

.header__spacer {
    display: block;
}

.nav__list {
    display: flex;
    gap: var(--space-6);
}

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
    position: relative;
    z-index: 1100;
}

.nav-toggle__burger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--clr-brand);
    position: relative;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-toggle__burger::before,
.nav-toggle__burger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--clr-brand);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-toggle__burger::before {
    top: -8px;
}

.nav-toggle__burger::after {
    top: 8px;
}

.nav-toggle.is-active .nav-toggle__burger {
    background: transparent;
}

.nav-toggle.is-active .nav-toggle__burger::before {
    transform: rotate(45deg);
    top: 0;
}

.nav-toggle.is-active .nav-toggle__burger::after {
    transform: rotate(-45deg);
    top: 0;
}

.nav__link {
    font-weight: 700;
    color: var(--clr-text-secondary);
    transition: color 0.35s ease;
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 4px;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--clr-brand);
    border-radius: 1px;
    transition: width 0.35s ease;
}

.nav__link:hover {
    color: var(--clr-brand);
}

.nav__link--active {
    color: var(--clr-brand);
}

.nav__link--active::after {
    width: 100%;
}

.nav__link:hover::after {
    width: 100%;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.01em;
    transition: all 0.50s ease;
    cursor: pointer;
    border: none;
}

.button--large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.button--primary {
    background-color: var(--clr-brand);
    color: var(--clr-white);
    text-shadow: 0 1px 2px rgba(0, 40, 38, 0.45);
    animation: glow-pulse 2.5s infinite ease-in-out;
}

.button--primary:hover {
    background-color: var(--clr-brand-dark);
    color: var(--clr-white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.button--secondary {
    background-color: var(--clr-surface);
    color: var(--clr-text-primary);
    border: var(--border-subtle);
}

.button--secondary:hover {
    background-color: var(--clr-surface-alt);
    border-color: oklch(0.85 0.008 180);
}

.badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: var(--radius-pill);
    background-color: var(--clr-brand-pale);
    color: var(--clr-brand-dark);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--space-4);
    border: 1px solid var(--clr-brand);
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.u-nowrap {
    white-space: nowrap !important;
}

.no-scroll {
    overflow: hidden;
}

.mb-8 {
    margin-bottom: var(--space-8);
}

.mb-12 {
    margin-bottom: var(--space-12);
}

.max-w-600 {
    max-width: 600px;
}

.max-w-800 {
    max-width: 800px;
}

.max-w-1000 {
    max-width: 1000px;
}

.hero {
    padding: var(--space-8) 0;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-12);
    align-items: center;
}

.hero__description {
    font-size: 1.25rem;
    color: var(--clr-text-secondary);
    margin-bottom: var(--space-6);
    max-width: 45ch;
}

.hero__actions {
    display: flex;
    gap: var(--space-3);
}

.hero__image-wrapper {
    position: relative;
}

.hero__image-placeholder {
    width: 100%;
    border-radius: calc(var(--radius-lg) + 5px);
    background: transparent;
    position: relative;
    border: 1px solid var(--clr-brand);
    padding: 4px;
    z-index: 1;
}

.hero__image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* Stacked dual-image layout */
.hero__image-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    width: 100%;
}

.hero__image-placeholder--top {
    width: 100%;
    aspect-ratio: 2000 / 2264;
}

.hero__image-placeholder--top img {
    object-position: center center;
}

.hero__image-row {
    display: flex;
    gap: var(--space-3);
    width: 100%;
}

.hero__image-placeholder--bottom-left {
    flex: 1.33422; /* 2000 / 1499 */
    aspect-ratio: 2000 / 1499;
}

.hero__image-placeholder--bottom-left img {
    object-position: center center;
}

.hero__image-placeholder--bottom-right {
    flex: 0.921875; /* 767 / 832 */
    aspect-ratio: 767 / 832;
}

.hero__image-placeholder--bottom-right img {
    object-position: center center;
}

.studio-intro__image {
    width: 100%;
    border-radius: calc(var(--radius-lg) + 5px);
    background: transparent;
    position: relative;
    border: 1px solid var(--clr-brand);
    padding: 4px;
    z-index: 1;
}
.studio-intro__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

/* Stacked dual-image layout */
.hero__image-placeholder--bottom-right img {
    object-position: center center;
}

.services {
    background-color: var(--clr-white);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-8);
    align-items: stretch;
}

.service-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    transition: var(--transition-smooth);
    position: relative;
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(var(--clr-brand-rgb), 0.2);
    transform: translateY(-5px);
}

.is-tilting {
    transition: none !important;
}

.service-card__icon {
    width: 3rem;
    height: 3rem;
    background: rgba(var(--clr-brand-rgb), 0.06);
    border: 1px solid rgba(var(--clr-brand-rgb), 0.15);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-4);
    transition: all var(--transition-smooth);
}

.service-card:hover .service-card__icon {
    background-color: var(--clr-brand);
    border-color: var(--clr-brand);
    transform: translateY(-2px) scale(1.05) rotate(4deg);
    box-shadow: 0 8px 20px rgba(var(--clr-brand-rgb), 0.25);
}

.service-card__icon i {
    font-size: 1.5rem;
    color: var(--clr-brand-text);
    transition: all var(--transition-smooth);
}

.service-card:hover .service-card__icon i {
    color: white;
    transform: scale(1.12) rotate(4deg);
}

.service-card__title {
    font-size: 1.25rem;
    margin-bottom: var(--space-3);
}

.service-card__desc {
    color: var(--clr-text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.service-card__list {
    color: var(--clr-text-secondary);
    font-size: 0.95rem;
}

.service-card__list li {
    margin-bottom: var(--space-2);
    position: relative;
    padding-left: var(--space-3);
}

.service-card__list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--clr-primary);
}

/* ================= FILTER BAR ================= */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: var(--space-8);
    padding: 0 var(--space-2);
}

.filter-btn {
    padding: 0.5rem 1.15rem;
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-pill);
    background: var(--clr-white);
    color: var(--clr-text-secondary);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.filter-btn:hover {
    border-color: var(--clr-brand);
    color: var(--clr-brand);
    background: var(--clr-brand-pale);
}

.filter-btn.is-active {
    background: var(--clr-brand);
    color: var(--clr-white);
    text-shadow: 0 1px 2px rgba(0, 40, 38, 0.45);
    font-weight: 700;
    border-color: var(--clr-brand);
    box-shadow: 0 4px 12px rgba(var(--clr-brand-rgb), 0.3);
}

/* ================= SPECIALIST CARDS GRID ================= */
.specialists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 320px));
    gap: var(--space-5);
    justify-content: center;
    align-items: stretch;
}

.specialist-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--clr-white);
    border: 1px solid rgba(var(--clr-brand-rgb), 0.08);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-4) var(--space-3);
    gap: 0.8rem;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.35s ease,
        border-color 0.35s ease,
        opacity 0.35s ease;
    cursor: pointer;
}

.specialist-card:hover {
    transform: translateY(-6px);
    border-color: rgba(var(--clr-brand-rgb), 0.25);
    box-shadow: var(--shadow-lg), 0 4px 12px -4px rgba(var(--clr-brand-rgb), 0.04);
}

/* Filtro: card nascosta */
.specialist-card.is-hidden {
    display: none;
}

.specialist-card__photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: var(--clr-surface);
    overflow: hidden;
    flex-shrink: 0;
    margin: 0 auto;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.specialist-card:hover .specialist-card__photo {
    transform: translateY(-2px);
    box-shadow: 0 0 0 4px rgba(var(--clr-brand-rgb), 0.2);
}

.specialist-card__photo .u-img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.specialist-card:hover .specialist-card__photo .u-img-cover {
    transform: scale(1.05);
}

/* Icona placeholder se l'immagine non carica */
.specialist-card__photo .u-img-cover[src=""],
.specialist-card__photo .u-img-cover:not([src]) {
    display: none;
}

.specialist-card__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.specialist-card__body .badge {
    margin-bottom: 0.4rem;
    font-size: 0.75rem;
}

.specialist-card__name {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--clr-text-primary);
    line-height: 1.3;
}

/* Responsive tweaks */
@media (max-width: 600px) {
    .specialists-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: var(--space-3);
        justify-content: center;
    }

    .specialist-card__name {
        font-size: 0.9rem;
    }

    .filter-bar {
        gap: 0.35rem;
    }

    .filter-btn {
        font-size: 0.78rem;
        padding: 0.4rem 0.85rem;
    }
}

/* ================= CLICKABLE SERVICE CARDS ================= */
a.service-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

a.service-card:hover {
    border-color: rgba(var(--clr-brand-rgb), 0.3);
}

.service-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: auto;
    padding-top: var(--space-3);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--clr-brand);
    transition: gap 0.3s ease;
}

a.service-card:hover .service-card__cta {
    gap: 0.6rem;
}

.service-card.is-hidden {
    display: none;
}

/* ================= TEAM PREVIEW GRID ================= */
.team-preview {
    position: relative;
    overflow: hidden;
    margin-top: var(--space-5);
}

.team-preview__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-4);
    padding: var(--space-3) 0;
}

.team-preview__card {
    flex: 0 0 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
    gap: 0.5rem;
    padding: var(--space-3);
    background: var(--clr-white);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow-sm);
}

.team-preview__card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    background: var(--clr-surface);
}

.team-preview__name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--clr-text-primary);
    line-height: 1.3;
}

.badge--sm {
    font-size: 0.65rem;
    padding: 0.2rem 0.6rem;
}

.team-preview__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important; /* Override inline styles */
    z-index: 2;
    pointer-events: none;
    padding-top: 3rem;
}

.team-preview__overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.8) 40%, rgba(255, 255, 255, 0) 100%);
    z-index: -1;
    pointer-events: none;
}

.team-preview__overlay .button {
    pointer-events: auto;
    box-shadow: 0 8px 24px rgba(var(--clr-brand-rgb), 0.3);
    position: relative;
    z-index: 10;
    transform: translateZ(10px);
}

@media (max-width: 600px) {
    .team-preview__card {
        flex: 0 0 150px;
        padding: var(--space-2);
    }

    .team-preview__card img {
        width: 90px;
        height: 90px;
        aspect-ratio: 1 / 1;
        flex-shrink: 0;
    }

    .team-preview__name {
        font-size: 0.78rem;
    }
}

.specialist-header {
    padding: var(--space-8) 0;
    position: relative;
    overflow: hidden;
}

.specialist-image {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-md);
    object-fit: cover;
    background-color: oklch(0.85 0.008 180);
}

.specialist-grid {
    display: flex;
    flex-direction: row;
    gap: var(--space-8);
    align-items: stretch;
    padding: var(--space-6);
    flex-wrap: wrap;
    justify-content: center;
}

.specialist-image-col {
    flex: 0 0 320px;
    max-width: 100%;
    display: flex;
}

.specialist-info {
    flex: 1 1 350px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    padding: var(--space-2) 0;
}

.specialist-info .badge {
    margin-bottom: var(--space-2);
}

.specialist-info .hero__title {
    margin-bottom: var(--space-2);
}

.specialist-info .section-subtitle {
    margin-bottom: var(--space-5);
    margin-left: 0;
}

.specialist-info .hero__description {
    font-size: 1.1rem;
    max-width: 100%;
    margin-bottom: var(--space-6);
}

.specialist-info .button {
    align-self: flex-start;
}

/* ================= PATOLOGIE BADGES ================= */
.patologie-container {
    margin-bottom: var(--space-5);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.patologie-container h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--clr-text-primary);
    margin-bottom: var(--space-3);
}

.patologie-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.badge-patologia {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-pill);
    background-color: var(--clr-brand);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
    transition: all 0.25s ease;
}

.badge-patologia:hover {
    background-color: var(--clr-brand-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(var(--clr-brand-rgb), 0.3);
}

.team__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-5);
    max-width: 960px;
    margin: 0 auto;
}

.team-card {
    position: relative;
    background: var(--clr-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 3/4;
    display: flex;
    align-items: flex-end;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.team-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 20px 48px -8px rgba(var(--clr-brand-rgb), 0.35),
        0 6px 16px -4px oklch(0.20 0.02 180 / 0.08);
}

.team-card__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.team-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.team-card:hover .team-card__image img {
    transform: scale(1.05);
}

.team-card__info {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.6);
    width: 100%;
    padding: var(--space-4) var(--space-5);
    min-height: 8rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    overflow: hidden;
}

.team-card__name {
    color: var(--clr-text-primary);
    font-size: 1.5rem;
    margin-bottom: var(--space-1);
    letter-spacing: -0.01em;
    line-height: 1.1;
    text-align: left;
    width: 100%;
}

.team-card__surname {
    display: block;
}

.team-card__info .badge {
    margin-bottom: var(--space-3);
}

.team-card__cta {
    position: relative;
    color: var(--clr-brand);
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s ease;
    z-index: 3;
}

.team-card:hover .team-card__cta {
    transform: translateX(4px);
}

.chi-siamo__content {
    max-width: 72ch;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--clr-text-secondary);
}

.chi-siamo__content p+p {
    margin-top: var(--space-4);
}

.chi-siamo__content strong {
    color: var(--clr-text-primary);
    font-weight: 600;
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-8);
    align-items: start;
}

.review-card {
    background: white;
    padding: var(--space-5);
    border-radius: var(--radius-lg);
    border: 1px solid oklch(0.92 0.005 180);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}

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

.review-card__stars {
    color: var(--clr-brand-text);
    font-size: 0.9rem;
    margin-bottom: var(--space-2);
}

.review-card__text {
    font-style: italic;
    color: var(--clr-text-secondary);
    margin-bottom: var(--space-3);
    line-height: 1.6;
}

.review-card__author {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--clr-text-primary);
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    overflow: hidden;
    padding: var(--space-4) 0;
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent),
        linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent),
        linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
    cursor: grab;
    touch-action: pan-y;
}

.marquee-container::before,
.marquee-container::after {
    display: none;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, oklch(0.99 0.005 180), transparent);
}

.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, oklch(0.99 0.005 180), transparent);
}

.bg-white .marquee-container::before {
    background: linear-gradient(to right, var(--clr-white), transparent);
}

.bg-white .marquee-container::after {
    background: linear-gradient(to left, var(--clr-white), transparent);
}

.marquee-track {
    display: flex;
    gap: var(--space-6);
    width: max-content;
    animation: marquee-scroll 45s linear infinite;
    padding: 0 var(--space-3);
    will-change: transform;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-track .review-card,
.marquee-track .service-card {
    width: 350px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

@keyframes marquee-scroll {
    to {
        transform: translateX(calc(-50% - (var(--space-6) / 2)));
    }
}


.map-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(122, 195, 193, 0.1);
}

.map-wrapper iframe {
    display: block;
    filter: grayscale(0.2) contrast(1.1);
    /* Subtle integration */
}

.map-info {
    position: absolute;
    bottom: var(--space-4);
    left: var(--space-4);
    right: var(--space-4);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: var(--space-4);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.map-info p {
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--clr-text-secondary);
}

.map-link {
    font-weight: 600;
    color: var(--clr-brand);
    text-decoration: none;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
    text-align: left;
}

.faq-container .faq-item {
    position: relative;
    background: transparent;
    border: none;
    transition: margin 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Sfondo dell'elemento FAQ */
.faq-container .faq-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4rem;
    background: var(--clr-surface);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(122, 195, 193, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    opacity: 0;
    transform: scale(0.98, 0.8);
    transform-origin: center center;
    z-index: 1;
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.faq-container .faq-item[open]::before {
    top: -1.5rem;
    left: -1rem;
    right: -1rem;
    bottom: -1.25rem;
    height: auto;
    opacity: 1;
    transform: scale(1);
    background: linear-gradient(135deg, oklch(0.98 0.005 180) 0%, oklch(0.96 0.01 180) 100%);
    box-shadow:
        inset 0 3px 6px rgba(0, 0, 0, 0.03),
        0 40px 80px -15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.faq-container .faq-item .faq-question {
    padding: var(--space-4) var(--space-5);
    font-weight: 600;
    font-size: 1.15rem;
    cursor: pointer;
    list-style: none;
    outline: none;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: var(--radius-xl);

    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);

    transition: all 0.4s ease;
    z-index: 10;
}

.faq-container .faq-item[open] .faq-question {
    background: #ffffff;
    box-shadow:
        0 1px 1px rgba(0, 0, 0, 0.05),
        0 4px 8px rgba(0, 0, 0, 0.04),
        0 12px 24px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(0, 0, 0, 0.02),
        inset 0 1px 1px rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 1);
    transform: translateY(-5px);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.faq-container .faq-item .faq-question::-webkit-details-marker {
    display: none;
}

.faq-container .faq-item .faq-question::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: var(--clr-brand);
}

.faq-container .faq-item[open] .faq-question::after {
    transform: rotate(45deg);
}

.faq-container .faq-item .faq-answer {
    padding: var(--space-4) var(--space-8) var(--space-8);
    color: var(--clr-text-secondary);
    line-height: 1.8;
    position: relative;
    z-index: 5;
    opacity: 0;
    transform: translateY(-15px);
    transition: all 0.6s ease 0.3s;
}

.faq-container .faq-item[open] .faq-answer {
    opacity: 1;
    transform: translateY(0);
}

.faq-container .faq-item[open] {
    margin-top: var(--space-6);
    margin-bottom: var(--space-10);
}

/* Sezione dello Studio */
.studio-intro {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-12);
    align-items: center;
}

.studio-intro .studio-intro__image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 1;
}

.studio-intro .studio-intro__image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-xl);
}


.studio-intro .studio-intro__text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--clr-text-secondary);
}

.studio-intro__text .hero__title {
    line-height: 1;
}

.studio-intro__text .section-subtitle {
    font-size: 1.4rem;
    line-height: 1.4;
}

@media (max-width: 992px) {
    .studio-intro {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .studio-intro__image {
        min-height: 320px;
        order: 2;
    }
}

/* Carosello dei servizi */
.marquee-track.services-speed {
    animation-duration: 80s;
}

.marquee-track {
    display: flex;
    gap: var(--space-6);
    width: max-content;
    animation: scroll 40s linear infinite;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

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

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


.cta-section__cards {
    display: flex;
    justify-content: center;
    gap: var(--space-5);
    flex-wrap: wrap;
    margin-top: var(--space-3);
}

.cta-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-6) var(--space-8);
    border-radius: var(--radius-lg);
    background: white;
    border: 1px solid oklch(0.92 0.005 180);
    text-decoration: none;
    color: var(--clr-text-primary);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
    min-width: 280px;
}

.cta-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(var(--clr-brand-rgb), 0.3);
}

.cta-card i {
    font-size: 2.5rem;
    color: var(--clr-brand);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-card:hover i {
    transform: scale(1.12) rotate(-6deg);
}

.cta-card__label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--clr-text-muted);
}

.cta-card__number {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--clr-text-primary);
    display: block;
    white-space: nowrap;
}

.cta-card[href^="mailto:"] .cta-card__number {
    font-size: 1.4rem;
    letter-spacing: -0.01em;
}

@media (max-width: 480px) {
    .cta-card__number {
        font-size: 1.5rem;
    }

    .cta-card[href^="mailto:"] .cta-card__number {
        font-size: 1.1rem;
    }
}

.cta-card__hint {
    font-size: 0.8rem;
    color: var(--clr-text-muted);
    max-width: 240px;
    text-align: center;
    line-height: 1.5;
}

.cta-card__hours {
    font-size: 0.85rem;
    color: var(--clr-text-secondary);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.cta-card__hours i {
    font-size: 0.85em;
}

.cta-section__email {
    margin-top: var(--space-6);
    font-size: 1rem;
    color: var(--clr-text-muted);
}

.cta-section__email a {
    color: var(--clr-brand);
    font-weight: 500;
    transition: color 0.3s ease;
}

.cta-section__email a:hover {
    color: var(--clr-brand-dark);
}

.footer {
    padding: var(--space-12) 0 var(--space-6);
    background-color: var(--clr-brand-pale);
    color: var(--clr-text-secondary);
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1;
}

.footer::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: var(--clr-brand-pale);
    border-top: 1px solid rgba(var(--clr-brand-rgb), 0.12);
    z-index: -1;
    pointer-events: none;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    margin-bottom: var(--space-12);
    padding: 0 var(--space-8);
}

.footer__brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.footer__brand .logo {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: var(--space-2);
}

.footer__brand .logo__img {
    height: 3.2rem;
    filter: none;
}

.footer__brand .logo__title {
    color: var(--clr-text-primary);
    font-size: 1.6rem;
    letter-spacing: -0.02em;
}

.footer__brand .logo__subtitle {
    color: var(--clr-brand-text);
    font-size: 1.1rem;
    letter-spacing: 0.1em;
}

.footer__brand p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--clr-text-muted);
    max-width: 35ch;
}

.footer__socials {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.footer__social-link {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    background: rgba(var(--clr-brand-rgb), 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-brand-text);
    font-size: 1.2rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(var(--clr-brand-rgb), 0.15);
}

.footer__social-link:hover {
    background: var(--clr-brand);
    color: white;
    transform: translateY(-5px);
    border-color: var(--clr-brand);
    box-shadow: 0 8px 15px rgba(var(--clr-brand-rgb), 0.35);
}

.footer__nav-group h3,
.footer__contacts h3 {
    color: var(--clr-brand-text);
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: var(--space-6);
    position: relative;
}

.footer__nav-group h3::after,
.footer__contacts h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 25px;
    height: 1px;
    background: linear-gradient(to right, var(--clr-brand), transparent);
}

.footer__nav-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.footer__nav-link {
    color: var(--clr-text-secondary);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.footer__nav-link::before {
    content: '';
    width: 0;
    height: 1px;
    background: var(--clr-brand);
    transition: width 0.3s ease;
}

.footer__nav-link:hover {
    color: var(--clr-brand-text);
}

.footer__nav-link:hover::before {
    width: 10px;
}

.footer__contacts p {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
    color: var(--clr-text-secondary);
    font-size: 0.95rem;
    line-height: 1.4;
}

.footer__contacts p i {
    color: var(--clr-brand);
    font-size: 1.1rem;
    margin-top: 0.15rem;
    opacity: 0.8;
}

.footer__legal {
    padding-top: var(--space-6);
    border-top: 1px solid rgba(var(--clr-brand-rgb), 0.12);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--clr-text-muted);
    font-size: 0.85rem;
    padding-left: var(--space-8);
    padding-right: var(--space-8);
}

.footer__legal p {
    margin: 0;
}

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

@media (max-width: 640px) {
    .footer__grid {
        grid-template-columns: 1fr;
        gap: var(--space-10);
    }

    .footer__legal {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }
}

.badge {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    background: var(--clr-brand-pale);
    color: var(--clr-brand-dark);
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: var(--space-3);
    border: 1px solid var(--clr-brand);
}

.specialist-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-8);
    align-items: center;
}

.specialist-image-box {
    width: 280px;
    height: 280px;
    aspect-ratio: 1/1;
    border-radius: 50%;
    background: var(--clr-surface);
    overflow: hidden;
    position: relative;
    margin: 0 auto;
    border: 4px solid var(--clr-white);
    box-shadow: var(--shadow-md);
}

.specialist-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
}

@media (max-width: 992px) {
    .specialist-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }

    .header__content {
        justify-content: space-between;
    }

    .nav-toggle {
        display: block;
    }

    /* Floating Glass Mobile Menu - Premium Edition */
    header .nav {
        position: fixed;
        top: var(--space-4);
        right: var(--space-4);
        width: 280px;
        height: auto;
        max-height: calc(100vh - (var(--space-8)));

        /* 1. Sfondo a gradiente per simulare la luce sulla superficie */
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.80) 100%);
        /* Sfocatura dello sfondo */
        backdrop-filter: blur(28px) saturate(200%);
        -webkit-backdrop-filter: blur(28px) saturate(200%);

        padding: var(--space-4);
        display: flex;
        flex-direction: column;

        /* Ombre per dare profondità */
        box-shadow:
            0 30px 60px -12px rgba(0, 0, 0, 0.15),
            0 18px 36px -18px rgba(0, 0, 0, 0.10),
            inset 0 1px 1px rgba(255, 255, 255, 0.8);

        /* Bordi con effetto luce */
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-top: 1px solid rgba(255, 255, 255, 0.9);
        border-left: 1px solid rgba(255, 255, 255, 0.7);

        border-radius: var(--radius-xl);
        z-index: 1050;

        transform: scale(0.1);
        transform-origin: top right;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition:
            transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
            opacity 0.4s ease,
            visibility 0.5s;
        overflow-y: auto;
    }

    header.is-nav-open .nav {
        transform: scale(1);
        opacity: 1;
        visibility: visible;
        pointer-events: all;
    }

    header .nav__list {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: var(--space-6);
        width: 100%;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .nav__link {
        font-size: 1.5rem;
        width: 100%;
        display: block;
    }

    .nav__link--active::after {
        left: 0;
        transform: none;
        width: 30px;
    }

    .header__spacer {
        display: none;
    }

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

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

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

    /* Riduzione dimensioni per mobile */
    .logo__img {
        height: 2.2rem;
    }

    .logo__title {
        font-size: 1.1rem;
    }

    .logo__subtitle {
        font-size: 0.9rem;
    }

    .logo {
        gap: 0.4rem;
        flex-shrink: 1;
        min-width: 0;
    }

    .nav-toggle {
        flex-shrink: 0;
        margin-left: 1rem;
    }

    .header__content {
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .hero__actions {
        flex-direction: column;
        width: 100%;
        gap: var(--space-3);
    }
    
    .hero__actions .button {
        width: 100%;
        justify-content: center;
    }
    
    .specialist-image-box {
        width: 220px;
        height: 220px;
    }
}

/* Elementi precedentemente animati: ora visibili immediatamente per fluidità */
.animate-on-scroll {
    opacity: 1;
    transform: none;
    filter: none;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: none;
    filter: none;
}

/* ---- Post-animation hover overrides ----
   These have higher specificity than .animate-on-scroll.is-visible
   and restore the interactive hover transitions after scroll reveal. */

/* Team cards: levitation + glow */
.team-card.animate-on-scroll.is-visible {
    transition: box-shadow 0.5s ease, transform 0.5s ease;
}

.team-card.animate-on-scroll.is-visible:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 20px 48px -8px rgba(var(--clr-brand-rgb), 0.35),
        0 6px 16px -4px oklch(0.20 0.02 180 / 0.08);
}

/* Effetti hover per le schede dei servizi */
.service-card.animate-on-scroll.is-visible {
    transition: box-shadow 0.35s ease, background 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}

.service-card.animate-on-scroll.is-visible:hover {
    transform: translateY(-15px) scale(1.15);
    z-index: 50;
    box-shadow:
        0 30px 60px -12px rgba(var(--clr-brand-rgb), 0.30),
        0 18px 36px -18px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(var(--clr-brand-rgb), 0.25);
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 99;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: var(--clr-brand);
    color: var(--clr-white);
    text-shadow: 0 1px 2px rgba(0, 40, 38, 0.45);
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease, background-color 0.3s ease;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--clr-brand-dark);
    color: var(--clr-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.ambient-glow {
    position: relative;
    background-color: var(--clr-white) !important;

    /* 1. RISOLUZIONE TAGLIO: Permettiamo alla luce di uscire liberamente, evitando bug di clipping in Safari */
    overflow: visible !important;

    /* 2. Alziamo l'intera sezione così la luce scivola *sopra* le sezioni adiacenti */
    z-index: 5;
}

/* 3. Proteggiamo i contenuti (testo e carosello) mettendoli sopra la luce */
.ambient-glow .container,
.ambient-glow .marquee-container {
    position: relative;
    z-index: 10;
}

/* Impostazioni base per le due "nuvole" di luce */
.ambient-glow::before,
.ambient-glow::after {
    content: '';
    position: absolute;
    width: 90vw;
    height: 90vw;
    border-radius: 100%;

    /* mix-blend-mode rimossa: causava un bug di isolamento del stacking-context al di fuori dei confini della sezione */
    z-index: 1;
    /* Si posiziona sopra lo sfondo bianco ma sotto le card */
    pointer-events: none;
}

/* Luce in alto a sinistra */
.ambient-glow::before {
    top: -40%;
    left: -30%;
    background: radial-gradient(circle, rgba(var(--clr-brand-rgb), 0.15) 0%, rgba(var(--clr-brand-rgb), 0.05) 30%, transparent 70%);
}

/* Luce in basso a destra */
.ambient-glow::after {
    bottom: -40%;
    right: -30%;
    background: radial-gradient(circle, rgba(var(--clr-brand-rgb), 0.12) 0%, rgba(var(--clr-brand-rgb), 0.04) 30%, transparent 70%);
}

.bg-seamless {
    /* Sfumatura fissa: esattamente 120px di transizione sopra e sotto */
    background: linear-gradient(to bottom,
            var(--clr-background) 0px,
            var(--clr-surface-alt) 120px,
            var(--clr-surface-alt) calc(100% - 120px),
            var(--clr-background) 100%);

    /* Aumentiamo il padding interno per far combaciare il contenuto con la zona grigia */
    padding-top: 120px !important;
    padding-bottom: 120px !important;
}

/* Classi di utilità e componenti */



/* Utilità per gli spazi */
.u-mt-4 {
    margin-top: var(--space-4) !important;
}

.u-mb-2 {
    margin-bottom: var(--space-2) !important;
}

.u-mb-4 {
    margin-bottom: var(--space-4) !important;
}

.u-mb-8 {
    margin-bottom: var(--space-8) !important;
}

/* Layout e posizionamento */
.u-pos-relative {
    position: relative;
}

.u-z-10 {
    z-index: 10;
}

.u-max-w-800-center {
    max-width: 800px;
    margin: 0 auto;
}

.u-border-0 {
    border: 0 !important;
}

/* Utilità per le immagini */
.u-img-cover {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.u-img-cover--sgarbossa {
    object-fit: cover;
    width: 100%;
    height: 100%;
    object-position: center 25%;
}

/* Componente recensioni */
.review-card__date {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--clr-text-muted);
    float: right;
}

.map-placeholder {
    width: 100%;
    height: 500px;
    background: url('../assets/images/map-placeholder.webp') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-md);
}

.map-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
}

.map-placeholder__content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: var(--space-8);
    color: white;
    max-width: 500px;
}

.map-placeholder__icon {
    font-size: 3.5rem;
    margin-bottom: var(--space-4);
    color: var(--clr-brand);
}

.map-placeholder__text {
    font-size: 1.125rem;
    margin-bottom: var(--space-6);
    line-height: 1.6;
    font-weight: 500;
}

.legal-page {
    padding-top: 120px;
    padding-bottom: 80px;
    line-height: 1.8;
}

.legal-content h1 {
    margin-bottom: var(--space-8);
}

.legal-content h2 {
    margin-top: var(--space-8);
    margin-bottom: var(--space-4);
    font-size: 1.75rem;
}

.legal-content h3 {
    margin-top: var(--space-6);
    margin-bottom: var(--space-3);
    font-size: 1.25rem;
}

.legal-content p,
.legal-content ul {
    margin-bottom: var(--space-4);
    color: var(--clr-text-muted);
}

.legal-content ul {
    padding-left: var(--space-6);
}

.legal-content li {
    margin-bottom: var(--space-2);
}

/* Link legali nel footer */
.footer__legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-4);
    padding-top: var(--space-6);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer__legal-links {
    display: flex;
    gap: var(--space-6);
}

.footer__legal-links a {
    color: var(--clr-text-secondary);
    font-size: 0.875rem;
    transition: color 0.3s ease;
    text-decoration: none;
}

.footer__legal-links a:hover {
    color: var(--clr-brand-text);
}

.footer__legal p a {
    color: var(--clr-text-secondary);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.footer__legal p a:hover {
    color: var(--clr-brand-text);
}

/* ================= FILTER TOGGLE ================= */
.filter-toggle-container {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
    flex-wrap: wrap;
}

.see-all-btn.is-active,
.button.see-all-btn.is-active {
    background-color: var(--clr-brand);
    color: var(--clr-white);
    border-color: var(--clr-brand);
    box-shadow: 0 4px 12px rgba(var(--clr-brand-rgb), 0.3);
    text-shadow: 0 1px 2px rgba(0, 40, 38, 0.45);
}

.filter-toggle-btn i.ph-caret-down {
    transition: transform 0.3s ease;
}

.filter-toggle-btn.is-active i.ph-caret-down {
    transform: rotate(180deg);
}

#filter-bar {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin-bottom 0.4s ease;
    margin-bottom: 0;
    pointer-events: none;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

#filter-bar.is-open {
    max-height: 800px;
    opacity: 1;
    margin-bottom: var(--space-6);
    pointer-events: auto;
    overflow: visible;
}

.footer__legal-professional {
    margin-top: 0.5rem !important;
    font-size: 0.8rem;
    color: #94a3b8;
}

.specialist-albo {
    font-size: 0.9rem;
    color: var(--clr-text-muted);
    margin-bottom: var(--space-4);
    font-style: italic;
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-6) 0;
    font-size: 0.9rem;
}

.cookie-table th,
.cookie-table td {
    padding: var(--space-3) var(--space-4);
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.cookie-table th {
    background: var(--clr-brand-pale);
    color: var(--clr-brand);
    font-weight: 600;
}

@media (max-width: 768px) {
    .footer__legal {
        flex-direction: column;
        text-align: center;
    }
}

/* Scheda gestione consenso */
.consent-card {
    background: var(--clr-bg-alt, #f8fafc);
    border: 1px solid var(--clr-border, rgba(0, 0, 0, 0.05));
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    box-shadow: var(--shadow-sm);
}

.consent-card__title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--clr-text);
}

.consent-card__description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--clr-text-muted);
    margin: 0;
}

.consent-card__action {
    align-self: flex-start;
    margin-top: var(--space-2);
}

.button--outline-danger {
    background: transparent;
    border: 1px solid #ef4444;
    color: #ef4444;
}

.button--outline-danger:hover {
    background: #ef4444;
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

/* Sovrascritture per il trascinamento tramite JS */
.marquee-track.is-js-driven {
    animation: none !important;
}

.marquee-track.is-js-driven:hover {
    animation: none !important;
}

.marquee-track.is-draggable {
    cursor: grab;
}

.marquee-track.is-dragging {
    cursor: grabbing;
    user-select: none;
}

.marquee-track.is-dragging * {
    pointer-events: none;
    /* Prevent elements (like links/images) from being dragged instead of the track */
}

/* ================= SPECIALISTA PAGE SPECIFIC STYLES ================= */
.is-loading body {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.specialist-unified {
    padding-top: var(--space-8);
    padding-bottom: var(--space-10);
}

.specialist-unified-text {
    margin-top: var(--space-4);
    margin-bottom: var(--space-5);
    padding-top: var(--space-4);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.intervention-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--clr-brand);
    margin-bottom: var(--space-3);
}

/* Image fallback styling for dynamic loading */
#spec-photo {
    display: none;
    background: #f0f0f0;
}