/* ==========================================================================
   DESIGN SYSTEM & VARIABLES - NEWSGARDEN
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Color Palette */
    --color-primary: #163E32;         /* Deep Corporate Green */
    --color-primary-light: #205948;   /* Medium B2B Green */
    --color-secondary: #718096;       /* Slate Grey */
    --color-secondary-light: #A0AEC0; /* Light Slate */
    --color-accent: #E5A93B;          /* Warm Gold Amber */
    --color-accent-hover: #C58E2F;    /* Accent Hover */
    --color-bg-light: #FAF9F6;        /* Soft Cream-Grey */
    --color-bg-cream: #EAE6DF;        /* Warm card bg */
    --color-text-dark: #2D3748;       /* Dark grey text */
    --color-text-muted: #718096;      /* Muted text */
    --color-white: #FFFFFF;
    --color-error: #DC3545;
    
    /* Typography */
    --font-headings: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout Tokens */
    --border-radius-sm: 6px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --border-radius-full: 50%;
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* Box Shadows */
    --box-shadow-subtle: 0 4px 20px rgba(22, 62, 50, 0.03);
    --box-shadow-medium: 0 10px 30px rgba(22, 62, 50, 0.06);
    --box-shadow-hover: 0 20px 40px rgba(22, 62, 50, 0.12);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    color: var(--color-primary);
    font-weight: 700;
    line-height: 1.25;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius-md);
}

/* ==========================================================================
   LAYOUT & CONTAINER
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 7rem 0;
}

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

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

.bg-cream {
    background-color: var(--color-bg-cream);
}

/* Grids */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

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

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

/* Section Header */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 5rem auto;
}

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

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1.2rem;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--color-text-muted);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition-smooth);
    background-color: rgba(242, 236, 228, 0.98); /* Solid grey-cream background for contrast */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(30, 70, 32, 0.05);
}

.site-header.scrolled {
    background-color: rgba(242, 236, 228, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(30, 70, 32, 0.05);
    padding: 0.8rem 0;
}

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

/* Logo Design */
.logo {
    display: flex;
    flex-direction: column;
    font-family: var(--font-headings);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--color-primary);
    line-height: 1;
}

.logo img {
    mix-blend-mode: multiply; /* Blends white background JPG with the grey-cream header background */
}

.logo span {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--color-accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 2px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 3rem;
}

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

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-primary);
    position: relative;
    padding: 0.5rem 0;
}

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

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

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

/* Mobile Toggle */
.burger-menu {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1010;
}

.burger-line {
    width: 28px;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

.burger-menu.open .burger-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.burger-menu.open .burger-line:nth-child(2) {
    opacity: 0;
}

.burger-menu.open .burger-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Drawer Menu */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    z-index: 1005;
    display: flex;
    transition: all 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
}

.mobile-drawer.open {
    right: 0;
}

.drawer-overlay {
    width: 30%;
    background-color: rgba(30, 70, 32, 0.4);
    backdrop-filter: blur(4px);
}

.drawer-content {
    width: 70%;
    background-color: var(--color-bg-light);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
}

.drawer-close {
    font-size: 2.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-primary);
}

.mobile-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mobile-nav-link {
    font-family: var(--font-headings);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--color-primary);
}

.mobile-nav-link.active,
.mobile-nav-link:hover {
    color: var(--color-accent);
    padding-left: 10px;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(30, 70, 32, 0.2);
}

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

.btn-accent:hover {
    background-color: var(--color-accent-hover);
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(229, 169, 59, 0.3);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--color-white);
    color: var(--color-white);
}

.btn-outline:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
}

.btn-outline-dark {
    background-color: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-outline-dark:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    position: relative;
    height: 90vh;
    min-height: 650px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--color-white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(30, 70, 32, 0.5) 0%, rgba(17, 36, 18, 0.8) 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 750px;
}

.hero-subtitle {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 4rem;
    color: var(--color-white);
    margin-bottom: 1.5rem;
}

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

