/* ============================================
   SPORTELLO LEGALE FAMIGLIA - CSS STYLES
   Design moderno, responsive e professionale
   ============================================ */

/* === CSS Variables === */
:root {
    /* Colori Primari - Verde salvia caldo */
    --primary-color: #6F8A6B;   /* sage */
    --primary-light: #A9BEA5;   /* light sage */
    --primary-dark: #556B55;    /* deep sage */
    
    /* Colori Secondari - Pesca caldo */
    --secondary-color: #F4B183;
    --secondary-light: #FAD8C1;
    --secondary-dark: #E79A68;
    
    /* Colori Accent - Terracotta soft */
    --accent-color: #C77B5A;
    --accent-light: #E3B29C;
    
    /* Colori di Background */
    --bg-light: #FFF4EA; /* crema pesca */
    --bg-white: #ffffff;
    --bg-peach: #FCE3D1; /* pesca chiaro */
    --bg-dark: #2F3A33; /* scuro caldo */
    --bg-gradient: linear-gradient(135deg, #F2C9A8 0%, #F8E5D6 100%);

    /* Brand watermark */
    --brand-bg-url: none;
    
    /* Colori Testo */
    --text-dark: #2C3E50;
    --text-medium: #5D6D7E;
    --text-light: #95A5A6;
    --text-white: #ffffff;
    --text-hero: #278b30;       /* verde pastello chiarissimo per hero */
    --text-hero-accent: #59c95f; /* verde pastello per accenti */
    --text-hero-subtitle: #4A7D4A; /* verde pastello scuro per sottotitoli */
    --text-brand: #E79A68;    
    --brand-title-color: var(--text-brand);
    /* Footer (personalizzazione colori) */
    --footer-bg: var(--bg-dark);
    --footer-brand-title: var(--brand-title-color);
    --footer-heading: #EFC7A7;          /* titoli colonne */
    --footer-text: #CFE3D0;             /* testo principale */
    --footer-muted: #B9D0BA;            /* testo secondario */
    --footer-link: #DCECDD;             /* link */
    --footer-link-hover: var(--secondary-light);
    --footer-bullet: var(--secondary-color);
    --footer-icon: var(--secondary-color);
    --footer-divider: rgba(255, 255, 255, 0.12);
    --footer-social-bg: rgba(255, 255, 255, 0.08);
    --footer-social-bg-hover: var(--secondary-color);
    --footer-social-icon: var(--footer-link);
    --footer-social-icon-hover: var(--primary-dark);
    --footer-copyright: rgba(255, 255, 255, 0.55);

    /* Watermark (logo di sfondo) */
    --watermark-opacity: 0.09;
    --watermark-size: 45%;
    --watermark-filter: grayscale(25%);

    /* Backward-compat (se usati altrove) */
    --text-footer-color: var(--footer-heading);
    --text-footer-accent: var(--footer-link);
    
    /* Bordi e Ombre */
    --border-color: #e2e8f0;
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --border-radius-full: 50%;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 15px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    
    /* Transizioni */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Font */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Spacing */
    --section-padding: 100px 0;
    --section-padding-mobile: 60px 0;
}

/* === Reset & Base === */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    background-color: var(--bg-light); /* Changed to peach background */
    background-image:
        var(--brand-bg-url, none),
        var(--bg-gradient);
    background-repeat: no-repeat, no-repeat;
    background-position: center, top left;
    background-size: 70%, cover;
    background-attachment: fixed, fixed;
    position: relative;
}

body::after {
    content: none;
}

main > section {
    position: relative;
}

main > section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--brand-bg-url, none);
    background-repeat: no-repeat;
    background-position: center;
    background-size: var(--watermark-size);
    opacity: var(--watermark-opacity);
    pointer-events: none;
    z-index: 0;
    filter: var(--watermark-filter);
}

main > section > * {
    position: relative;
    z-index: 1;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-color);
}

.text-gradient {
    background: none;
    color: currentColor;
    -webkit-text-fill-color: currentColor;
}

/* === Navbar === */
.navbar {
    padding: 1rem 0;
    transition: all var(--transition-normal);
    background: rgba(111, 138, 107, var(--navbar-bg-alpha, 0));
    backdrop-filter: blur(0px);
}

.navbar.scrolled {
    background: rgba(111, 138, 107, 0.98);
    backdrop-filter: blur(10px);
    padding: 0.75rem 0;
    box-shadow: var(--shadow-md);
}

