/* Design System & Premium CSS Variables */
:root {
    --bg-light: #ffffff;
    --bg-soft: #f8fafc;
    --bg-dark: #0a192f;
    --bg-dark-card: #172a45;
    --text-dark: #0f172a;
    --text-muted: #475569;
    --text-light: #f1f5f9;
    --text-light-muted: #94a3b8;
    
    /* Luxury Gold & Teal Palette */
    --gold: #c5a880;
    --gold-dark: #ab8e67;
    --gold-light: #e3d5c1;
    --gold-glow: rgba(197, 168, 128, 0.15);
    --green-success: #10b981;
    --green-success-glow: rgba(16, 185, 129, 0.15);
    
    /* Layout */
    --container-width: 1200px;
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.25s ease;
    --border-radius: 12px;
    --border-radius-large: 24px;
    
    /* Shadows */
    --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.02);
    --shadow-medium: 0 12px 30px rgba(0, 0, 0, 0.04);
    --shadow-premium: 0 20px 45px rgba(10, 25, 47, 0.07);
    --shadow-floating: 0 15px 35px rgba(0, 0, 0, 0.15);
}

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

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.25;
}

p {
    font-size: 1rem;
    color: var(--text-muted);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.btn-large {
    padding: 1.1rem 2.4rem;
    font-size: 1.05rem;
    border-radius: 8px;
}

.btn-gold {
    background-color: var(--gold);
    color: var(--bg-dark);
}

.btn-gold:hover {
    background-color: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px var(--gold-glow);
}

.btn-outline {
    background: transparent;
    color: var(--text-dark);
    border: 1px solid var(--gold);
}

.btn-outline:hover {
    background-color: var(--gold-glow);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    display: flex;
}

/* Header & Nav */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    z-index: 1000;
    transition: var(--transition-smooth);
}

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

.logo-box {
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: 1.5px;
    color: var(--text-dark);
}

.logo-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    color: var(--gold-dark);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 0.1rem;
}