.hero-text {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-ctas {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* ==========================================================================
   PAGE HEADER (SUBPAGES)
   ========================================================================== */
.page-header-section {
    position: relative;
    padding: 10rem 0 5rem 0;
    background-color: var(--color-primary);
    background-image: linear-gradient(to right, rgba(30, 70, 32, 0.9), rgba(17, 36, 18, 0.95)), url('assets/aiuola_hero.png');
    background-size: cover;
    background-position: center;
    color: var(--color-white);
    text-align: center;
}

.page-header-section h1 {
    font-size: 3.5rem;
    color: var(--color-white);
    margin-bottom: 1rem;
}

.breadcrumb {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a {
    color: var(--color-accent);
}

.breadcrumb a:hover {
    color: var(--color-white);
}

/* ==========================================================================
   CARDS & GRID COMPONENT
   ========================================================================== */
.feature-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius-md);
    padding: 3rem 2.5rem;
    box-shadow: var(--box-shadow-subtle);
    border: 1px solid rgba(30, 70, 32, 0.03);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--color-primary);
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-hover);
}

.feature-card:hover::before {
    background-color: var(--color-accent);
}

.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    background-color: rgba(142, 159, 128, 0.15);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.8rem;
    transition: var(--transition-smooth);
}

.feature-card:hover .feature-icon-wrapper {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

/* Service Detail Block */
.service-detail-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow-subtle);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(30, 70, 32, 0.03);
    transition: var(--transition-smooth);
}

.service-detail-card:hover {
    box-shadow: var(--box-shadow-hover);
    transform: translateY(-4px);
}

.service-img-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.service-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transition: var(--transition-smooth);
}

.service-detail-card:hover .service-img-wrapper img {
    transform: scale(1.05);
}

.service-content-wrapper {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-content-wrapper h3 {
    font-size: 1.6rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.service-features-list {
    list-style: none;
    margin: 1.5rem 0 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.service-feature-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.95rem;
    color: var(--color-text-dark);
}

.service-feature-item svg {
    color: var(--color-secondary);
    flex-shrink: 0;
}

/* ==========================================================================
   SPLIT LAYOUT (TWO COLS)
   ========================================================================== */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
    align-items: center;
}

.split-image-container {
    position: relative;
}

.split-image-container::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--color-accent);
    border-radius: var(--border-radius-md);
    z-index: -1;
}

.split-image-container img {
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow-medium);
}