.navbar-logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
    transition: transform var(--transition-fast);
}

.navbar-logo:hover {
    transform: scale(1.1);
}

.brand-text {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--brand-title-color);
}

.navbar-nav .nav-link {
    color: var(--text-hero-accent);
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: var(--border-radius);
    transition: all var(--transition-fast);
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width var(--transition-fast);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 60%;
}

.navbar-nav .nav-link:hover {
    color: var(--text-hero);
}

.btn-cta {
    background: var(--secondary-color);
    color: var(--primary-dark) !important;
    padding: 0.5rem 1.5rem !important;
    border-radius: 30px;
    font-weight: 600;
}

.navbar.scrolled .btn-cta {
    background: var(--secondary-color);
    color: var(--primary-dark) !important;
}

.btn-cta:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 206, 84, 0.3);
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* === Hero Section === */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: #C9D7C2; /* verde salvia chiaro */
    overflow: hidden;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 206, 84, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(79, 193, 233, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-particles::before,
.hero-particles::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: var(--border-radius-full);
    background: rgba(255, 255, 255, 0.03);
    animation: float 8s ease-in-out infinite;
}

.hero-particles::before {
    top: 10%;
    right: 10%;
}

.hero-particles::after {
    bottom: 20%;
    left: 5%;
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(5deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(232, 245, 233, 0.2);
    backdrop-filter: blur(10px);
    color: var(--text-hero);
    padding: 0.5rem 1.25rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(232, 245, 233, 0.3);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--brand-title-color);
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-hero-subtitle);
    margin-bottom: 2rem;
    max-width: 540px;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn-primary-custom {
    background: var(--secondary-color);
    color: var(--primary-dark);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.btn-primary-custom:hover {
    background: var(--secondary-dark);
    color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(201, 162, 39, 0.4);
}

.btn-outline-custom {
    background: transparent;
    color: var(--text-hero);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid var(--text-hero-accent);
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.btn-outline-custom:hover {
    background: rgba(232, 245, 233, 0.15);
    border-color: var(--text-hero);
    color: var(--text-hero);
}

.hero-stats {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: left;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    line-height: 1;
}

.stat-label {
    color: var(--text-hero-accent);
    font-size: 0.9rem;
}

/* Hero Image Container */
.hero-image-container {
    position: relative;
    height: 500px;
}

.hero-image-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.3) 0%, rgba(49, 130, 206, 0.3) 100%);
    border-radius: var(--border-radius-full);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
}

.hero-floating-card {
    position: absolute;
    background: var(--bg-white);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: floatCard 6s ease-in-out infinite;
}

.hero-floating-card i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.hero-floating-card span {
    font-weight: 600;
    color: var(--text-dark);
}

.hero-floating-card.card-1 {
    top: 15%;
    right: 10%;
}

.hero-floating-card.card-2 {
    bottom: 25%;
    left: 10%;
    animation-delay: -3s;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.hero-scroll-indicator a {
    display: flex;
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius-full);
    background: rgba(232, 245, 233, 0.15);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    color: var(--text-hero);
    font-size: 1.25rem;
    transition: all var(--transition-normal);
    animation: bounce 2s infinite;
    border: 1px solid rgba(232, 245, 233, 0.3);
}

.hero-scroll-indicator a:hover {
    background: rgba(232, 245, 233, 0.25);
    transform: translateY(5px);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* === Section Common Styles === */
.section-header {
    margin-bottom: 3rem;
}

.section-badge {
    display: inline-block;
    background: rgba(111, 138, 107, 0.12);
    color: var(--primary-color);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-medium);
    max-width: 600px;
    margin: 0 auto;
}

/* === Services Section === */
.services-section {
    padding: var(--section-padding);
    background: var(--bg-light);
}

.service-card {
    background: var(--bg-white);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    height: 100%;
    transition: all var(--transition-normal);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--bg-gradient);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(111, 138, 107, 0.14) 0%, rgba(244, 177, 131, 0.18) 100%);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all var(--transition-normal);
}

.service-icon i {
    font-size: 1.75rem;
    color: var(--primary-color);
    transition: all var(--transition-normal);
}

.service-card:hover .service-icon {
    background: var(--bg-gradient);
}

.service-card:hover .service-icon i {
    color: var(--primary-dark);
    transform: scale(1.1);
}

