/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Critical CSS - Above the fold */
html {
    scroll-behavior: smooth;
}

/* Performance optimizations - Core Web Vitals */
img, iframe, video {
    content-visibility: auto;
    contain-intrinsic-size: auto 500px;
}

/* LCP Optimization - Hero Image */
.hero-image {
    will-change: opacity;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* CLS Prevention - Reserve space for images */
img {
    aspect-ratio: attr(width) / attr(height);
    max-width: 100%;
    height: auto;
}

/* FID/INP Optimization - Reduce layout shifts */
.service-card, .area-card, .feature {
    contain: layout style paint;
}

:root {
    /* Colori ispirati all'immagine legale professionale */
    --primary-color: #1a2332; /* Blu navy scuro */
    --secondary-color: #2C5F7A; /* Teal/blu scuro */
    --accent-color: #8B4513; /* Marrone legno/rosso scuro */
    --accent-gold: #C9A961; /* Oro elegante */
    --dark-bg: #0a0e14; /* Sfondo scuro quasi nero */
    --dark-surface: #1a1a1a; /* Superficie scura */
    --wood-dark: #3d2817; /* Legno scuro */
    --text-color: #2c2c2c;
    --text-light: #666;
    --text-dark-bg: #e8e8e8;
    --bg-light: #f8f8f8;
    --white: #ffffff;
    --border-color: #e0e0e0;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: #000000;
    background-color: var(--white);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 1.1rem;
    font-display: swap;
}

p {
    padding-top: 5px;
    padding-bottom: 5px;
}

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

/* Header and Navigation - Premium Liquid Glass Apple Style */
header {
    background: rgba(10, 14, 20, 1);
    backdrop-filter: blur(60px) saturate(200%);
    -webkit-backdrop-filter: blur(60px) saturate(200%);
    box-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.25) inset,
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(201, 169, 97, 0.3) 20%, 
        rgba(201, 169, 97, 0.5) 50%, 
        rgba(201, 169, 97, 0.3) 80%, 
        transparent
    );
    opacity: 0.6;
}

header.scrolled {
    background: rgba(10, 14, 20, 0.95);
    backdrop-filter: blur(50px) saturate(200%);
    -webkit-backdrop-filter: blur(50px) saturate(200%);
    box-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.2) inset,
        0 8px 32px rgba(0, 0, 0, 0.35),
        0 4px 16px rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.navbar {
    padding: 1rem 0;
}

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

.nav-brand a {
    font-family: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.nav-brand a:hover {
    color: var(--accent-gold);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-gold);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--accent-gold);
    text-shadow: 0 2px 8px rgba(201, 169, 97, 0.4);
}

/* Freccia dropdown su desktop */
.has-dropdown > a {
    position: relative;
    padding-right: 1.5rem;
}

/* Usa ::before per la freccia (::after è già usato per la linea hover) */
.has-dropdown > a::before {
    content: '▼';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    color: var(--text-dark-bg);
    transition: transform 0.3s ease, color 0.3s ease;
    line-height: 1;
    z-index: 1;
}

.has-dropdown:hover > a::before,
.has-dropdown.active > a::before {
    transform: translateY(-50%) rotate(180deg);
    color: var(--accent-gold);
}

/* Per i dropdown, mantieni la linea hover ma posiziona la freccia con ::before */
.has-dropdown > a::after {
    /* Mantieni la linea hover normale */
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-gold);
    transition: width 0.3s ease;
}

.has-dropdown > a:hover::after,
.has-dropdown > a.active::after {
    width: 100%;
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.has-dropdown:hover .dropdown-arrow,
.has-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu - Liquid Glass Style */
.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.75rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(50px) saturate(200%);
    -webkit-backdrop-filter: blur(50px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    box-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.7) inset,
        0 12px 40px rgba(26, 35, 50, 0.15),
        0 4px 16px rgba(26, 35, 50, 0.1),
        0 1px 4px rgba(0, 0, 0, 0.05);
    padding: 0.5rem 0;
    min-width: 280px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #000000;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.95rem;
    font-weight: 500;
}

