/* ========================================
   CSS Variables & Reset
   ======================================== */
:root {
    --primary-color: #1a1a2e;
    --secondary-color: #16213e;
    --accent-color: #e94560;
    --accent-light: #ff6b6b;
    --text-dark: #1a1a2e;
    --text-light: #6b7280;
    --text-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --circle-scroll-y: 0px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.iub__us-widget {
    display: none !important;
}



html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    text-align: justify;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   Mobile Menu Overlay
   ======================================== */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

/* ========================================
   Header
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 15px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    transition: var(--transition);
}

.header.scrolled .logo {
    color: var(--primary-color);
}

.logo-icon {
    width: 160px;
    height: auto;
    filter: brightness(0) invert(1);
}

.header.scrolled .logo-icon {
    filter: none;
}

.nav {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-white);
    opacity: 0.9;
    transition: var(--transition);
    position: relative;
}

.header.scrolled .nav-link {
    color: var(--text-dark);
}

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

.nav-link:hover {
    opacity: 1;
}

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

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    width: 32px;
    height: 22px;
    touch-action: manipulation;
    position: relative;
    z-index: 1003;
}




.mobile-menu-btn span {
    width: 100%;
    height: 2px;
    background: #ffffff;
    transition: all 0.35s cubic-bezier(.77,0,.18,1);
    border-radius: 2px;
    position: absolute;
    left: 0;
}

.mobile-menu-btn span:nth-child(1) { top: 0; }
.mobile-menu-btn span:nth-child(2) { top: 10px; width: 70%; } /* linea più corta */
.mobile-menu-btn span:nth-child(3) { top: 20px;}

/* Hover elegante */
.mobile-menu-btn:hover span:nth-child(2) {
    width: 100%;
}

.header.scrolled .mobile-menu-btn span {
    background: #014358;
}

/* Hamburger to X animation */
.mobile-menu-btn.active {
    border-radius: 8px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background: #014358 !important;
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    background: #014358 !important;
}

/* Ensure X is always white when active regardless of header state */
.mobile-menu-btn.active span {
    background: #ffffff !important;
}

/* ========================================
   Hero Section with Blurred Circles
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero-circles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.6;
    animation: float 20s ease-in-out infinite;
}

.circle-1 {
    width: 500px;
    height: 500px;
    background: var(--accent-color);
    top: -150px;
    right: -100px;
    animation-delay: 0s;
}

.circle-2 {
    width: 400px;
    height: 400px;
    background: #4a90d9;
    bottom: -100px;
    left: -100px;
    animation-delay: -5s;
}

.circle-3 {
    width: 300px;
    height: 300px;
    background: #9b59b6;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

.circle-4 {
    width: 350px;
    height: 350px;
    background: #1abc9c;
    bottom: 20%;
    right: 10%;
    animation-delay: -15s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(10px, -10px) scale(1.02);
    }
    50% {
        transform: translate(-10px, 10px) scale(0.98);
    }
    75% {
        transform: translate(-10px, -10px) scale(1.01);
    }
}

/* Iubenda button - show on mobile only */
@media (max-width: 768px) {
    .iubenda-tp-btn.iubenda-cs-preferences-link {
        display: block !important;
        position: fixed !important;
        left: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        max-width: none !important;
        border-radius: 0 !important;
        margin: 0 !important;
        padding: 15px !important;
        text-align: center !important;
        z-index: 10000;
    }
}

@media (min-width: 769px) {
    .iubenda-tp-btn.iubenda-cs-preferences-link {
        display: none !important;
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.2;
    margin-top: 60px;
}

.hero-title  span {
    color: var(--accent-light);
    position: relative;
}


.hero-objective {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.2;
    margin-top: 18px;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-out 0.25s forwards;
}

.hero-objective span {
    color: var(--accent-light);
    position: relative;
}



.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 12px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    font-style: italic;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-out 0.3s forwards;
}


.hero-subtitle:last-of-type {
    margin-bottom: 40px;
}

.hero-title {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-out 0.15s forwards;
}

.btn {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-out 0.45s forwards;
}

/* ========================================
   Hero Section with Centered Image (Subidea Page)
   ======================================== */
.hero-subidea {
    min-height: 100vh;
}

.hero-subidea .hero-content {
    max-width: 700px;
}

.hero-subidea .hero-image-container {
    margin-bottom: 30px;
    animation: fadeInDown 1s ease-out;
}

.hero-subidea .hero-centered-image {
    max-width: 350px;
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-out 0.3s forwards;
}

.hero-subidea .hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    max-width: 900px;
}