.split-content h2 {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.split-content p {
    font-size: 1.05rem;
    margin-bottom: 2rem;
    color: var(--color-text-dark);
}

/* ==========================================================================
   CHINOTTO & SPECIAL BANNER
   ========================================================================== */
.special-focus-banner {
    position: relative;
    background-color: var(--color-primary);
    background-image: linear-gradient(135deg, rgba(30, 70, 32, 0.9), rgba(17, 36, 18, 0.95)), url('assets/decespugliatore.png');
    background-size: cover;
    background-position: center;
    color: var(--color-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-hover);
    overflow: hidden;
}

.special-focus-content {
    padding: 5rem;
}

.special-focus-content h2 {
    color: var(--color-white);
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

.special-focus-content h2 span {
    color: var(--color-accent);
}

.special-focus-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

/* ==========================================================================
   CTA BANNER
   ========================================================================== */
.cta-banner {
    position: relative;
    background-color: var(--color-primary);
    background-image: linear-gradient(135deg, rgba(30, 70, 32, 0.9), rgba(17, 36, 18, 0.95)), url('assets/aiuola_hero.png');
    background-size: cover;
    background-position: center;
    color: var(--color-white);
    text-align: center;
    padding: 6rem 0;
}

.cta-banner-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-banner-content h2 {
    font-size: 2.8rem;
    color: var(--color-white);
    margin-bottom: 1.5rem;
}

.cta-banner-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.5rem;
}

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

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background-color: #0B1F19;
    color: #E2ECE3;
    padding: 5rem 0 2rem 0;
    font-size: 0.95rem;
    border-top: 4px solid var(--color-accent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    color: var(--color-white);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.footer-col h4 span {
    display: block;
    font-size: 0.65rem;
    color: var(--color-accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 2px;
}

.footer-col h5 {
    color: var(--color-white);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    border-left: 3px solid var(--color-accent);
    padding-left: 0.8rem;
}

.footer-col p {
    line-height: 1.7;
    color: #A3BCA6;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: #A3BCA6;
    transition: var(--transition-smooth);
}

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

.footer-contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.2rem;
    color: #A3BCA6;
}

.footer-contact-item svg {
    color: var(--color-accent);
    flex-shrink: 0;
    margin-top: 4px;
}

.footer-contact-item a {
    color: #E2ECE3;
    font-weight: 500;
}

.footer-contact-item a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #839F86;
    font-size: 0.85rem;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom-links a:hover {
    color: var(--color-white);
}

/* ==========================================================================
   FLOATING WHATSAPP
   ========================================================================== */
.whatsapp-floating {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    z-index: 999;
    transition: var(--transition-smooth);
}

.whatsapp-floating:hover {
    transform: scale(1.1) rotate(10deg);
    background-color: #20BA5A;
}

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

/* ==========================================================================
   CONTACT FORM & ALERTS
   ========================================================================== */
.contact-form-wrapper {
    background-color: var(--color-white);
    padding: 3.5rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow-medium);
    border: 1px solid rgba(30, 70, 32, 0.04);
}

.form-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.form-subtitle {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.8rem;
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-control {
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 0.9rem 1.2rem;
    background-color: #FAF8F5;
    border: 1px solid rgba(30, 70, 32, 0.08);
    border-radius: var(--border-radius-sm);
    color: var(--color-text-dark);
    outline: none;
    transition: var(--transition-smooth);
    width: 100%;
    max-width: 100%;
}

.form-control:focus {
    border-color: var(--color-accent);
    background-color: var(--color-white);
    box-shadow: 0 0 10px rgba(229, 169, 59, 0.1);
}

textarea.form-control {
    min-height: 140px;
    resize: vertical;
}

/* Alert States */
.form-alert {
    padding: 1.2rem 1.5rem;
    border-radius: var(--border-radius-sm);
    margin-bottom: 2rem;
    font-size: 0.95rem;
    font-weight: 500;
    display: none;
}

.form-alert.success {
    background-color: #D4EDDA;
    color: #155724;
    border: 1px solid #C3E6CB;
}

.form-alert.error {
    background-color: #F8D7DA;
    color: #721C24;
    border: 1px solid #F5C6CB;
}

/* Contact info card & details grid */
.contact-info-box {
    background-color: var(--color-bg-cream);
    border-radius: var(--border-radius-md);
    padding: 2.5rem;
    border: 1px solid rgba(30, 70, 32, 0.03);
}

.contact-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* ==========================================================================
   CURSORE INTERATTIVO PRIMA/DOPO (REPLICA GREEN SERVICE)
   ========================================================================== */
.before-after-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
}

.before-after-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-hover);
    border: 3px solid var(--color-primary-light);
    --exposure: 10%; /* Esposizione iniziale impostata al 10% */
    user-select: none;
    -webkit-user-select: none;
}

@media (max-width: 576px) {
    .before-after-wrapper {
        aspect-ratio: 4 / 3;
    }
}

.ba-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
}

.ba-after {
    z-index: 1; /* Livello inferiore: mostra il risultato della pulizia (Dopo) */
}

.ba-before {
    z-index: 2; /* Livello superiore: mostra lo stato precedente (Prima) ritagliato dinamicamente dall'esposizione al 100% */
    clip-path: polygon(var(--exposure) 0, 100% 0, 100% 100%, var(--exposure) 100%);
}