.dropdown-menu a::after {
    display: none;
}

.dropdown-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(90deg, rgba(201, 169, 97, 0.1), transparent);
    transition: width 0.3s ease;
}

.dropdown-menu a:hover {
    color: #000000;
    background: rgba(201, 169, 97, 0.15);
    padding-left: 2rem;
    font-weight: 600;
}

.dropdown-menu a:hover::before {
    width: 4px;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    transition: all 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--primary-color) 50%, var(--secondary-color) 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 1;
    overflow: hidden;
}

.hero-background-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 14, 20, 0.4) 0%, rgba(26, 35, 50, 0.3) 50%, rgba(44, 95, 122, 0.2) 100%);
    z-index: 2;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: grayscale(20%) brightness(0.6);
    animation: heroImageAnimation 20s ease-in-out infinite;
    transform: scale(1.1);
}

@keyframes heroImageAnimation {
    0%, 100% {
        transform: scale(1.1) translateX(0);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.15) translateX(-2%);
        opacity: 1;
    }
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(201, 169, 97, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero h1 {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    animation: fadeInUp 1s ease-out;
    position: relative;
    z-index: 1;
    letter-spacing: 0.3px;
}

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

.hero-subtitle {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease-out 0.2s both;
    position: relative;
    z-index: 1;
    line-height: 1.6;
    letter-spacing: 0.2px;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.btn:focus {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-color) 100%);
    color: var(--white) !important;
    box-shadow: 0 4px 15px rgba(201, 169, 97, 0.3);
    animation: fadeInUp 1s ease-out 0.4s both;
    position: relative;
    z-index: 1;
    border: none;
    font-weight: 600;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-gold) 100%);
    color: var(--white) !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(201, 169, 97, 0.4);
    transition: all 0.3s ease;
}

.btn-primary:visited,
.btn-primary:link {
    color: var(--white) !important;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #000000 !important;
    border: 2px solid rgba(201, 169, 97, 0.6);
    animation: fadeInUp 1s ease-out 0.5s both;
    position: relative;
    z-index: 1;
    font-weight: 600;
}

.btn-secondary:hover {
    background: rgba(201, 169, 97, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: #000000 !important;
    border-color: var(--accent-gold);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(201, 169, 97, 0.4);
    transition: all 0.3s ease;
}

.btn-secondary:focus {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

/* Sections */
section {
    padding: 3rem 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-weight: 600;
    letter-spacing: 0.3px;
}

h1 {
    font-size: 2.8rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

h3 {
    font-size: 1.6rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    animation: expandLine 1s ease-out;
}

@keyframes expandLine {
    from { width: 0; }
    to { width: 80px; }
}

h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Local Areas Section */
.local-areas {
    background: linear-gradient(180deg, var(--white) 0%, var(--bg-light) 100%);
    position: relative;
}

.local-areas::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

.section-intro {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: #000000;
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.area-card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(50px) saturate(200%);
    -webkit-backdrop-filter: blur(50px) saturate(200%);
    padding: 1.5rem;
    border-radius: 24px;
    box-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.6) inset,
        0 8px 32px rgba(26, 35, 50, 0.08),
        0 2px 8px rgba(26, 35, 50, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-left: 4px solid var(--secondary-color);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.area-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 95, 122, 0.1), transparent);
    transition: width 0.4s ease;
}

.area-card:hover::after {
    width: 100%;
}

.area-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(60px) saturate(200%);
    -webkit-backdrop-filter: blur(60px) saturate(200%);
    box-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.8) inset,
        0 20px 60px rgba(26, 35, 50, 0.15),
        0 8px 24px rgba(26, 35, 50, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    border-left-color: var(--accent-gold);
}

.area-card h3 {
    margin-bottom: 0.75rem;
}