.main-nav {
    display: flex;
    gap: 1.8rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-header {
    padding: 0.65rem 1.3rem;
    font-size: 0.85rem;
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1010;
}

.hamburger-menu span {
    width: 100%;
    height: 2px;
    background-color: var(--text-dark);
    transition: var(--transition-fast);
}

/* Hero Section */
.hero-section {
    padding: 180px 0 110px 0;
    background-color: var(--bg-soft);
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4.5rem;
    align-items: center;
}

.badge-trust {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.1rem;
    background-color: rgba(226, 232, 240, 0.7);
    border-radius: 50px;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.icon-star {
    width: 16px;
    height: 16px;
    color: #eab308;
}

.hero-title {
    font-size: 3.6rem;
    line-height: 1.12;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

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

.hero-subtitle {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
    line-height: 1.6;
}

.hero-cta-group {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3.5rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    padding-top: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gold-dark);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.35;
    margin-top: 0.3rem;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--border-radius-large);
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    height: 540px;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.hero-image-wrapper:hover .hero-image {
    transform: scale(1.025);
}

.hero-image-card {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    background-color: rgba(10, 25, 47, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.6rem;
    border-radius: var(--border-radius);
    color: var(--text-light);
    display: flex;
    flex-direction: column;
}

.card-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.card-address {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.card-details {
    font-size: 0.85rem;
    color: var(--text-light-muted);
}

/* General Section Headers */
.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--gold-dark);
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 0.8rem;
}

.section-title {
    font-size: 2.6rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    font-weight: 300;
    max-width: 750px;
    line-height: 1.6;
}

.section-header-center {
    text-align: center;
    margin-bottom: 4.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Nuovo Posizionamento Section */
.vision-section {
    padding: 120px 0;
    background-color: var(--bg-light);
}

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

.vision-card {
    background-color: var(--bg-soft);
    padding: 4rem 3.5rem;
    border-radius: var(--border-radius-large);
    border: 1px solid rgba(226, 232, 240, 0.6);
}

.vision-card h3 {
    font-size: 1.7rem;
    margin-bottom: 1.5rem;
}

.vision-card p {
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.7;
}

/* Valorizzazione e Ristrutturazione */
.renovation-section {
    padding: 120px 0;
    background-color: var(--bg-soft);
    border-top: 1px solid rgba(226, 232, 240, 0.6);
}

.renovation-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
    align-items: center;
}

.renovation-content-side {
    display: flex;
    flex-direction: column;
}

.lead-text {
    font-size: 1.35rem;
    color: var(--text-dark);
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.renovation-list {
    list-style: none;
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.renovation-list li {
    position: relative;
    padding-left: 2rem;
    font-size: 1rem;
}

.renovation-list li::before {
    content: "✦";
    color: var(--gold-dark);
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.1rem;
}

.seller-benefit-box {
    background-color: var(--bg-light);
    border-left: 4px solid var(--gold);
    padding: 2rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    box-shadow: var(--shadow-subtle);
}

.seller-benefit-box h4 {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.seller-benefit-box p {
    font-size: 0.95rem;
    line-height: 1.55;
}

.renovation-visual-side {
    position: relative;
    height: 480px;
    border-radius: var(--border-radius-large);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.renovation-visual-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.experience-badge {
    position: absolute;
    top: 2rem;
    left: 2rem;
    background-color: rgba(10, 25, 47, 0.9);
    color: var(--text-light);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(8px);
}

.experience-badge strong {
    color: var(--gold);
    font-size: 0.9rem;
    text-transform: uppercase;
}

.experience-badge span {
    font-size: 0.75rem;
    color: var(--text-light-muted);
}

/* Calcolatore Patrimoniale */
.calculator-section {
    padding: 120px 0;
    background-color: var(--bg-light);
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: stretch;
}

.calc-inputs-card,
.calc-results-card {
    border-radius: var(--border-radius-large);
    padding: 4rem 3.5rem;
    display: flex;
    flex-direction: column;
}

.calc-inputs-card {
    background-color: var(--bg-soft);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.calc-inputs-card h3,
.calc-results-card h3 {
    font-size: 1.75rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    padding-bottom: 1rem;
}

.calc-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 2.2rem;
}

.calc-group label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
}

.calc-group label strong {
    color: var(--gold-dark);
    font-size: 1.1rem;
}

/* Slider Style */
.range-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 5px;
    background: #cbd5e1;
    outline: none;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--gold-dark);
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

/* Select design */
.select-field {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    padding: 0.95rem 1.25rem;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background-color: var(--bg-light);
    color: var(--text-dark);
    outline: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.select-field:focus {
    border-color: var(--gold-dark);
    box-shadow: 0 0 0 4px var(--gold-glow);
}

.calc-info-alert {
    margin-top: 1rem;
    background-color: rgba(226, 232, 240, 0.4);
    padding: 1.25rem 1.5rem;
    border-radius: 8px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* Calc Results Panel */
.calc-results-card {
    background-color: var(--bg-dark);
    color: var(--text-light);
    border: 2px solid var(--gold);
    box-shadow: var(--shadow-premium);
}

.calc-results-card h3 {
    color: var(--text-light);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.results-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.result-block {
    display: flex;
    flex-direction: column;
}

.res-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-light-muted);
    letter-spacing: 0.5px;
    margin-bottom: 0.4rem;
}

.res-price {
    font-family: 'Playfair Display', serif;
    font-size: 1.85rem;
    font-weight: 700;
}

.res-price.text-muted {
    color: var(--text-light-muted);
    text-decoration: line-through;
    opacity: 0.7;
}

.res-price.text-gold {
    color: var(--gold);
}

.results-details-list {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-bottom: 2.5rem;
}

.res-detail-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    color: var(--text-light-muted);
    margin-bottom: 1rem;
}

.res-detail-item strong {
    color: var(--text-light);
}

.plusvalore-row {
    font-size: 1.2rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.15);
    padding-top: 1.25rem;
    margin-top: 1.25rem;
}

.plusvalore-row span {
    color: var(--text-light);
    font-weight: 600;
}

.text-green {
    color: var(--green-success) !important;
}

.plusvalore-visualizer {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.plusvalore-bar {
    height: 8px;
    background-color: var(--green-success);
    border-radius: 5px;
    width: 20%; /* Aggiornato via JS */
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.plusvalore-percent {
    font-size: 0.8rem;
    color: var(--green-success);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Prima & Dopo / Cases */
.before-after-section {
    padding: 120px 0;
    background-color: var(--bg-soft);
    border-top: 1px solid rgba(226, 232, 240, 0.6);
}

.project-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4.5rem;
}

.tab-btn {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.8rem 1.6rem;
    background-color: var(--bg-light);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 6px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
}

.tab-btn:hover {
    color: var(--gold-dark);
    border-color: var(--gold-light);
}

.tab-btn.active {
    background-color: var(--gold);
    color: var(--bg-dark);
    border-color: var(--gold);
    font-weight: 600;
}

.project-view {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.project-view.active {
    display: block;
    opacity: 1;
}

.gallery-split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4.5rem;
    align-items: center;
}

/* Prima / Dopo Split Slider */
.image-toggle-container {
    position: relative;
    width: 100%;
    height: 420px;
    border-radius: var(--border-radius-large);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.image-slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.after-img {
    z-index: 10;
}

.before-overlay {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 50%; /* Controllato via JS */
    overflow: hidden;
    z-index: 20;
    border-right: 2px solid var(--bg-light);
    box-shadow: 5px 0 15px rgba(0,0,0,0.15);
}

.before-img {
    width: 100%;
    height: 100%;
    filter: grayscale(0.9) contrast(0.85); /* Stile bozza/prima */
}

/* Handle per trascinamento */
.slider-handle {
    position: absolute;
    top: 50%;
    left: 50%; /* Sincronizzato con prima overlay */
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--gold-dark);
    border: 3px solid var(--bg-light);
    color: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 30;
    cursor: ew-resize;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    transition: transform 0.1s ease;
}

.slider-handle::before,
.slider-handle::after {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
}

.slider-handle::before {
    border-width: 5px 6px 5px 0;
    border-color: transparent var(--bg-light) transparent transparent;
    left: 10px;
}

.slider-handle::after {
    border-width: 5px 0 5px 6px;
    border-color: transparent transparent transparent var(--bg-light);
    right: 10px;
}

.tag-before,
.tag-after {
    position: absolute;
    top: 1.5rem;
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    z-index: 25;
    box-shadow: var(--shadow-subtle);
}

.tag-before {
    left: 1.5rem;
    background-color: rgba(255,255,255,0.85);
    color: var(--text-dark);
}

.tag-after {
    right: 1.5rem;
    background-color: rgba(10, 25, 47, 0.85);
    color: var(--text-light);
}

/* Project metrics */
.project-details-side h3 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.project-desc {
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.project-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.metric-box {
    background-color: var(--bg-light);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
}

.metric-box span {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.metric-box strong {
    font-size: 1.3rem;
    color: var(--text-dark);
}

.metric-box.highlight {
    border-color: var(--gold-light);
    background-color: var(--gold-glow);
}

.metric-box.highlight strong {
    color: var(--gold-dark);
}

.metric-box.gain {
    border-color: var(--green-success-glow);
    background-color: var(--green-success-glow);
}

.metric-box.gain strong {
    color: var(--green-success);
}

.project-strategy {
    font-size: 0.95rem;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    padding-top: 1.5rem;
    line-height: 1.6;
}

/* Testimonianze */
.testimonials-section {
    padding: 120px 0;
    background-color: var(--bg-light);
}

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

.testimonial-card {
    background-color: var(--bg-soft);
    padding: 3.5rem 3rem;
    border-radius: var(--border-radius-large);
    border: 1px solid rgba(226, 232, 240, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stars {
    color: #fbbf24;
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
}

.testimonial-text {
    font-size: 1.05rem;
    font-style: italic;
    font-weight: 300;
    margin-bottom: 2rem;
    color: var(--text-muted);
    line-height: 1.65;
}

.client-info {
    display: flex;
    flex-direction: column;
}

.client-name {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-dark);
}

.client-role {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.google-badge-footer {
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.google-badge-footer strong {
    color: var(--text-dark);
}

/* FAQ Section Accordion */
.faq-section {
    padding: 120px 0;
    background-color: var(--bg-soft);
}

.faq-container {
    max-width: 850px;
}

.faq-header {
    text-align: center;
    margin-bottom: 4rem;
}

.accordion-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-item {
    background-color: var(--bg-light);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition-fast);
}

.accordion-trigger {
    width: 100%;
    padding: 1.5rem 2rem;
    background: transparent;
    border: none;
    outline: none;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-dark);
    cursor: pointer;
}

.accordion-arrow {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--gold-dark);
    transition: var(--transition-fast);
}

.accordion-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-panel p {
    padding: 0 2rem 1.5rem 2rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.65;
}

/* Accordion Active States */
.accordion-item.active {
    border-color: var(--gold);
    box-shadow: var(--shadow-medium);
}

.accordion-item.active .accordion-trigger {
    color: var(--gold-dark);
}

.accordion-item.active .accordion-arrow {
    transform: rotate(45deg);
}

/* Contatti & Lead Form */
.contact-section {
    padding: 120px 0;
    background-color: var(--bg-soft);
    border-top: 1px solid rgba(226, 232, 240, 0.6);
}

.contact-container {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 5rem;
}

.contact-info-side {
    display: flex;
    flex-direction: column;
}

.contact-desc {
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: 3rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-detail-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--gold-glow);
    color: var(--gold-dark);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-link {
    display: block;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    transition: var(--transition-fast);
    margin-top: 0.1rem;
}

.contact-link:hover {
    color: var(--gold-dark);
}

.contact-detail-item p {
    font-size: 1.05rem;
    color: var(--text-dark);
    font-weight: 500;
    margin-top: 0.1rem;
}

.guarantee-box {
    background-color: var(--bg-light);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: var(--border-radius);
    padding: 2rem;
}

.guarantee-box strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.guarantee-box p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.contact-form-side {
    background-color: var(--bg-light);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: var(--border-radius-large);
    padding: 4.5rem 3.5rem;
    box-shadow: var(--shadow-premium);
}

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

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

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

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

.form-group-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    padding: 0.95rem 1.25rem;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background-color: var(--bg-light);
    color: var(--text-dark);
    outline: none;
    transition: var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold-dark);
    box-shadow: 0 0 0 4px var(--gold-glow);
}

/* Selector Consulente Pills */
.consultant-select-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 0.25rem;
}

.consultant-pill {
    cursor: pointer;
    display: block;
    position: relative;
}

.consultant-pill input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.consultant-pill span {
    display: block;
    padding: 0.9rem;
    text-align: center;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.consultant-pill input:checked + span {
    border-color: var(--gold-dark);
    background-color: var(--gold-glow);
    color: var(--gold-dark);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(171, 142, 103, 0.1);
}

.form-checkbox {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.form-checkbox input {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
    accent-color: var(--gold-dark);
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.form-checkbox label {
    font-size: 0.8rem;
    color: var(--text-muted);
    cursor: pointer;
}

.form-feedback {
    font-size: 0.95rem;
    padding: 1.25rem;
    border-radius: 6px;
    display: none;
    line-height: 1.5;
}

.form-feedback.success {
    display: block;
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.form-feedback.error {
    display: block;
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Footer */
.main-footer {
    background-color: var(--bg-dark);
    color: var(--text-light-muted);
    padding: 4rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-light-muted);
}

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

.footer-links a {
    color: var(--text-light-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition-fast);
}

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

/* WIDGET CHATBOT AI (Floating chat) */
.ai-chat-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    font-family: 'Inter', sans-serif;
}

.chat-trigger-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--bg-dark);
    border: 2px solid var(--gold);
    color: var(--text-light);
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-floating);
    position: relative;
    transition: var(--transition-fast);
    outline: none;
}

.chat-trigger-btn:hover {
    transform: scale(1.05);
}

.pulse-indicator {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    background-color: var(--green-success);
    border-radius: 50%;
    border: 2px solid var(--bg-light);
    box-shadow: 0 0 8px var(--green-success);
}

.chat-window-card {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 360px;
    height: 480px;
    background-color: var(--bg-light);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-floating);
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.95);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.chat-window-card.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.chat-window-header {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid var(--gold);
}

.bot-profile {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.bot-avatar {
    font-size: 1.5rem;
}

.bot-status-info {
    display: flex;
    flex-direction: column;
}

.bot-name {
    font-size: 0.9rem;
    font-weight: 600;
}

.bot-status {
    font-size: 0.7rem;
    color: var(--green-success);
    font-weight: 500;
}

.chat-close-btn {
    background: transparent;
    border: none;
    color: var(--text-light-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.chat-close-btn:hover {
    color: var(--text-light);
}

.chat-messages-thread {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: var(--bg-soft);
}

.chat-msg {
    max-width: 80%;
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    font-size: 0.88rem;
    line-height: 1.45;
}

.bot-msg {
    background-color: var(--bg-light);
    color: var(--text-dark);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: var(--shadow-subtle);
}

.user-msg {
    background-color: var(--bg-dark);
    color: var(--text-light);
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chat-quick-options {
    padding: 0.8rem 1.2rem;
    background-color: var(--bg-light);
    border-top: 1px solid rgba(226, 232, 240, 0.6);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quick-opt-btn {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    padding: 0.6rem 1rem;
    background-color: var(--bg-soft);
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    text-align: left;
    cursor: pointer;
    transition: var(--transition-fast);
}

.quick-opt-btn:hover {
    background-color: var(--gold-glow);
    border-color: var(--gold);
    color: var(--gold-dark);
}

.chat-input-area {
    display: flex;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    background-color: var(--bg-light);
}

.chat-input-text {
    flex: 1;
    border: none;
    outline: none;
    padding: 1.1rem 1.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
}

.chat-send-btn {
    padding: 0 1.5rem;
    background: transparent;
    border: none;
    color: var(--gold-dark);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.chat-send-btn:hover {
    color: var(--bg-dark);
}

/* Chat buttons inside messages */
.chat-action-btn {
    display: block;
    margin-top: 0.8rem;
    padding: 0.6rem 1rem;
    background-color: var(--gold);
    color: var(--bg-dark);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    border-radius: 6px;
    transition: var(--transition-fast);
    box-shadow: 0 4px 10px rgba(197, 168, 128, 0.2);
}

.chat-action-btn:hover {
    background-color: var(--gold-dark);
}

.chat-action-btn.btn-gracjan {
    background-color: #0c2340;
    color: #ffffff;
    border: 1px solid var(--gold);
}

/* Animazione punti di digitazione (typing indicator) */
.typing-dots {
    display: inline-flex;
    gap: 3px;
    align-items: center;
    height: 10px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    background-color: var(--text-muted);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite both;
}

.typing-dots span:nth-child(2) { animation-delay: .2s; }
.typing-dots span:nth-child(3) { animation-delay: .4s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

/* Media Queries (Responsive) */
@media (max-width: 1024px) {
    html { font-size: 15px; }
    
    .hero-container,
    .renovation-container,
    .calculator-grid,
    .gallery-split,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    
    .hero-image-wrapper { height: 420px; }
    
    .about-image-side { max-width: 550px; margin: 0 auto; }
    
    .grid-tech,
    .testimonials-slider,
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .project-tabs {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .main-header {
        position: relative;
        background-color: var(--bg-light);
    }
    
    .hamburger-menu { display: flex; }
    
    .main-nav {
        position: absolute;
        top: 85px;
        left: 0;
        right: 0;
        background-color: var(--bg-light);
        flex-direction: column;
        gap: 0;
        border-bottom: 1px solid rgba(226, 232, 240, 0.8);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .main-nav.active { max-height: 420px; }
    
    .nav-link {
        padding: 1.25rem 2rem;
        border-bottom: 1px solid rgba(226, 232, 240, 0.4);
    }
    
    .btn-header { display: none; }
    
    .hero-section { padding: 60px 0 80px 0; }
    
    .hero-title { font-size: 2.6rem; }
    
    .hero-cta-group { flex-direction: column; gap: 1rem; }
    
    .hero-stats { grid-template-columns: 1fr; gap: 1.5rem; }
    
    .grid-tech,
    .testimonials-slider,
    .blog-grid { grid-template-columns: 1fr; }
    
    .calc-inputs-card, .calc-results-card {
        padding: 2.5rem 1.5rem;
    }
    
    .results-comparison {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-form-side { padding: 2.5rem 1.5rem; }
    
    .form-group-row { grid-template-columns: 1fr; gap: 1.5rem; }
    
    .consultant-select-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .ai-chat-widget {
        bottom: 1rem;
        right: 1rem;
    }
    
    .chat-window-card {
        width: calc(100vw - 2rem);
        right: 0;
        bottom: 70px;
    }
}
