/*
Theme Name: Nexum Global Mobility
Theme URI: https://nexumglobalmobility.it
Author: Nexum Global Mobility
Author URI: https://nexumglobalmobility.it
Description: Tema dark premium per Nexum Global Mobility - Consulenza Immigrazione Italia. Design moderno ispirato a Bending Spoons con video background e effetti glow. v3.1: ottimizzazione SEO/GEO (schema.org, FAQ, hreflang) e hardening sicurezza.
Version: 3.1.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nexum
Tags: dark, modern, video-background, immigration, consulting, business, professional, responsive, seo-optimized
*/

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #161616;
    --text-primary: #ffffff;
    --text-secondary: rgba(255,255,255,0.7);
    --text-muted: rgba(255,255,255,0.4);
    --accent-1: #6366f1;
    --accent-2: #8b5cf6;
    --accent-3: #ec4899;
    --border-color: rgba(255,255,255,0.08);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

::selection { background: var(--accent-1); color: white; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

/* Prevent SVG expansion */
svg {
    flex-shrink: 0;
    overflow: visible;
}

.btn svg {
    width: 18px !important;
    height: 18px !important;
    max-width: 18px;
    max-height: 18px;
}

.service-link svg {
    width: 14px !important;
    height: 14px !important;
    max-width: 14px;
    max-height: 14px;
}

.credential-icon svg {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px;
    max-height: 24px;
}

.contact-detail svg {
    width: 20px !important;
    height: 20px !important;
    max-width: 20px;
    max-height: 20px;
}

/* HEADER */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1.5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(10,10,10,0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.logo img { height: 44px; width: auto; }

.nav { display: flex; align-items: center; gap: 2.5rem; }
.nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s;
}
.nav a:hover { color: var(--text-primary); }

.nav-cta {
    padding: 0.75rem 1.75rem;
    background: var(--text-primary);
    color: var(--bg-primary) !important;
    border-radius: 100px;
    font-weight: 600;
}
.nav-cta:hover { opacity: 0.9; }

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}
.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s;
}

/* HERO */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8rem 4rem 6rem;
    position: relative;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(10,10,10,0.5) 0%,
        rgba(10,10,10,0.6) 50%,
        rgba(10,10,10,1) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-1);
    margin-bottom: 2rem;
}

.hero-title {
    font-size: clamp(3.5rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
}

.hero-title em {
    font-style: italic;
    font-weight: 500;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2), var(--accent-3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 550px;
    margin-bottom: 3rem;
    line-height: 1.7;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 100px;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(255,255,255,0.15);
}

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

.btn-secondary:hover {
    border-color: var(--text-primary);
    background: rgba(255,255,255,0.05);
}

.btn svg { width: 18px; height: 18px; transition: transform 0.2s; }
.btn:hover svg { transform: translateX(4px); }

/* SECTORS */
.sectors {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.sectors-header {
    padding: 3rem 4rem 1.5rem;
    text-align: center;
}

.sectors-title {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.sectors-carousel {
    padding: 1.5rem 4rem 3rem;
    overflow: hidden;
}

.sectors-track {
    display: flex;
    gap: 3rem;
    animation: scroll 45s linear infinite;
}

.sectors-item {
    flex-shrink: 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
}

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

/* SECTIONS */
.section { padding: 8rem 4rem; position: relative; }
.section-header { margin-bottom: 4rem; }
.section-header.center { text-align: center; }

.section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.section-title em {
    font-style: italic;
    font-weight: 500;
    color: var(--accent-2);
}

/* SERVICES - UNIFIED STYLE */
.services::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 20%, rgba(99,102,241,0.1) 0%, transparent 50%),
                radial-gradient(ellipse at 20% 80%, rgba(236,72,153,0.08) 0%, transparent 50%);
    pointer-events: none;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: 1rem;
    max-width: 600px;
}

.section-header.center .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

.services-category {
    margin-bottom: 4rem;
}

.services-category:last-child {
    margin-bottom: 0;
}

.category-title {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-1);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.category-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border-color), transparent);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    position: relative;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
}

.service-card:hover {
    border-color: rgba(255,255,255,0.15);
    transform: translateY(-4px);
    background: linear-gradient(135deg, rgba(99,102,241,0.05) 0%, rgba(139,92,246,0.05) 100%);
}

.service-icon-svg {
    display: block;
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    max-width: 48px !important;
    max-height: 48px !important;
    padding: 12px;
    background: linear-gradient(135deg, rgba(99,102,241,0.2) 0%, rgba(139,92,246,0.2) 100%);
    border-radius: 12px;
    margin-bottom: 1.25rem;
    color: var(--accent-1);
    flex-shrink: 0;
    box-sizing: content-box;
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-card ul {
    list-style: none;
}

.service-card li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 0.4rem 0;
    padding-left: 1.25rem;
    position: relative;
}

