/* =========================================
   1. CORE & VARIABLES
   ========================================= */
/* Global Reset */
*, ::after, ::before {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', 'Helvetica Neue', Arial, 'Noto Sans', 'Liberation Sans', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: var(--bg-light);
    color: var(--text-dark);
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.3s ease;
}

/* Variables */
:root {
    --primary: #0071e3;
    --primary-dark: #0066cc;
    --primary-color: var(--primary);
    --secondary: #34c759;
    --accent: #ff9500;
    
    --bg-light: #f2f2f7;
    --text-dark: #1c1c1e;
    --text-color: var(--text-dark);
    --text-light: #666;
    --text-muted: var(--text-light);
    
    --white: #ffffff;
    --surface: #ffffff;
    --surface-2: #f8f9fa;
    
    /* CARD BG LIGHT: Bianco pulito */
    --card-bg: #ffffff; 
    
    --muted: #e9ecef;
    
    --whatsapp-start: #25d366;
    --whatsapp-end: #128C7E;
    --whatsapp-foreground: #ffffff;
    
    /* Ombre ottimizzate */
    --shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 16px 40px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 0 transparent;
    
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    --focus: 3px solid rgba(0, 113, 227, .25);
    
    --header-height: 76px;
    --header-bg: rgba(255, 255, 255, 0.85); 
    
    --border: rgba(0, 0, 0, 0.08);
    --border-color: var(--border);

    --logo-image: url('assets/logo-dark.webp');
    --mobile-menu-bg: rgba(255, 255, 255, 0.95);

    color-scheme: light;
}

/* Dark Theme Variables */
html[data-theme='dark'], :root[data-theme='dark'] {
    --primary: #4aa3ff; 
    --primary-dark: #3385ff;
    --secondary: #30d158;
    
    --bg-light: #050a14; 
    --text-dark: #f1f5f9; 
    --text-light: #cbd5e1; 
    --text-muted: #94a3b8;
    
    --white: #ffffff;
    
    --surface: rgba(20, 30, 48, 0.90); 
    --surface-2: rgba(30, 40, 60, 0.90);
    
    /* CARD BG DARK: Slate Blue scuro per contrasto */
    --card-bg: rgba(30, 41, 59, 0.90); 
    
    --muted: rgba(255, 255, 255, 0.1);
    
    --whatsapp-start: #128C7E;
    --whatsapp-end: #075e50;
    --whatsapp-foreground: #ffffff;
    
    --header-bg: rgba(5, 10, 20, 0.92);
    --mobile-menu-bg: rgba(255, 255, 255, 0.98); 
    
    --border: rgba(255, 255, 255, 0.15);
    
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 20px 50px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 20px rgba(74, 163, 255, 0.15);

    --logo-image: url('assets/logo-white.webp');

    color-scheme: dark;
}

/* =========================================
   2. LAYOUT UTILITIES & HERO (Nuovo Stile)
   ========================================= */
.content {
    padding: 40px 5%;
    min-height: 70vh;
    animation: fadeInPage 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.header-placeholder {
    height: var(--header-height);
    display: block;
}

/* HERO SECTION */
.hero {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: auto;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle, rgba(255,255,255,.08) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
    min-width: 320px;
    min-height: 320px;
    max-width: 1200px;
    max-height: 600px;
    transition: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-subtitle {
    background: rgba(255,255,255,.15);
    display: inline-block;
    padding: 6px 18px;
    border-radius: 30px;
    margin-bottom: 25px;
    font-weight: 500;
    letter-spacing: .5px;
    font-size: 1.05rem;
    backdrop-filter: blur(4px);
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0,0,0,.1);
    color: var(--white);
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 30px;
    opacity: .95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.95);
}

/* =========================================
   3. HEADER & NAVIGATION (Ripristinato Originale)
   ========================================= */