.area-card h3 a {
    color: var(--primary-color);
    text-decoration: none;
}

.area-card h3 a:hover {
    text-decoration: underline;
}

/* About Studio Section */
.about-studio {
    padding: 4rem 0;
    background: linear-gradient(180deg, var(--white) 0%, var(--bg-light) 100%);
}

.studio-content {
    max-width: 100%;
    margin: 0 auto;
}

.studio-text {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(50px) saturate(200%);
    -webkit-backdrop-filter: blur(50px) saturate(200%);
    padding: 3rem;
    border-radius: 28px;
    box-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.6) inset,
        0 8px 32px rgba(26, 35, 50, 0.08),
        0 2px 8px rgba(26, 35, 50, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.studio-intro {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #000000;
    text-align: center;
}

.founder-info,
.team-info,
.approach-info {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(201, 169, 97, 0.2);
}

.approach-info {
    border-bottom: none;
}

.founder-info h3,
.team-info h3,
.approach-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: left;
}

.founder-info p,
.team-info p,
.approach-info p {
    line-height: 1.8;
    color: #000000;
    margin-bottom: 1rem;
}

.specializations-list {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.75rem;
}

.specializations-list li {
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
    color: #000000;
}

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

@media (max-width: 768px) {
    .studio-text {
        padding: 2rem 1.5rem;
    }
    
    .specializations-list {
        grid-template-columns: 1fr;
    }
}

/* Services Preview Section */
.services-preview {
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--white) 100%);
    position: relative;
}

.services-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(50px) saturate(200%);
    -webkit-backdrop-filter: blur(50px) saturate(200%);
    padding: 2rem;
    border-radius: 28px;
    box-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.6) inset,
        0 8px 32px rgba(26, 35, 50, 0.08),
        0 2px 8px rgba(26, 35, 50, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(201, 169, 97, 0.4) 30%, 
        rgba(201, 169, 97, 0.6) 50%, 
        rgba(201, 169, 97, 0.4) 70%, 
        transparent
    );
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card .btn-primary {
    color: var(--white) !important;
    text-decoration: none;
}

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

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

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(60px) saturate(200%);
    -webkit-backdrop-filter: blur(60px) saturate(200%);
    box-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.8) inset,
        0 20px 60px rgba(26, 35, 50, 0.15),
        0 8px 24px rgba(26, 35, 50, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.05);
    border-color: rgba(255, 255, 255, 0.5);
}

.service-card:hover::after {
    opacity: 1;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
}

.service-card a:hover {
    text-decoration: underline;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature {
    padding: 1.5rem;
    background-color: var(--bg-light);
    border-radius: 8px;
}

/* Contact CTA */
.contact-cta {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--primary-color) 50%, var(--secondary-color) 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 50%, rgba(201, 169, 97, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.contact-cta h2 {
    color: var(--white);
}

.contact-cta p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: center;
}

.contact-item {
    font-size: 1.1rem;
}

.contact-item a {
    color: var(--white);
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Page Header */
.page-header {
    background-color: var(--bg-light);
    padding: 2rem 0;
}

.breadcrumb {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #000000;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.page-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #000000;
}

/* Legal Content Pages */
.legal-content {
    padding: 3rem 0;
}

.legal-content article {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.legal-content article:last-child {
    border-bottom: none;
}

.legal-content h2 {
    text-align: left;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.legal-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--secondary-color);
}

.legal-content ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

/* Services Detail */
.services-detail {
    padding: 3rem 0;
}

/* Service Detail Page */
.service-detail-page {
    padding: 3rem 0;
}

.service-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    align-items: center;
}

.service-hero-image {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(26, 35, 50, 0.25);
    object-fit: cover;
    aspect-ratio: 4/3;
}

.service-hero-content h2 {
    text-align: left;
    margin-bottom: 1rem;
}

.service-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #000000;
}

.service-content {
    margin: 3rem 0;
}