.hero-subidea-left {
    margin-bottom: 30px;
    flex-shrink: 0;
}

.hero-subidea-right {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.hero-subidea-image {
    width: 180px;
    height: 120px;
    object-fit: contain;
    border-radius: var(--radius-md);
    margin-top: 102px;
}

.hero-subidea .hero-intro {
    text-align: left;
    margin: 0 0 30px 0;
}

.hero-subidea .hero-text {
    text-align: left;
}

.hero-subidea .hero-title::after {
    left: 0;
    transform: none;
}

.hero-subidea .hero-subtitle {
    text-align: left;
    margin: 25px 0 0 0;
}

.hero-subidea .hero-intro {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    max-width: 600px;
    text-align: center;
    margin: 0 0 30px 0;
    font-style: italic;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-out 0.45s forwards;
}

.hero-intro::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 2px;
    background: linear-gradient(60deg, transparent, var(--accent-color), transparent);
    border-radius: 2px;
    opacity: 0.5;
    border: none;
}


.hero-subidea .hero-text {
    margin-bottom: 35px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-out 0.6s forwards;
}

.hero-subidea .hero-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.3;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.hero-subidea .hero-title::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 2px;
    background: linear-gradient(60deg, transparent, var(--accent-color), transparent);
    border-radius: 2px;
    opacity: 0.5;
    border: none;
}

.hero-subidea .hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    max-width: 650px;
    margin: -110px auto;
    text-align: center;
}

.hero-subidea .btn {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-out 0.9s forwards;
}

/* Subidea Hero Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive - Hero Image Subidea */
@media (max-width: 768px) {
    .hero-subidea .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subidea .hero-centered-image {
        max-width: 280px;
    }
    
    .hero-subidea .hero-intro {
        font-size: 1rem;
        padding: 0 15px;
    }
    
    .hero-subidea .hero-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-subidea .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subidea .hero-centered-image {
        max-width: 220px;
    }
    
    .hero-subidea .hero-intro {
        font-size: 0.9rem;
    }
    
    .hero-subidea .hero-subtitle {
        font-size: 0.95rem;
    }
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-block;
    padding: 16px 40px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    margin-top: 6%;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--text-white);
}

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(233, 69, 96, 0.3);
}

.btn-full {
    width: 100%;
}

/* ========================================
   Sections
   ======================================== */
.section {
    padding: 100px 0;
}

.section-alt {
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* ========================================
   Service Cards
   ======================================== */
.service-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.service-card-reverse {
    direction: rtl;
}

.service-card-reverse > * {
    direction: ltr;
}

.service-content h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.service-content p {
    color: var (--text-light);
    margin-bottom: 24px;
    font-size: 1.05rem;
    text-align: left;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-list li {
    position: relative;
    padding-left: 30px;
    color: var(--text-dark);
    font-weight: 500;
    text-align: left;
}

.service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* Service Anchor Link */
.service-anchor {
    display: inline-block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    padding: 8px 16px;
    background: rgba(233, 69, 96, 0.1);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.service-anchor:hover {
    background: var(--accent-color);
    color: var(--text-white);
    transform: translateY(-2px);
}

.service-image {
    position: relative;
}

.image-placeholder {
    width: 100%;
    height: 350px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    position: relative;
    overflow: hidden;
}

.image-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.1) 50%, transparent 60%);
    animation: shimmer 3s infinite;
}

/* Remove shimmer effect from about-img */
.image-placeholder.about-img::before {
    display: none;
}


@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.service-img-1 img,
.service-img-2 img,
.service-img-3 img,
.about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-img-1 {
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}




.service-img-2 {
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
}