header {
    background-color: var(--header-bg);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    height: var(--header-height);
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease;
    
    /* ENHANCED BLUR EFFECT */
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    
    border-bottom: 1px solid var(--border);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Dynamic Logo --- */
.logo img {
    height: 40px;
    width: auto;
    display: block;
    content: var(--logo-image); 
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

/* Desktop Navigation */
.nav-desktop {
    display: block;
}

.nav-menu {
    display: flex;
    gap: 24px;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 10px;
    border-radius: 8px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.nav-link:hover {
    color: var(--primary);
    background-color: var(--muted);
    transform: translateY(-2px);
}

.nav-link.active {
    color: var(--primary);
}

/* Indicatore attivo sottile */
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 10px;
    right: 10px;
    height: 2px;
    background-color: var(--primary);
    border-radius: 2px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 160px;
    justify-content: flex-end;
}

.header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    border: none;
    outline: none;
    text-decoration: none;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    padding: 10px 18px;
    border-radius: 50px;
    box-shadow: var(--shadow);
}
.header-cta-whatsapp {
    background: linear-gradient(90deg, var(--whatsapp-start), var(--whatsapp-end));
    color: var(--whatsapp-foreground);
}
.header-cta-phone {
    background: linear-gradient(90deg, #0071e3, #34c759);
    color: #fff;
}
.header-cta:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}
.header-cta .material-icons {
    font-size: 22px;
}
.header-cta .cta-text {
    display: inline-block;
}

@media (max-width: 600px) {
    .header-cta {
        padding: 0;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        font-size: 0;
        box-shadow: var(--shadow);
    }
    .header-cta .cta-text {
        display: none;
    }
    .header-cta .material-icons {
        font-size: 26px;
    }
}

/* Theme Toggle Button */
.theme-toggle {
    background: transparent;
    border: 1px solid var(--border);
    padding: 8px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    cursor: pointer;
    font-size: 0;
    transition: var(--transition);
    box-shadow: var(--shadow);
}
.theme-toggle .material-icons {
    font-size: 22px;
    display: block;
}
.theme-toggle:hover {
    background-color: var(--surface-2);
    border-color: var(--primary);
    transform: rotate(15deg);
}
@media (max-width: 600px) {
    .theme-toggle {
        padding: 0;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        font-size: 0;
        box-shadow: var(--shadow);
    }
    .theme-toggle .material-icons {
        font-size: 26px;
    }
}

/* CTA BUTTONS */
.cta, .cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

/* Header CTA specific (WhatsApp) */
.cta {
    padding: 10px 18px;
    border-radius: 14px;
    font-size: 1rem;
    
    /* CSS if() fallback logic handled by standard media query/cascade if needed, 
       but here we use the specific vars for direct styling */
    background: linear-gradient(90deg, var(--whatsapp-start), var(--whatsapp-end));
    color: var(--whatsapp-foreground);
    border: 1px solid transparent;
    box-shadow: var(--shadow);
}

.cta:hover {
    filter: brightness(1.1);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* Hero CTA specific */
.cta-button {
    background-color: var(--white);
    color: var(--primary);
    padding: 16px 45px;
    font-size: 1.15rem;
    box-shadow: 0 4px 15px rgba(0,0,0,.1);
    border: 2px solid var(--white);
    margin-top: 10px;
    min-width: 250px;
}

.cta-button:hover {
    background-color: var(--surface-2);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,.12);
}

/* =========================================
   4. MOBILE MENU (Ripristinato Originale)
   ========================================= */
.hamburger {
    display: none;
    background: none;
    border: 0;
    padding: 8px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    cursor: pointer;
    z-index: 10001;
    transition: background 0.2s ease, color 0.3s ease;
}

.hamburger .material-icons {
    font-size: 28px;
    transition: transform 0.4s cubic-bezier(0.5, 0, 0.1, 1);
}

.hamburger[aria-expanded="true"] .material-icons {
    transform: rotate(90deg); 
}

/* Full Screen Container */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        padding: 48px 0 0 0; /* padding-top per distacco dal bordo */
    
    /* Background & Blur */
    background: var(--mobile-menu-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    
    z-index: 9999;
    
    /* Animation: Slide Up */
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
}

.mobile-menu[aria-hidden="false"] {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
    text-align: center;
}

.mobile-menu-list a {
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    transition: var(--transition);
}

.mobile-menu-list a:hover {
    color: var(--primary);
    transform: scale(1.1);
    text-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
}

.mobile-menu-list a::after {
    content: '';
    display: block;
    width: 0;
    height: 4px;
    background: var(--primary);
    transition: width 0.3s;
    margin: 5px auto 0;
    border-radius: 4px;
}

.mobile-menu-list a:hover::after {
    width: 50px;
}

body.menu-open {
    overflow: hidden;
}

/* REGOLE SPECIFICHE PER MENU IN DARK MODE (Testo Nero) */
[data-theme='dark'] .mobile-menu-list a {
    color: #1c1c1e !important; 
}

/* Hamburger nero in dark mode se menu aperto */
[data-theme='dark'] .hamburger[aria-expanded="true"] {
    color: #1c1c1e !important;
}

@media (max-width: 1000px) {
    .nav-desktop { display: none; }
    .hamburger { display: flex; }
}

/* =========================================
   5. PAGE COMPONENTS & SECTIONS (Nuovi Stili Mantenuti)
   ========================================= */
section { padding: 100px 0; }

.section-title {
    text-align: center;
    margin-bottom: 60px;
    padding: 0 20px;
}

.section-title h2 {
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    transition: color 0.3s ease;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
}

.section-title p {
    color: var(--text-light);
    margin-top: 25px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

/* Services Grid (Unified) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.service-card {
    background: var(--card-bg); /* Adaptive BG */
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--border); /* Adaptive Border */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover), var(--shadow-glow);
    border-color: var(--primary);
}