.service-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.service-section:last-child {
    border-bottom: none;
}

.service-section h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.cta-section {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(50px) saturate(200%);
    -webkit-backdrop-filter: blur(50px) saturate(200%);
    padding: 3rem;
    border-radius: 28px;
    text-align: center;
    margin-top: 3rem;
    box-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.6) inset,
        0 8px 32px rgba(26, 35, 50, 0.08),
        0 2px 8px rgba(26, 35, 50, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cta-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .service-hero {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-hero-content h2 {
        text-align: center;
    }
}

/* Cookie Banner - Liquid Glass Style */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    display: none;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(50px) saturate(200%);
    -webkit-backdrop-filter: blur(50px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.7) inset,
        0 -8px 32px rgba(26, 35, 50, 0.15),
        0 -4px 16px rgba(26, 35, 50, 0.1);
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    justify-content: space-between;
}

.cookie-banner-text {
    flex: 1;
    min-width: 300px;
}

.cookie-banner-text h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.cookie-banner-text p {
    color: #000000;
    margin: 0;
    line-height: 1.6;
}

.cookie-banner-text a {
    color: var(--accent-gold);
    text-decoration: underline;
}

.cookie-banner-text a:hover {
    color: var(--accent-color);
}

.cookie-banner-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-banner-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-banner-buttons .btn {
        flex: 1;
        min-width: 120px;
    }
}

.service-article {
    margin-bottom: 4rem;
    padding-bottom: 4rem;
    border-bottom: 2px solid var(--border-color);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.service-article:nth-child(even) {
    direction: rtl;
}

.service-article:nth-child(even) > * {
    direction: ltr;
}

.service-article:last-child {
    border-bottom: none;
}

.service-article h2 {
    text-align: left;
    margin-bottom: 1rem;
    grid-column: 1 / -1;
}

.service-image {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(26, 35, 50, 0.25);
    display: block;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 4px solid transparent;
    object-fit: cover;
    aspect-ratio: 4/3;
}

.service-image:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 20px 50px rgba(26, 35, 50, 0.35);
    border-color: var(--accent-gold);
}

.service-image {
    opacity: 0;
    animation: fadeInImage 0.8s ease-out forwards;
    will-change: transform, opacity;
}

.service-article-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.keywords-box {
    background: rgba(248, 248, 248, 0.5);
    backdrop-filter: blur(50px) saturate(200%);
    -webkit-backdrop-filter: blur(50px) saturate(200%);
    padding: 1.5rem;
    border-radius: 20px;
    margin-top: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.6) inset,
        0 4px 16px rgba(26, 35, 50, 0.06),
        0 1px 4px rgba(26, 35, 50, 0.03);
}

.keywords-box p {
    margin-bottom: 0.5rem;
}

/* Contact Details */
.contact-details {
    padding: 3rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.contact-card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(50px) saturate(200%);
    -webkit-backdrop-filter: blur(50px) saturate(200%);
    padding: 2rem;
    border-radius: 24px;
    box-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.6) inset,
        0 8px 32px rgba(26, 35, 50, 0.08),
        0 2px 8px rgba(26, 35, 50, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.contact-info-box {
    line-height: 1.8;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method h3 {
    margin-bottom: 0.5rem;
}

.contact-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.1rem;
}

.contact-link:hover {
    text-decoration: underline;
}

/* Contact Form */
.contact-form-section {
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--white) 100%);
    padding: 4rem 0;
    position: relative;
}

.contact-form-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(50px) saturate(200%);
    -webkit-backdrop-filter: blur(50px) saturate(200%);
    padding: 3rem;
    border-radius: 28px;
    box-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.7) inset,
        0 12px 40px rgba(26, 35, 50, 0.15),
        0 4px 16px rgba(26, 35, 50, 0.1),
        0 1px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #000000;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(201, 169, 97, 0.3);
    border-radius: 12px;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    color: #000000;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.1);
    transform: translateY(-2px);
}