.service-img-3 {
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   Subidea Mission Section
   ======================================== */
.section-subidea {
    background: var(--bg-white);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.section-subidea::before,
.section-subidea::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    pointer-events: none;
    transition: transform 0.1s linear;
}

.section-subidea::before {
    width: 400px;
    height: 400px;
    background: var(--accent-color);
    top: -100px;
    left: -150px;
    transform: translateY(var(--circle-scroll-y, 0));
}

.section-subidea::after {
    width: 350px;
    height: 350px;
    background: #4a90d9;
    bottom: -80px;
    right: -100px;
    transform: translateY(calc(var(--circle-scroll-y, 0) * -1));
}

.subidea-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    background: var(--bg-white);
    padding: 40px 50px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.subidea-content p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-light);
    margin-bottom: 24px;
    text-align: justify;
}

.subidea-content p:last-child {
    margin-bottom: 0;
}

/* ========================================
   About Section
   ======================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-content .section-title {
    text-align: left;
    margin-bottom: 24px;
}

.about-content p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 0.95rem;
    text-align: left;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

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

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-image .image-placeholder {
    height: 450px;
    width: 416px;
    aspect-ratio: 416 / 450;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image .image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

/* ========================================
   Approach Section
   ======================================== */
.approach-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.approach-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.approach-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-color);
    transform: scaleX(0);
    transition: var(--transition);
}

.approach-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

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

.approach-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: rgba(233, 69, 96, 0.1);
    margin-bottom: 20px;
}

.approach-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.approach-list {
    margin-bottom: 20px;
}

.approach-list li {
    margin-bottom: 10px;
    list-style: disc;
    padding-left: 20px;
    color: var(--accent-color);
}

.approach-list li p {
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 500;
    text-align: left;
}

.approach-divider {
    border: none;
    height: 2px;
    background: linear-gradient(60deg, transparent, var(--accent-color), transparent);
    margin: 20px 0;
    opacity: 0.5;
}



.approach-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    text-align: left;
}

/* ========================================
   Emotiva Card - Two Colors Style
   ======================================== */
.approach-card.emotiva {
    overflow: hidden;
}

.approach-card.emotiva .emotiva-content {
    background: linear-gradient(135deg, #fff5f5 0%, #fff0f0 100%);
    margin: -40px -30px 0 -30px;
    padding: 30px 30px 25px 30px;
    border-radius: var(--radius-md) 0 0 0;
}

.approach-card.emotiva .approach-number {
    color: var(--text-light);
}

.approach-card.emotiva h3 {
    color: #c41e3a;
}

.approach-card.emotiva .approach-list li {
    color: #c41e3a;
}

.approach-card.emotiva .approach-list li p {
    color: #1a1a2e;
}

.approach-card.emotiva .approach-divider {
    margin: 0 -30px 0 -30px;
    width: calc(100% + 60px);
    border-radius: 0;
}

.approach-card.emotiva > p:last-of-type {
    padding: 40px 5px 0 5px;
    background: transparent;
}

/* ========================================
   Expandable Items Styles (CSS Only)
   ======================================== */
.expandable-item {
    margin-bottom: 8px;
    list-style: none !important;
    padding-left: 0 !important;
    position: relative;
}

/* Hide the checkbox */
.expand-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.expandable-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    cursor: default; /* Header is not clickable */
}

.expandable-header p {
    color: #1a1a2e;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: left;
    margin: 0;
    padding: 0;
}

/* The + button (label) is the only clickable element */
.expand-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #c41e3a;
    background: transparent;
    color: #c41e3a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-left: 10px;
    box-sizing: border-box;
}

.expand-btn:hover {
    background: #c41e3a;
    color: white;
}

.expand-btn i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

/* When checkbox is checked, rotate the + to x */
.expand-checkbox:checked + .expandable-header .expand-btn i {
    transform: rotate(45deg);
}

/* Expandable content - hidden by default */
.expandable-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 15px;
}

/* When checkbox is checked, show content */
.expand-checkbox:checked + .expandable-header + .expandable-content {
    max-height: 300px;
    padding: 10px 15px 15px 15px;
}