.service-icon {
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--white);
}

/* Specific fix for Emoji icons inside the gradient box */
.service-icon[aria-hidden="true"] {
    font-style: normal;
}

.service-content {
    padding: 28px 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-dark);
    font-weight: 600;
}

.service-content p {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Coverage Section */
.coverage-container {
    background: var(--card-bg); /* Adaptive */
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 40px;
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid var(--border);
}

.coverage { background: var(--surface-2); }
.contact { background: var(--surface-2); }

.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.city-badge {
    background: var(--bg-light); /* Adaptive */
    padding: 10px 15px;
    border-radius: 30px;
    text-align: center;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    font-size: 1.05rem;
    border: 1px solid var(--border);
    color: var(--text-dark);
}

.city-badge:hover {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.03);
    border-color: var(--primary);
}

/* Strengths Grid */
.strengths-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.strength-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--card-bg); /* Adaptive */
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid var(--border);
}

.strength-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(0,113,227,.1);
}

.strength-icon {
    font-size: 3.2rem;
    margin-bottom: 20px;
    color: var(--primary);
    display: block;
    line-height: 1;
}

.strength-card h3 {
    font-size: 1.55rem;
    margin-bottom: 15px;
    color: var(--text-dark);
    font-weight: 600;
}

.strength-card p {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    margin-top: 40px;
}

.contact-info {
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.contact-info h3 {
    font-size: 1.7rem;
    margin-bottom: 25px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.contact-detail {
    display: flex;
    margin: 20px 0;
    gap: 15px;
    padding: 15px;
    border-radius: 12px;
    background: var(--bg-light); /* Adaptive */
    transition: var(--transition);
}

.contact-detail:hover {
    background: var(--muted);
    transform: translateX(3px);
}

.contact-icon {
    font-size: 1.7rem;
    color: var(--primary);
    min-width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-text h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--text-dark);
}

.contact-text p, .contact-text a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    font-size: 1.05rem;
}