.form-group label {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    display: block;
    font-size: 1.1rem;
}

/* Map Section */
.map-section {
    padding: 3rem 0;
}

.map-container {
    margin: 2rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.directions-info {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: var(--bg-light);
    border-radius: 8px;
}

/* Local Content */
.local-content {
    padding: 3rem 0;
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.service-item {
    background-color: var(--white);
    padding: 1.5rem;
    border-left: 4px solid var(--primary-color);
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.why-local {
    background-color: var(--bg-light);
    padding: 3rem 0;
}

.why-local ul {
    list-style-position: inside;
    margin-top: 1rem;
}

.why-local li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

/* Footer */
footer {
    background: rgba(10, 14, 20, 0.85);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    color: var(--text-dark-bg);
    padding: 3rem 0 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 -1px 0 rgba(255, 255, 255, 0.15) inset,
        0 -8px 32px rgba(0, 0, 0, 0.25),
        0 -2px 8px rgba(0, 0, 0, 0.15);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(201, 169, 97, 0.3) 20%, 
        rgba(201, 169, 97, 0.5) 50%, 
        rgba(201, 169, 97, 0.3) 80%, 
        transparent
    );
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.9;
}

.footer-section a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.8;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 20, 0.85);
    backdrop-filter: blur(5px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Floating CTA Button - Fixed Bottom Right */
.floating-cta {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, var(--accent-gold) 0%, rgba(201, 169, 97, 0.9) 100%);
    color: #000000;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    font-family: 'DM Sans', sans-serif;
    box-shadow: 
        0 4px 20px rgba(201, 169, 97, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: floatAnimation 3s ease-in-out infinite;
}

.floating-cta:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 6px 30px rgba(201, 169, 97, 0.6),
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    background: linear-gradient(135deg, var(--accent-gold) 0%, rgba(201, 169, 97, 1) 100%);
}

.floating-cta:active {
    transform: translateY(-2px) scale(1.02);
}

.floating-cta-icon {
    font-size: 1.5rem;
    line-height: 1;
    animation: pulse 2s ease-in-out infinite;
}

.floating-cta-text {
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

@keyframes floatAnimation {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .floating-cta {
        bottom: 1.5rem;
        right: 1.5rem;
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
        border-radius: 45px;
    }
    
    .floating-cta-text {
        display: none;
    }
    
    .floating-cta-icon {
        font-size: 1.75rem;
        margin: 0;
    }
    
    .floating-cta:hover {
        transform: translateY(-3px) scale(1.1);
    }
    .nav-menu {
        position: fixed;
        right: -100%;
        top: 0;
        flex-direction: column;
        background: #1a2332;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        text-align: left;
        transition: right 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 0;
        z-index: 1000;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        display: flex;
        flex-direction: column;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
        transform: translateX(0);
    }
    
    .nav-menu::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: #0a0e14;
        border-bottom: 1px solid rgba(201, 169, 97, 0.2);
    }

    .nav-menu.active {
        right: 0;
        transform: translateX(0);
    }

    .nav-menu li {
        margin: 0;
        width: 100%;
        list-style: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        opacity: 0;
        transform: translateX(20px);
        transition: opacity 0.2s ease, transform 0.2s ease;
    }
    
    .nav-menu.active li {
        opacity: 1;
        transform: translateX(0);
    }
    
    .nav-menu.active li:nth-child(1) { transition-delay: 0.05s; }
    .nav-menu.active li:nth-child(2) { transition-delay: 0.1s; }
    .nav-menu.active li:nth-child(3) { transition-delay: 0.15s; }
    .nav-menu.active li:nth-child(4) { transition-delay: 0.2s; }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu li.has-dropdown {
        position: relative;
    }

    .nav-menu a {
        color: #ffffff;
        font-size: 1rem;
        font-weight: 500;
        padding: 1.25rem 1.5rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        transition: background 0.2s ease, color 0.2s ease;
        position: relative;
        width: 100%;
        text-decoration: none;
    }
    
    .nav-menu a:hover,
    .nav-menu a:active {
        background: rgba(201, 169, 97, 0.1);
        color: var(--accent-gold);
    }
    
    .nav-menu li.has-dropdown > a::after {
        content: '▼';
        font-size: 0.7rem;
        color: rgba(255, 255, 255, 0.5);
        transition: color 0.2s ease;
        position: static;
        transform: none;
    }
    
    .nav-menu li.has-dropdown.active > a::after,
    .nav-menu.active .has-dropdown > a::after {
        color: var(--accent-gold);
    }
    
    .dropdown-menu {
        position: static;
        background: #0f1419;
        margin: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        scrollbar-width: thin;
        scrollbar-color: rgba(201, 169, 97, 0.5) rgba(255, 255, 255, 0.1);
    }
    
    .dropdown-menu::-webkit-scrollbar {
        width: 6px;
    }
    
    .dropdown-menu::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 10px;
    }
    
    .dropdown-menu::-webkit-scrollbar-thumb {
        background: rgba(201, 169, 97, 0.5);
        border-radius: 10px;
    }
    
    .dropdown-menu::-webkit-scrollbar-thumb:hover {
        background: rgba(201, 169, 97, 0.7);
    }
    
    /* Quando il menu mobile è aperto, espandi automaticamente tutti i dropdown */
    .nav-menu.active .has-dropdown .dropdown-menu,
    .nav-menu.active .has-dropdown.active .dropdown-menu,
    .has-dropdown.active .dropdown-menu {
        max-height: 50vh !important;
        height: auto !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        padding: 0 !important;
        transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }
    
    /* Forza l'apertura quando il menu è attivo */
    @media (max-width: 768px) {
        .nav-menu.active .has-dropdown {
            position: relative;
        }
        
        .nav-menu.active .has-dropdown .dropdown-menu {
            max-height: 50vh !important;
            height: auto !important;
            overflow-y: auto !important;
            overflow-x: hidden !important;
            -webkit-overflow-scrolling: touch !important;
            display: block !important;
            visibility: visible !important;
            opacity: 1 !important;
        }
    }
    
    .dropdown-menu li {
        list-style: none;
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    }
    
    .dropdown-menu li:last-child {
        border-bottom: none;
    }
    
    .dropdown-menu a {
        padding: 1rem 1.5rem 1rem 3rem;
        font-size: 0.9rem;
        color: rgba(255, 255, 255, 0.8);
        transition: all 0.2s ease;
        display: block;
        text-decoration: none;
        font-weight: 400;
    }
    
    .dropdown-menu a::before {
        content: '→';
        position: absolute;
        left: 1.5rem;
        color: var(--accent-gold);
        opacity: 0.5;
        font-size: 0.8rem;
        transition: all 0.2s ease;
    }
    
    .dropdown-menu a:hover {
        background: rgba(201, 169, 97, 0.1);
        color: var(--accent-gold);
        padding-left: 3.5rem;
    }
    
    .dropdown-menu a:hover::before {
        opacity: 1;
        transform: translateX(3px);
    }

    .hamburger {
        display: flex !important;
        z-index: 1001;
        position: relative;
        cursor: pointer;
        pointer-events: auto;
        visibility: visible;
        opacity: 1;
    }

    .hamburger span {
        background-color: var(--text-dark-bg);
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
        background-color: var(--accent-gold);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
        background-color: var(--accent-gold);
    }

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

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

    h2 {
        font-size: 1.5rem;
    }

    .areas-grid,
    .services-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        align-items: flex-start;
    }

    .service-article {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-article:nth-child(even) {
        direction: ltr;
    }

    .service-article h2 {
        grid-column: 1;
    }

    .service-image {
        max-width: 100%;
        aspect-ratio: 16/9;
    }
}