.expandable-content p {
    color: var(--text-light) !important;
    font-size: 0.9rem; 
    line-height: 1.7;
    text-align: justify;
    margin: 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .expandable-header {
        flex-wrap: nowrap;
        justify-content: space-between;
    }
    
    .expandable-header p {
        flex: 1;
        padding-right: 10px;
    }
    
    .expand-btn {
        width: 28px;
        height: 28px;
        flex-shrink: 0;
    }
    
    .expand-btn i {
        font-size: 12px;
    }
}

/* ========================================
   Ricordo Card - Two Colors Style
   ======================================== */
.approach-card.ricordo {
    overflow: hidden;
}

.approach-card.ricordo .ricordo-content {
    background: linear-gradient(135deg, #fff5f5 0%, #fff0f0 100%);
    margin: -40px -30px 0 -30px;
    padding: 30px 30px 25px 30px;
    border-radius: var(--radius-md) 0 0 0;
}

.approach-card.ricordo .approach-number {
    color: var(--text-light);
}

.approach-card.ricordo h3 {
    color: #c41e3a;
}

.approach-card.ricordo .approach-list li {
    color: #c41e3a;
}

.approach-card.ricordo .approach-list li p {
    color: #1a1a2e;
}

.approach-card.ricordo .approach-divider {
    margin: 0 -30px 0 -30px;
    width: calc(100% + 60px);
    border-radius: 0;
}

.approach-card.ricordo > p:last-of-type {
    padding: 40px 5px 0 5px;
    background: transparent;
}

/* ========================================
   Attenzione Card - Two Colors Style
   ======================================== */
.approach-card.attenzione {
    overflow: hidden;
}

.approach-card.attenzione .attenzione-content {
    background: linear-gradient(135deg, #fff5f5 0%, #fff0f0 100%);
    margin: -40px -30px 0 -30px;
    padding: 30px 30px 25px 30px;
    border-radius: var(--radius-md) 0 0 0;
}

.approach-card.attenzione .approach-number {
    color: var(--text-light);
}

.approach-card.attenzione h3 {
    color: #c41e3a;
}

.approach-card.attenzione .approach-list li {
    color: #c41e3a;
}

.approach-card.attenzione .approach-list li p {
    color: #1a1a2e;
}

.approach-card.attenzione .approach-divider {
    margin: 0 -30px 0 -30px;
    width: calc(100% + 60px);
    border-radius: 0;
}

.approach-card.attenzione > p:last-of-type {
    padding: 40px 5px 0 5px;
    background: transparent;
}

/* ========================================
   Testimonials Section
   ======================================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.testimonial-card {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.testimonial-content p {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-style: italic;
    margin-bottom: 30px;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%);
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: var(--text-dark);
}

.author-role {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* ========================================
   Contact Section
   ======================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-info .section-title {
    text-align: left;
    margin-bottom: 24px;
}

.contact-info > p {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 1.05rem;
    text-align: left;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-dark);
    font-weight: 500;
}

.contact-icon {
    width: 45px;
    height: 45px;
    background: rgba(233, 69, 96, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 1.2rem;
}

.contact-form-wrapper {
    background: var(--bg-white);
    padding: 50px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 18px 20px;
    font-size: 1rem;
    font-family: var(--font-body);
    border: 2px solid #e5e7eb;
    border-radius: var(--radius-sm);
    background: var(--bg-white);
    transition: var(--transition);
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-color);
}

.form-group label {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: var(--text-light);
    pointer-events: none;
    transition: var(--transition);
    background: var(--bg-white);
    padding: 0 5px;
}

.form-group.checkbox-group {
    margin-top: 10px;
    display: flex;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 12px;
    margin-bottom: 4px;
    accent-color: var(--accent-color);
}

.checkbox-group label {
    position: static;
    transform: none;
    background: none;
    padding: 0;
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    line-height: 1.4;
}

.privacy-link {
    color: var(--accent-color);
    text-decoration: underline;
    font-size: 0.8rem;
    margin-left: 4px;
}

.privacy-link:hover {
    color: var(--accent-light);
}

/* Privacy Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    inset: 0;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-white);
    max-width: 600px;
    max-height: 90vh;
    width: 100%;
    border-radius: var(--radius-lg);
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    z-index: 10;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-dark);
}

.modal h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--text-dark);
    margin: 0 0 30px 40px;
    padding-top: 60px;
}

.modal-body {
    padding: 0 40px 40px;
}

.modal-body h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin: 30px 0 15px 0;
    font-weight: 600;
}

.modal-body p,
.modal-body li {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 15px;
}

.modal-body ul {
    padding-left: 25px;
    margin-bottom: 20px;
}

.modal-footer-text {
    font-style: italic;
    border-top: 1px solid #e5e7eb;
    padding-top: 25px;
    margin-top: 30px;
    opacity: 0.8;
}

/* Mobile Modal */
@media (max-width: 768px) {
    .modal-content {
        max-height: 95vh;
        margin: 10px;
        border-radius: var(--radius-md);
    }
    
    .modal-close {
        top: 15px;
        right: 15px;
        width: 36px;
        height: 36px;
        font-size: 1.5rem;
    }
    
    .modal h2 {
        font-size: 1.5rem;
        padding-top: 50px;
        margin-left: 30px;
    }
    
    .modal-body {
        padding: 0 25px 30px;
    }
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group label.focused,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: 0px;
    font-size: 0.8rem;
    color: var(--accent-color);
    margin-top: 1px;
}

/* ========================================
   Form Success Message
   ======================================== */
.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 50px 30px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.contact-form.hidden {
    display: none;
}


.form-success.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.form-success i {
    font-size: 4rem;
    color: #10b981;
    margin-bottom: 20px;
    animation: bounceIn 0.6s ease-out;
}

.form-success h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.form-success p {
    color: var(--text-light);
    font-size: 1.05rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.btn-secondary {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    padding: 14px 32px;
    font-weight: 600;
}

.btn-secondary:hover {
    background: var(--accent-color);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(233, 69, 96, 0.3);
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Hide form when success is shown */
.contact-form-wrapper .contact-form.hidden {
    display: none;
}

.contact-form.hidden {
    display: none;
}


/* Responsive */
@media (max-width: 768px) {
    .form-success {
        padding: 40px 20px;
    }
    
    .form-success i {
        font-size: 3.5rem;
    }
    
    .form-success h3 {
        font-size: 1.5rem;
    }
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--primary-color);
    color: var(--text-white);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand .logo {
    margin-bottom: 20px;
    color: var(--text-white);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-links h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-white);
}

.footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: 12px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.footer-social {
    display: flex;
    gap: 18px;
}

.social-icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);

    color: rgba(255, 255, 255, 0.85);
    font-size: 1.6rem;

    transition: all 0.35s ease;
    border: 1px solid rgba(255,255,255,0.08);
}



/* FIX centraggio icona */
.social-icon i{
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 3;
}

/* Hover */
.social-icon:hover {
    color: white;
    transform: translateY(-4px) scale(1.08);
    background: rgba(74, 144, 217, 0.15);
    box-shadow: 0 10px 25px rgba(74, 144, 217, 0.35);
}



.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer .logo-icon {
    filter: brightness(0) invert(1);
}

.privacy-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.iubenda-white {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    text-decoration: underline;
    transition: var(--transition);
}

.iubenda-white:hover {
    color: var(--accent-color);
}

.footer-copyright-link {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-copyright-link:hover {
    color: var(--accent-color);
}

/* ========================================
   WhatsApp Floating Button
   ======================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    z-index: 999;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-icon {
    width: 30px;
    height: 30px;
    fill: white;
}

/* ========================================
   Responsive Design
   ======================================== */

/* Large Desktop */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .approach-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .container {
        max-width: 768px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section {
        padding: 80px 0;
    }

    .service-card {
        gap: 40px;
    }

    .about-grid,
    .contact-grid {
        gap: 60px;
    }

    .approach-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .circle-1 {
        width: 400px;
        height: 400px;
    }

    .circle-2 {
        width: 300px;
        height: 300px;
    }

    .circle-3 {
        width: 250px;
        height: 250px;
    }

    .circle-4 {
        width: 280px;
        height: 280px;
    }
}

/* Mobile Landscape */
@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-white);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 100px;
        align-items: center;
        gap: 20px;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        overflow-y: auto;
        z-index: 1002;
    }

    .nav.active {
        right: 0;
    }

    .nav-link {
        color: var(--text-dark);
        font-size: 1.2rem;
        padding: 15px 20px;
        width: 100%;
        text-align: center;
    }

    .mobile-menu-btn {
        display: flex;
        z-index: 1003;
    }

    /* Hero mobile fixes */
    .hero {
        padding: 90px 0 50px;
        min-height: auto;
    }

    .hero-title {
        font-size: 2.2rem;
        margin-top: 50px;
    }

    .hero-objective {
        font-size: 1.1rem;
        margin-top: 14px;
        margin-bottom: 35px;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 15px;
    }

    .hero-subtitle:last-of-type {
        margin-bottom: 30px;
    }

    .btn {
        padding: 13px 28px;
        font-size: 0.9rem;
    }

    .section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-title {
        font-size: 2rem;
    }

    .service-card,
    .service-card-reverse,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .service-card-reverse {
        direction: ltr;
    }

    .service-content h3 {
        font-size: 1.5rem;
    }

    .image-placeholder {
        height: 280px;
        border-radius: var(--radius-md);
    }

    .service-image .image-placeholder {
        height: auto;
        aspect-ratio: 16 / 10;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--primary-color);
        border-radius: var(--radius-md);
    }

    .service-image .image-placeholder img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .service-img-1 {
        background: transparent !important;
        height: auto;
    }


    .service-img-2 {
        background: transparent !important;
        height: auto;
    }


    .service-img-3 {
        background: transparent !important;
        height: auto;
    }



    .about-image .image-placeholder {
        height: auto;
        width: 50%;
        aspect-ratio: 416 / 450;
        margin: 0 auto;
    }

    .approach-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .approach-card {
        padding: 30px 20px;
    }

    .approach-number {
        font-size: 2.5rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .testimonial-card {
        padding: 30px;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .contact-form-wrapper {
        padding: 30px;
    }

    .contact-details {
        gap: 15px;
    }

    .footer {
        padding: 60px 0 80px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 40px;
    }

    /* Mobile: Hide footer privacy links, show Iubenda button */
    .privacy-links {
        display: none;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }

    .circle-1 {
        width: 280px;
        height: 280px;
        top: -60px;
        left: -80px;
    }

    .circle-2 {
        width: 220px;
        height: 220px;
        bottom: -40px;
        left: -60px;
    }

    .circle-3 {
        width: 180px;
        height: 180px;
        top: 60%;
        left: 10%;
    }

    .circle-4 {
        width: 200px;
        height: 200px;
        bottom: 10%;
        left: 5%;
    }
}

/* Mobile Portrait */
@media (max-width: 576px) {
    body {
        overflow-x: hidden;
    }
    
    .container {
        padding: 0 16px;
    }

    .header {
        padding: 12px 0;
    }

    .logo {
        font-size: 1.1rem;
    }

    .logo-icon {
        width: 100px;
    }

    .hero {
        padding: 80px 0 50px;
        min-height: auto;
    }

    .hero-title {
        font-size: 1.8rem;
        line-height: 1.15;
        margin-top: 60px;
    }

    .hero-objective {
        font-size: 1rem;
        margin-top: 12px;
        margin-bottom: 30px;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.85rem;
        margin-top: 20px;
    }

    .section {
        padding: 40px 0;
    }

    .section-header {
        margin-bottom: 25px;
    }

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

    .section-tag {
        font-size: 0.75rem;
    }

    .service-card {
        margin-bottom: 40px;
        gap: 25px;
    }

    .service-content h3 {
        font-size: 1.2rem;
    }

    .service-content p {
        font-size: 0.95rem;
    }

    .service-list li {
        font-size: 0.85rem;
        padding-left: 22px;
    }

    .service-list li::before {
        font-size: 0.8rem;
    }

    .image-placeholder {
        height: 200px;
        border-radius: var(--radius-md);
    }

    .service-image .image-placeholder {
        height: auto;
        aspect-ratio: 16 / 10;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--primary-color);
        border-radius: var(--radius-md);
    }

    .service-image .image-placeholder img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .about-content .section-title {
        font-size: 1rem;
    }

    .about-content p {
        font-size: 0.9rem;
    }

    .about-image .image-placeholder {
        height: auto;
        width: 50%;
        aspect-ratio: 416 / 450;
        margin: 0 auto;
    }

    .about-grid {
        gap: 30px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        margin-top: 25px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .approach-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .approach-card {
        padding: 20px 15px;
    }

    .approach-number {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }

    .approach-card h3 {
        font-size: 1rem;
    }

    .testimonial-card {
        padding: 20px;
    }

    .testimonial-content p {
        font-size: 0.95rem;
    }

    .contact-grid {
        gap: 30px;
    }

    .contact-info .section-title {
        font-size: 1.5rem;
    }

    .contact-info > p {
        font-size: 0.95rem;
    }

    .contact-form-wrapper {
        padding: 20px;
    }

    .form-group input,
    .form-group textarea {
        padding: 12px 15px;
        font-size: 0.9rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .contact-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .footer {
        padding: 50px 0 70px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 30px;
    }

    .footer-brand p {
        font-size: 0.85rem;
    }

    .footer-links h4 {
        font-size: 0.95rem;
    }

    .footer-links a {
        font-size: 0.85rem;
        margin-bottom: 10px;
    }

    .footer-social {
        gap: 12px;
    }

    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .whatsapp-float {
        bottom: 12px;
        right: 12px;
        width: 48px;
        height: 48px;
    }

    .whatsapp-icon {
        width: 24px;
        height: 24px;
    }

    .subidea-content {
        padding: 25px 20px;
    }

    .subidea-content p {
        font-size: 0.95rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.85rem;
    }

    .section {
        padding: 40px 0;
    }

    .section-header {
        margin-bottom: 30px;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .service-card {
        margin-bottom: 50px;
    }

    .service-content h3 {
        font-size: 1.2rem;
    }

    .image-placeholder {
        height: 200px;
    }

    .about-image .image-placeholder {
        height: auto;
        width: 50%;
        aspect-ratio: 416 / 450;
        margin: 0 auto;
    }

    .stat-number {
        font-size: 2rem;
    }

    .contact-form-wrapper {
        padding: 20px;
    }

    .contact-item {
        gap: 12px;
    }

    .contact-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .whatsapp-float {
        bottom: 10px;
        right: 10px;
        width: 45px;
        height: 45px;
    }

    .whatsapp-icon {
        width: 22px;
        height: 22px;
    }
}

/* ========================================
   Mobile Dark Mode Support
   ======================================== */
/* Only applies on mobile devices (max-width: 768px) when user's device has dark mode enabled */
@media (max-width: 768px) and (prefers-color-scheme: dark) {
    :root {
        --primary-color: #0d0d1a;
        --secondary-color: #1a1a2e;
        --text-dark: #e5e7eb;
        --text-light: #9ca3af;
        --text-white: #f9fafb;
        --bg-light: #1a1a2e;
        --bg-white: #252542;
        --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
        --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.4);
        --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.5);
    }

    body {
        background: var(--bg-light);
        color: var(--text-dark);
    }

    /* Header in dark mode */
    .header.scrolled {
        background: rgba(26, 26, 46, 0.95);
    }

    .header.scrolled .logo {
        color: var(--text-white);
    }

    .header.scrolled .nav-link {
        color: var(--text-dark);
    }

    .logo-icon {
        filter: brightness(0) invert(1);
    }

    .header.scrolled .logo-icon {
        filter: brightness(0) invert(1);
    }

    /* Menu overlay */
    .menu-overlay {
        background: rgba(0, 0, 0, 0.7);
    }

    /* Navigation */
    .nav {
        background: var(--bg-white);
    }

    .nav-link {
        color: var(--text-dark);
    }

    /* Section backgrounds */
    .section {
        background: var(--bg-light);
    }

    .section-alt {
        background: var(--bg-white);
    }

    /* Service cards */
    .service-card {
        background: var(--bg-white);
        border-radius: var(--radius-md);
        padding: 20px;
    }

    .service-content h3 {
        color: var(--text-white);
    }

    .service-content p {
        color: var(--text-light);
    }

    .service-list li {
        color: var(--text-dark);
    }

    /* Image placeholders */
    .image-placeholder {
        background: var(--secondary-color);
    }

    .service-image .image-placeholder {
        background: var(--secondary-color);
    }

    /* About section */
    .about-content .section-title {
        color: var(--text-white);
    }

    .about-content p {
        color: var(--text-light);
    }

    .stat-item {
        background: var(--bg-white);
        padding: 15px;
        border-radius: var(--radius-sm);
    }

    .stat-number {
        color: var(--accent-light);
    }

    .stat-label {
        color: var(--text-light);
    }

    /* Approach cards (Subidea page) */
    .approach-card {
        background: var(--bg-white);
    }

    .approach-card h3 {
        color: var(--text-white);
    }

    .approach-card p {
        color: var(--text-light);
    }

    .approach-card.emotiva .emotiva-content,
    .approach-card.ricordo .ricordo-content,
    .approach-card.attenzione .attenzione-content {
        background: linear-gradient(135deg, #2d2d4a 0%, #252542 100%);
    }

    .approach-card.emotiva h3,
    .approach-card.ricordo h3,
    .approach-card.attenzione h3 {
        color: var(--accent-light);
    }

    .approach-card.emotiva .approach-list li,
    .approach-card.ricordo .approach-list li,
    .approach-card.attenzione .approach-list li {
        color: var(--accent-light);
    }

    .expandable-header p {
        color: var(--text-white);
    }

    .expandable-content p {
        color: var(--text-light) !important;
    }

    .expand-btn {
        border-color: var(--accent-light);
        color: var(--accent-light);
    }

    .expand-btn:hover {
        background: var(--accent-light);
        color: white;
    }

    /* Subidea content */
    .subidea-content {
        background: var(--bg-white);
        box-shadow: var(--shadow-md);
    }

    .subidea-content p {
        color: var(--text-light);
    }

    /* Contact section */
    .contact-info .section-title {
        color: var(--text-white);
    }

    .contact-info > p {
        color: var(--text-light);
    }

    .contact-item {
        color: var(--text-dark);
    }

    .contact-form-wrapper {
        background: var(--bg-white);
    }

    .form-group input,
    .form-group textarea {
        background: none;
        border-color: #3d3d5c;
        color: var(--text-white);
    }

    .form-group label {
        background: var(--bg-white);
        color: var(--text-light);
    }

    .form-group input:focus ~ label,
    .form-group textarea:focus ~ label {
        color: var(--accent-light);
    }

    /* Footer */
    .footer {
        background: #0d0d1a;
    }

    .footer-brand p {
        color: var(--text-light);
    }

    .footer-links h4 {
        color: var(--text-white);
    }

    .footer-links a {
        color: var(--text-light);
    }

    .social-icon {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .footer-bottom {
        border-top-color: rgba(255, 255, 255, 0.1);
        color: var(--text-light);
    }

    /* Section tag */
    .section-tag {
        color: var(--accent-light);
    }

    /* Testimonials */
    .testimonial-card {
        background: var(--bg-white);
    }

    .testimonial-content p {
        color: var(--text-dark);
    }

    .author-name {
        color: var(--text-white);
    }

    .author-role {
        color: var(--text-light);
    }

    /* Service anchor */
    .service-anchor {
        background: rgba(233, 69, 96, 0.2);
        color: var(--accent-light);
    }

    /* Iubenda button override for dark mode */
    .iubenda-tp-btn.iubenda-cs-preferences-link {
        background: var(--bg-white) !important;
        color: var(--text-dark) !important;
    }

    /* Mobile menu button - always white including when active */
    .mobile-menu-btn span {
        background: #ffffff !important;
    }

    .mobile-menu-btn.active span {
        background: #ffffff !important;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        background: #ffffff !important;
    }

    .mobile-menu-btn.active span:nth-child(2) {
        background: #ffffff !important;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        background: #ffffff !important;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}