.service-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.85rem;
    width: 6px;
    height: 6px;
    background: var(--accent-2);
    border-radius: 50%;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-1);
    margin-top: 1rem;
    transition: gap 0.2s;
}

.service-link:hover {
    gap: 0.75rem;
}

/* PROCESS */
.process { background: var(--bg-secondary); }

.process::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 0% 50%, rgba(99,102,241,0.08) 0%, transparent 50%);
    pointer-events: none;
}

.process-grid {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
}

.process-grid::before {
    content: '';
    position: absolute;
    top: 2rem;
    left: 5%; right: 5%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.process-step {
    flex: 1;
    text-align: center;
    position: relative;
}

.step-number {
    width: 64px; height: 64px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-1);
    position: relative;
    z-index: 1;
}

.process-step h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.process-step p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ABOUT */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.about-image { position: relative; }

.about-image img {
    width: 100%;
    border-radius: 16px;
}

.about-image::after {
    content: '';
    position: absolute;
    inset: -20px;
    border: 1px solid var(--accent-1);
    border-radius: 20px;
    opacity: 0.3;
    z-index: -1;
}

.about-content blockquote {
    font-size: 1.75rem;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 2rem;
    padding-left: 2rem;
    border-left: 3px solid var(--accent-1);
}

.about-content blockquote em {
    font-style: italic;
    color: var(--accent-2);
}

.about-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.about-author h4 {
    font-size: 1.1rem;
    font-weight: 600;
}

.about-author p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* CREDENTIALS */
.credentials {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 5rem 4rem;
}

.credentials-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
}

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

.credential-svg {
    display: block;
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    margin: 0 auto 1rem;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--accent-1);
    box-sizing: content-box;
}

.credential-item h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.credential-item p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* REVIEWS */
.reviews::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 100%, rgba(236,72,153,0.08) 0%, transparent 50%);
    pointer-events: none;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
    position: relative;
}

.review-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
}

.review-stars { color: var(--accent-2); margin-bottom: 1rem; }

.review-text {
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.review-text em {
    font-style: italic;
    color: var(--accent-2);
}

.review-author {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.reviews-cta {
    text-align: center;
    position: relative;
}

/* CTA */
.cta {
    padding: 10rem 4rem;
    text-align: center;
    position: relative;
}

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(99,102,241,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.cta .section-title { margin-bottom: 1rem; position: relative; }
.cta p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    position: relative;
}

/* FOOTER */
.footer {
    padding: 5rem 4rem 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand img { height: 36px; margin-bottom: 1rem; }
.footer-brand p {
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 280px;
}

.footer-col h4 {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.75rem; }
.footer-col a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color 0.2s;
}
.footer-col a:hover { color: var(--text-primary); }

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-links { display: flex; gap: 2rem; }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--text-primary); }

/* COOKIE BANNER */
.cookie-banner {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem; right: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    z-index: 9999;
    transform: translateY(150%);
    transition: transform 0.4s ease;
}

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

.cookie-banner p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

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

.cookie-btns { display: flex; gap: 0.75rem; flex-shrink: 0; }

.cookie-btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.cookie-btn.accept { background: var(--text-primary); color: var(--bg-primary); }
.cookie-btn.reject {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

/* PAGE TEMPLATES */
.page-hero {
    padding: 12rem 4rem 4rem;
    position: relative;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: radial-gradient(ellipse at 50% 0%, rgba(99,102,241,0.15) 0%, transparent 50%);
    pointer-events: none;
}

.page-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
}

.page-hero h1 em {
    font-style: italic;
    font-weight: 500;
    color: var(--accent-2);
}

.page-hero .lead {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto;
    position: relative;
    line-height: 1.8;
}

.page-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-1);
    margin-bottom: 2rem;
    position: relative;
    transition: gap 0.2s;
}

.page-back:hover {
    gap: 0.75rem;
}

.page-back svg {
    width: 16px;
    height: 16px;
    transform: rotate(180deg);
}

.page-content {
    padding: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.page-content-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.content-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.3s ease;
}

.content-card:hover {
    border-color: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

.content-card.full-width {
    grid-column: 1 / -1;
}

.content-card h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.content-card h2::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, var(--accent-1), var(--accent-2));
    border-radius: 2px;
}

.content-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.content-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.content-card li {
    color: var(--text-secondary);
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.content-card li:last-child {
    border-bottom: none;
}

.content-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1.1rem;
    width: 8px;
    height: 8px;
    background: var(--accent-1);
    border-radius: 50%;
}

.page-cta {
    margin-top: 4rem;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(99,102,241,0.1) 0%, rgba(139,92,246,0.1) 100%);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.page-cta h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.page-cta p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.page-cta .btn {
    margin: 0.5rem;
}

/* WHATSAPP FLOATING BUTTON */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 998;
    transition: all 0.3s ease;
    text-decoration: none;
}

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

/* LANGUAGE SWITCH */
.lang-switch {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: all 0.2s;
}

.lang-switch:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
}