.contact-text a:hover {
    color: var(--primary);
    transform: translateX(3px);
}

/* Form Styles */
.contact-form {
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.form-group { margin-bottom: 25px; }

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 1.05rem;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    margin-top: 4px;
    background: var(--surface); /* Adaptive input bg */
    color: var(--text-dark);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,113,227,.2);
}

textarea.form-control { min-height: 160px; resize: vertical; }

/* Improved contrast for accessibility */
.submit-button {
    background-color: #0056b3; /* darker blue for better contrast */
    color: #fff;
    border: none;
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    margin-top: 10px;
    width: 100%;
    max-width: 300px;
    box-shadow: 0 0 0 2px #003366; /* subtle outline for focus */
}

.submit-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,113,227,.25);
}

/* Improved contrast for accessibility */
.whatsapp-button {
    background-color: #075e54; /* WhatsApp dark green for contrast */
    color: #fff;
    border: none;
    padding: 16px 30px;
    border-radius: 50px;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(7,94,84,.18);
    text-decoration: none;
    width: fit-content;
    box-shadow: 0 0 0 2px #003366; /* subtle outline for focus */
}

.whatsapp-button:hover {
    background-color: var(--whatsapp-end);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,128,105,.25);
}

/* FAQ */
.faq-item {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 10px;
}

.faq-question {
    width: 100%;
    padding: 18px 0;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    transition: color 0.2s;
}

.faq-question:hover { color: var(--primary); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
    color: var(--text-light);
    padding-bottom: 0;
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding-bottom: 20px;
}

.faq-question::after {
    content: '+';
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    content: '-';
    transform: rotate(180deg);
}

/* WhatsApp Float */
.wa-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--whatsapp-start), var(--whatsapp-end));
    color: var(--whatsapp-foreground);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    z-index: 12000;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wa-float:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.6);
}

/* Footer Updated */
footer {
    background: var(--surface); /* Adaptive */
    color: var(--text-dark);
    text-align: left; 
    padding: 80px 0 40px;
    margin-top: 60px;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-col h3 {
    color: var(--text-dark);
    font-size: 1.5rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
    font-weight: 600;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
}

.footer-col p {
    margin: 15px 0;
    line-height: 1.7;
    color: var(--text-light);
    font-size: 1.05rem;
}

.footer-links {
    list-style: none;
    margin-top: 20px;
    padding: 0;
}

.footer-links li { margin-bottom: 12px; }

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    padding: 6px 0;
    font-size: 1.05rem;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid var(--border);
    font-size: .95rem;
    color: var(--text-light);
}

/* Utilities & Animations */
.ios-transition {
    transition: transform .25s cubic-bezier(.25,.8,.25,1), opacity .25s cubic-bezier(.25,.8,.25,1);
}

.ios-transition:hover {
    transform: scale(1.015);
    opacity: .95;
}

@keyframes fadeInPage {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Media Queries (Solo adattamenti layout, nessuna logica header strana) */
@media (max-width: 992px) {
    .hero h1 { font-size: 2.8rem; }
    .hero p { font-size: 1.25rem; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.3rem; }
    .hero p { font-size: 1.1rem; }
    .section-title h2 { font-size: 2.1rem; }
    section { padding: 80px 0; }
    .contact-container { grid-template-columns: 1fr; }
    footer { text-align: center; }
    .footer-col h3::after { left: 50%; transform: translateX(-50%); }
    .footer-links a:hover { transform: translateX(0) scale(1.05); }
}

@media (max-width: 480px) {
    .header-container { padding: 0 10px; }
    .logo { font-size: 1.4rem; }
    .hero { padding: 100px 0 60px; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1.05rem; }
    .section-title h2 { font-size: 1.8rem; }
    .cities-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
    .contact-info, .contact-form { padding: 25px; }
    .submit-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    *, :after, :before { transition: none !important; animation: none !important; }
}