.service-title {
    font-size: 1.35rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-desc {
    color: var(--text-medium);
    margin-bottom: 1.5rem;
}

.service-link {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all var(--transition-fast);
}

.service-link:hover {
    color: var(--primary-color);
    gap: 0.5rem;
}

.service-link i {
    transition: transform var(--transition-fast);
}

.service-link:hover i {
    transform: translateX(5px);
}

/* === About Section === */
.about-section {
    padding: var(--section-padding);
    background: var(--bg-white);
}

.about-image-container {
    position: relative;
    padding: 2rem;
}

.about-image-main {
    position: relative;
    height: 400px;
    background: var(--bg-gradient);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.about-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255,255,255,0.2) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(201, 162, 39, 0.3) 0%, transparent 50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-icon {
    font-size: 8rem;
    color: var(--primary-color);
    opacity: 0.85;
    text-shadow: 0 10px 30px rgba(111, 138, 107, 0.3);
    animation: floatIcon 6s ease-in-out infinite;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.02); }
}

.about-experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--secondary-color);
    color: var(--primary-dark);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.exp-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.exp-text {
    font-size: 0.85rem;
    font-weight: 500;
}

.about-content {
    padding-left: 2rem;
}

.about-text {
    color: var(--text-medium);
    margin-bottom: 1.5rem;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature-item i {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.feature-item span {
    font-weight: 500;
    color: var(--text-dark);
}

/* === Benefits Section === */
.benefits-section {
    padding: var(--section-padding);
    background: var(--bg-light);
}

.benefit-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    height: 100%;
    transition: all var(--transition-normal);
    border: 1px solid var(--border-color);
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #7E9B78 0%, #B9CBB2 100%);
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.benefit-icon i {
    font-size: 2rem;
    color: var(--text-hero);
}

.benefit-title {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.benefit-desc {
    color: var(--text-medium);
    font-size: 0.95rem;
}

/* === Process Section === */
.process-section {
    padding: var(--section-padding);
    background: var(--bg-white);
}

.process-timeline {
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 100px;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--border-color);
    z-index: 0;
}

.process-step {
    position: relative;
    text-align: center;
    padding: 0 1rem;
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3rem;
    font-weight: 800;
    color: rgba(26, 54, 93, 0.08);
    z-index: 0;
}

.step-icon {
    width: 100px;
    height: 100px;
    background: var(--bg-gradient);
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 1;
    border: 6px solid var(--bg-white);
    box-shadow: var(--shadow-md);
}

.step-icon i {
    font-size: 2rem;
    color: var(--primary-dark);
}

.step-title {
    font-size: 1.15rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.step-desc {
    color: var(--text-medium);
    font-size: 0.95rem;
}

/* === FAQ Section === */
.faq-section {
    padding: var(--section-padding);
    background: var(--bg-light);
}

.faq-header {
    padding-right: 2rem;
}

.faq-intro {
    color: var(--text-medium);
    margin-top: 1rem;
}

.faq-accordion {
    background: transparent;
}

.faq-accordion .accordion-item {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius) !important;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-accordion .accordion-button {
    background: var(--bg-white);
    color: var(--primary-color);
    font-weight: 600;
    padding: 1.25rem 1.5rem;
    border: none;
    box-shadow: none !important;
}

.faq-accordion .accordion-button:not(.collapsed) {
    background: rgba(26, 54, 93, 0.03);
    color: var(--primary-color);
}

.faq-accordion .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%235D9CEC'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.faq-accordion .accordion-button i {
    color: var(--secondary-color);
}

.faq-accordion .accordion-body {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-medium);
}

/* === CTA Section === */
.cta-section {
    padding: 80px 0;
    background: var(--bg-gradient);
}

.cta-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-title {
    color: var(--primary-dark);
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.cta-text {
    color: var(--text-medium);
}

.btn-white {
    background: var(--bg-white);
    color: var(--primary-color);
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    transition: all var(--transition-normal);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-white:hover {
    background: var(--secondary-color);
    color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-white {
    background: transparent;
    color: var(--primary-dark);
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: all var(--transition-normal);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-dark);
    color: var(--primary-dark);
}

/* === Contact Section === */
.contact-section {
    padding: var(--section-padding);
    background: var(--bg-white);
}

.contact-info {
    padding-right: 2rem;
}

.contact-intro {
    color: var(--text-medium);
    margin-top: 1rem;
}

.contact-details {
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(111, 138, 107, 0.12) 0%, rgba(244, 177, 131, 0.15) 100%);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.25rem;
    color: var(--primary-color);
}

.contact-text .label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.contact-text a,
.contact-text span {
    color: var(--text-dark);
    font-weight: 500;
    text-decoration: none;
}

.contact-text a:hover {
    color: var(--primary-color);
}

.contact-form-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.contact-form .form-control,
.contact-form .form-select {
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1rem 1rem 1rem 1rem;
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(26, 54, 93, 0.1);
}

.contact-form .form-floating label {
    color: var(--text-light);
}

.contact-form .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.contact-form .form-check-label a {
    color: var(--primary-color);
}

/* === Footer === */
.footer-section {
    background: var(--footer-bg);
    padding: 60px 0 30px;
    color: var(--footer-text);
}

.footer-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.footer-brand h5 {
    color: var(--footer-brand-title);
    margin-bottom: 1rem;
}

.text-light-muted {
    color: var(--footer-muted);
    font-size: 0.95rem;
}

.footer-title {
    color: var(--footer-heading);
    font-weight: 600;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--footer-bullet);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--footer-link);
    text-decoration: none;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
}