/* ABOUT IMAGE SMALLER */
.about-image-small {
    max-width: 350px;
}

.about-image-small img {
    border-radius: 16px;
}

.about-image-small::after {
    inset: -15px;
}

/* CONTACT SECTION */
.contact-section {
    background: var(--bg-secondary);
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(99,102,241,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.contact-grid {
    display: grid !important;
    grid-template-columns: 1fr 1.2fr !important;
    gap: 4rem !important;
    align-items: start;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    position: sticky;
    top: 120px;
}

.contact-info .section-title {
    margin-bottom: 1rem;
}

.contact-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: var(--text-secondary);
}

.contact-detail svg,
.contact-svg {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    color: var(--accent-1);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-detail a {
    color: var(--text-secondary);
    transition: color 0.2s;
}

.contact-detail a:hover {
    color: var(--text-primary);
}

/* CONTACT FORM */
.contact-form-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    color: var(--text-primary);
    font-family: inherit;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-1);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}

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

.form-privacy {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.form-privacy a {
    color: var(--accent-1);
    text-decoration: underline;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.form-success {
    display: none !important;
    padding: 1rem;
    background: rgba(37, 211, 102, 0.1);
    border: 1px solid rgba(37, 211, 102, 0.3);
    border-radius: 12px;
    color: #25D366;
    text-align: center;
    font-weight: 500;
}

.form-success.show {
    display: block !important;
}

/* PAGE BACK LINK FIX */
.page-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-1);
    margin-bottom: 2rem;
    position: relative;
    transition: all 0.2s;
}

.page-back:hover {
    color: var(--text-primary);
}

.page-back svg {
    width: 16px;
    height: 16px;
    transform: rotate(180deg);
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .credentials-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .header { padding: 1rem 2rem; }
    .nav { 
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--border-color);
    }
    .nav.active { display: flex; }
    .menu-toggle { display: flex; }
    
    .hero, .section, .cta, .page-hero, .page-content { padding-left: 2rem; padding-right: 2rem; }
    .sectors-header, .sectors-carousel { padding-left: 2rem; padding-right: 2rem; }
    .credentials { padding-left: 2rem; padding-right: 2rem; }
    
    .about-grid { grid-template-columns: 1fr; gap: 3rem; }
    .about-image-small { max-width: 280px; margin: 0 auto; }
    .reviews-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .footer { padding-left: 2rem; padding-right: 2rem; }
    
    .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
    .contact-info { position: static; }
    .contact-section { padding-left: 2rem; padding-right: 2rem; }
    
    /* Fix per sezione contatti inline */
    #contatti > div { 
        grid-template-columns: 1fr !important; 
        gap: 2rem !important;
        padding: 0 !important;
    }
    #contatti { padding: 4rem 2rem !important; }
    
    .cookie-banner { flex-direction: column; text-align: center; left: 1rem; right: 1rem; bottom: 5rem; }
    
    .page-content-grid { grid-template-columns: 1fr; }
    
    .whatsapp-float { bottom: 1.5rem; right: 1.5rem; width: 56px; height: 56px; }
}

@media (max-width: 600px) {
    .services-grid, .process-grid, .credentials-grid { grid-template-columns: 1fr; }
    .process-grid { flex-direction: column; }
    .process-grid::before { display: none; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
    .footer-links { justify-content: center; }
    
    /* Fix metodo orizzontale per mobile */
    #processo > div:last-child {
        flex-direction: column !important;
    }
    #processo > div:last-child > div {
        max-width: 100% !important;
    }
    #processo > div:last-child > div > div:first-child {
        display: none !important; /* Nascondi frecce su mobile */
    }
}

/* ============================================================
   SEO/Accessibility additions (v2.0)
   ============================================================ */

/* Skip link per accessibilità (WCAG 2.1) */
.skip-link.screen-reader-text {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.skip-link.screen-reader-text:focus {
    position: fixed;
    left: 1rem;
    top: 1rem;
    width: auto;
    height: auto;
    padding: 0.75rem 1.25rem;
    background: #0a2540;
    color: #fff;
    z-index: 100000;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

/* FAQ nelle pagine servizio */
.page-faq {
    max-width: 860px;
    margin: 3.5rem auto 0;
    padding: 0 1.5rem;
}
.page-faq h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #0a2540;
}
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.faq-item {
    background: #fff;
    border: 1px solid rgba(10, 37, 64, 0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.faq-item[open] {
    box-shadow: 0 6px 20px rgba(10, 37, 64, 0.06);
    border-color: rgba(99, 102, 241, 0.3);
}
.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 1.15rem 1.5rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #0a2540;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.2s ease;
    color: #6366f1;
}
.faq-item[open] summary::after {
    content: '−';
}
.faq-answer {
    padding: 0 1.5rem 1.25rem;
    color: rgba(10, 37, 64, 0.75);
    line-height: 1.7;
}
.faq-answer p { margin: 0; }