.ba-label {
    position: absolute;
    bottom: 15px;
    padding: 6px 14px;
    background-color: rgba(17, 44, 23, 0.85);
    backdrop-filter: blur(5px);
    color: var(--color-white);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 50px;
    z-index: 5;
    pointer-events: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.ba-label-before {
    right: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.ba-label-after {
    left: 15px;
    border: 1px solid var(--color-accent);
}

/* Copertura del cursore */
.ba-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 30;
    cursor: ew-resize;
    margin: 0;
    padding: 0;
}

/* Maniglia di scorrimento personalizzata */
.ba-handle {
    position: absolute;
    top: 0;
    left: var(--exposure);
    height: 100%;
    width: 4px;
    background-color: var(--color-accent);
    transform: translateX(-50%);
    z-index: 10;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.ba-handle-line {
    width: 2px;
    flex-grow: 1;
    background-color: rgba(255, 255, 255, 0.7);
}

.ba-handle-circle {
    width: 44px;
    height: 44px;
    background-color: var(--color-accent);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    border: 3px solid var(--color-white);
    margin: 10px 0;
    transition: var(--transition-smooth);
}

.ba-slider:hover ~ .ba-handle .ba-handle-circle,
.ba-slider:active ~ .ba-handle .ba-handle-circle {
    transform: scale(1.1);
    background-color: var(--color-white);
    color: var(--color-accent-hover);
    border-color: var(--color-accent);
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVENESS)
   ========================================================================== */
@media (max-width: 992px) {
    .site-header {
        padding: 1rem 0;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .burger-menu {
        display: flex;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .grid-3, .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 4rem 0;
    }
    
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero {
        height: 80vh;
        padding-top: 80px; /* Evita la sovrapposizione con l'header fisso su mobile */
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .split-layout {
        display: flex;
        flex-direction: column-reverse;
        gap: 2rem;
    }
    
    .form-group-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .special-focus-content {
        padding: 3rem 1.5rem;
    }
    
    .special-focus-content h2 {
        font-size: 2rem;
    }

    /* Force horizontal service cards to stack vertically on mobile */
    .service-detail-card {
        flex-direction: column !important;
        min-height: auto !important;
    }
    .service-img-wrapper {
        width: 100% !important;
        height: 220px !important;
        min-width: 0 !important;
    }
    .service-content-wrapper {
        width: 100% !important;
        padding: 2rem 1.5rem !important;
    }
    
    .page-header-section {
        padding: 5.5rem 0 2.5rem 0;
    }
    
    .page-header-section h1 {
        font-size: 2.2rem;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
        max-width: 600px;
        width: 100%;
        margin: 0 auto;
        justify-self: center;
    }
    
    .contact-info-box {
        padding: 1.5rem;
        max-width: 600px;
        width: 100%;
        margin: 0 auto;
        justify-self: center;
    }
    
    #contacts-main .grid-2 > div {
        max-width: 600px;
        width: 100%;
        margin: 0 auto;
        justify-self: center;
    }
    
    .contact-details-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 320px;
    }
}

/* ==========================================================================
   SHOWCASE GALLERY - LAVORI E RISULTATI POSSIBILI
   ========================================================================== */
#showcase-gallery {
    background-color: var(--color-white);
}

#gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.gallery-card {
    background-color: var(--color-bg-light);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--box-shadow-subtle);
    border: 1px solid rgba(22, 62, 50, 0.04);
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    height: 100%;
}

.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-hover);
    border-color: rgba(229, 169, 59, 0.2);
}

.gallery-img-wrapper {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.gallery-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transition: var(--transition-smooth);
}

.gallery-card:hover .gallery-img-wrapper img {
    transform: scale(1.06);
}

.gallery-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.gallery-content h3 {
    font-size: 1.3rem;
    color: var(--color-primary);
    margin-bottom: 0.8rem;
    font-family: var(--font-headings);
    font-weight: 700;
}

.gallery-content p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* Responsiveness for mobile screen size */
@media (max-width: 992px) {
    #gallery-grid {
        gap: 2rem;
    }
    .gallery-img-wrapper {
        height: 220px;
    }
    .gallery-content {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    #gallery-grid {
        gap: 1rem;
    }
    .gallery-img-wrapper {
        height: 150px;
    }
    .gallery-content {
        padding: 1rem;
    }
    .gallery-content h3 {
        font-size: 1.05rem;
        margin-bottom: 0.5rem;
    }
    .gallery-content p {
        font-size: 0.82rem;
        line-height: 1.4;
    }
}