.footer-links a::before {
    content: '›';
    margin-right: 0.5rem;
    color: var(--footer-bullet);
}

.footer-links a:hover {
    color: var(--footer-link-hover);
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    margin-bottom: 0.75rem;
    color: var(--footer-text);
    display: flex;
    align-items: center;
}

.footer-contact i {
    color: var(--footer-icon);
    width: 20px;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--footer-social-bg);
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--footer-social-icon);
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background: var(--footer-social-bg-hover);
    color: var(--footer-social-icon-hover);
    transform: translateY(-3px);
}

.footer-divider {
    border-color: var(--footer-divider);
    margin: 2rem 0;
}

.copyright-text {
    margin: 0;
    font-size: 0.9rem;
    color: var(--footer-copyright);
}

/* === Scroll to Top === */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--text-hero);
    border: none;
    border-radius: var(--border-radius-full);
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* === Message Container === */
.message-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 1050;
    max-width: 400px;
}

.message-item {
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: slideIn 0.3s ease;
    box-shadow: var(--shadow-md);
}

.message-error {
    background: #fee2e2;
    border-left: 4px solid #ef4444;
    color: #991b1b;
}

.message-success {
    background: #dcfce7;
    border-left: 4px solid #22c55e;
    color: #166534;
}

.close-message {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.6;
    padding: 0 0.5rem;
    line-height: 1;
}

.close-message:hover {
    opacity: 1;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* === Responsive Design === */
@media (max-width: 1199px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-image-container {
        height: 400px;
    }
    
    .hero-image-bg {
        width: 280px;
        height: 280px;
    }
}

@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--primary-dark);
        padding: 1rem;
        border-radius: var(--border-radius);
        margin-top: 1rem;
    }
    
    .navbar-nav .nav-link::after {
        display: none;
    }
    
    .hero-section {
        padding-top: 100px;
        min-height: auto;
        padding-bottom: 80px;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .about-content {
        padding-left: 0;
        margin-top: 2rem;
    }
    
    .faq-header {
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .contact-info {
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .process-timeline::before {
        display: none;
    }
    
    .process-step {
        margin-bottom: 2rem;
    }
}

@media (max-width: 767px) {
    :root {
        --section-padding: 60px 0;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: space-between;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .cta-card {
        padding: 2rem;
        text-align: center;
    }
    
    .cta-title {
        font-size: 1.5rem;
    }
    
    .contact-form-card {
        padding: 1.5rem;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-links {
        justify-content: center;
    }
    
    .message-container {
        left: 20px;
        right: 20px;
        max-width: none;
    }
    
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 575px) {
    .hero-badge {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .stat-item {
        display: flex;
        align-items: baseline;
        gap: 0.5rem;
    }
    
    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* === Print Styles === */
@media print {
    .navbar,
    .hero-scroll-indicator,
    .scroll-to-top,
    .message-container {
        display: none !important;
    }
    
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
        background: none;
    }
    
    .hero-title {
        color: #000;
    }
}

/* === Accessibility === */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* === Focus States for Accessibility === */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* === AOS Animation Overrides === */
/* pointer-events rimosso: bloccava click su form e sezioni
   prima che l'IntersectionObserver attivasse l'animazione */
