/* ========================================
   FONT + RESET + VARIABILI
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,300;0,400;0,600;0,700;1,400&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary:         #C8232C;
    --primary-dark:    #a01c23;
    --primary-light:   rgba(200, 35, 44, 0.08);
    --primary-glow:    rgba(200, 35, 44, 0.25);
    --text:            #1E2B3C;
    --text-muted:      #64748B;
    --bg-white:        #FFFFFF;
    --bg-light:        #F8FAFC;
    --border:          #E2E8F0;
    --shadow-sm:       0 1px 4px rgba(0,0,0,0.06);
    --shadow-md:       0 4px 18px rgba(0,0,0,0.08);
    --shadow-lg:       0 12px 36px rgba(0,0,0,0.11);
    --shadow-xl:       0 20px 56px rgba(0,0,0,0.13);
    --radius:          10px;
    --radius-lg:       16px;
    --radius-xl:       24px;
    --radius-pill:     100px;
    --container:       1200px;
    --ease:            cubic-bezier(0.4, 0, 0.2, 1);
    --spring:          cubic-bezier(0.34, 1.10, 0.64, 1);
    --transition:      all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
    color: var(--text);
    line-height: 1.65;
    background: var(--bg-white);
    font-size: 16px;
    animation: pageFadeIn 0.4s ease both;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ========================================
   LAYOUT
   ======================================== */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 28px;
}

/* ========================================
   HEADER
   ======================================== */
.header {
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.4s var(--ease);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 28px;
    height: 72px;
}

.logo a { display: flex; align-items: center; gap: 12px; }

.logo img { height: 48px; width: auto; object-fit: contain; }

.logo h1 {
    font-size: 1.05em;
    font-weight: 700;
    color: var(--text);
    display: none;
    letter-spacing: -0.2px;
}

@media (min-width: 860px) { .logo h1 { display: block; } }

.nav-menu { display: flex; gap: 4px; align-items: center; }

.nav-menu a {
    font-size: 0.92em;
    font-weight: 600;
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

.nav-menu a:hover { color: var(--text); background: var(--bg-light); }

.nav-menu a.active { color: var(--primary); background: var(--primary-light); }

.nav-menu li:last-child a {
    background: var(--primary);
    color: #fff !important;
    padding: 9px 22px;
    border-radius: var(--radius-pill);
}

.nav-menu li:last-child a:hover,
.nav-menu li:last-child a.active { background: var(--primary-dark); }

/* Mobile toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
    padding: 6px;
    border-radius: var(--radius);
}

.nav-toggle span {
    width: 22px; height: 2px;
    background: var(--text);
    transition: var(--transition);
    display: block;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .nav-menu {
        position: absolute;
        top: 76px;
        left: 14px; right: 14px;
        flex-direction: column;
        gap: 4px;
        background: #fff;
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        padding: 10px;
        box-shadow: var(--shadow-lg);
        display: none;
    }

    .nav-menu.active { display: flex; }

    .nav-menu a {
        display: block;
        padding: 12px 18px;
        border-radius: var(--radius);
        font-size: 0.97em;
        color: var(--text);
    }

    .nav-menu li:last-child a { border-radius: var(--radius); margin-top: 4px; }

    .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }
}

/* ========================================
   HERO HOMEPAGE
   ======================================== */
.hero {
    background: linear-gradient(160deg, #FFFFFF 0%, #F8FAFC 100%);
    padding: 100px 28px 90px;
    text-align: center;
    min-height: 56vh;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -180px; right: -180px;
    width: 580px; height: 580px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200,35,44,0.06) 0%, transparent 65%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -100px; left: -100px;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200,35,44,0.04) 0%, transparent 65%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-light);
    border: 1px solid rgba(200,35,44,0.15);
    color: var(--primary);
    font-size: 0.82em;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 6px 18px;
    border-radius: var(--radius-pill);
    margin-bottom: 28px;
    animation: slideUp 0.6s var(--ease) both;
}

.hero-content h2 {
    font-size: 3em;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 22px;
    line-height: 1.17;
    letter-spacing: -0.8px;
    animation: slideUp 0.7s 0.08s var(--ease) both;
}

.hero-content > p {
    font-size: 1.18em;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.72;
    animation: slideUp 0.7s 0.16s var(--ease) both;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    animation: slideUp 0.7s 0.24s var(--ease) both;
}

.cta-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text);
    font-weight: 600;
    font-size: 0.95em;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    border: 1.5px solid var(--border);
    transition: border-color 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}

.cta-link:hover { border-color: var(--text); background: var(--bg-light); }

/* ========================================
   FEATURES STRIP
   ======================================== */
.features-strip {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    padding: 16px 28px;
}

.features-strip-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.strip-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.86em;
    font-weight: 600;
    color: var(--text-muted);
}

.strip-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
}

/* ========================================
   PAGE HERO (PAGINE INTERNE)
   ======================================== */
.page-hero {
    background: var(--text);
    color: #fff;
    padding: 64px 28px;
    text-align: center;
    border-bottom: 4px solid var(--primary);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -100px; right: -80px;
    width: 420px; height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200,35,44,0.1) 0%, transparent 65%);
    pointer-events: none;
}

.page-hero > .container { position: relative; z-index: 1; }

.page-hero h1 {
    font-size: 2.4em;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.4px;
    animation: slideUp 0.55s var(--ease) both;
}

.page-hero p {
    font-size: 1.08em;
    opacity: 0.65;
    animation: slideUp 0.55s 0.1s var(--ease) both;
}

@media (max-width: 768px) {
    .hero { padding: 72px 20px; min-height: auto; }
    .hero-content h2 { font-size: 2em; }
    .hero-content > p { font-size: 1em; }
    .features-strip-inner { gap: 20px; }
    .page-hero { padding: 48px 20px; }
    .page-hero h1 { font-size: 1.85em; }
}

/* ========================================
   BUTTONS
   ======================================== */
.cta-button {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 13px 30px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.95em;
    border: 2px solid var(--primary);
    cursor: pointer;
    transition:
        background   0.3s var(--ease),
        border-color 0.3s var(--ease),
        color        0.3s var(--ease),
        transform    0.35s var(--spring),
        box-shadow   0.35s var(--ease);
    will-change: transform;
}

.cta-button:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--primary-glow);
}

.cta-button-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}

.cta-button-light:hover {
    background: #fff;
    border-color: #fff;
    color: var(--primary);
}

/* ========================================
   SECTION HEADER (CHIP + TITOLO)
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-chip {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.78em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 16px;
    border-radius: var(--radius-pill);
    margin-bottom: 14px;
}

.section-header h2 {
    font-size: 2em;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    letter-spacing: -0.4px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.05em;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.65;
}

/* ========================================
   QUICK PREVIEW (HOMEPAGE)
   ======================================== */
.quick-preview {
    padding: 88px 28px;
    background: var(--bg-white);
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}

.preview-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 30px;
    transition:
        transform    0.4s var(--spring),
        box-shadow   0.4s var(--ease),
        border-color 0.4s var(--ease);
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.preview-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ease);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.preview-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.preview-card:hover::after { transform: scaleX(1); }

.preview-card-icon {
    width: 52px; height: 52px;
    background: var(--primary-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    margin-bottom: 20px;
    transition: background 0.3s var(--ease), transform 0.3s var(--spring);
}

.preview-card:hover .preview-card-icon {
    background: rgba(200,35,44,0.14);
    transform: scale(1.08);
}

.preview-card h3 {
    font-size: 1.15em;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
    letter-spacing: -0.1px;
}

.preview-card p {
    color: var(--text-muted);
    margin-bottom: 22px;
    line-height: 1.65;
    font-size: 0.95em;
}

.preview-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.91em;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.22s var(--ease), color 0.22s var(--ease);
}

.preview-link:hover { color: var(--primary-dark); gap: 10px; }

@media (max-width: 768px) {
    .quick-preview { padding: 64px 20px; }
    .preview-grid { gap: 16px; }
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
    background: var(--text);
    color: #fff;
    padding: 88px 28px;
    text-align: center;
    border-top: 4px solid var(--primary);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -120px; right: -80px;
    width: 450px; height: 450px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200,35,44,0.1) 0%, transparent 65%);
    pointer-events: none;
}

.cta-section h2 {
    font-size: 2.1em;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: -0.4px;
    position: relative;
}

.cta-section p {
    font-size: 1.1em;
    margin-bottom: 36px;
    opacity: 0.68;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

@media (max-width: 768px) {
    .cta-section { padding: 64px 20px; }
    .cta-section h2 { font-size: 1.65em; }
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about {
    padding: 88px 28px;
    background: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.about-text h2 {
    font-size: 1.95em;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text);
    letter-spacing: -0.4px;
    position: relative;
    padding-bottom: 20px;
}

.about-text h2::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 44px; height: 3px;
    background: var(--primary);
    border-radius: var(--radius-pill);
}

.about-text p { color: var(--text-muted); margin-bottom: 18px; line-height: 1.78; }
.about-text strong { color: var(--text); font-weight: 600; }

.about-stats { display: grid; gap: 14px; }

.stat {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    padding: 20px 22px;
    border-radius: var(--radius);
    transition:
        transform  0.35s var(--spring),
        box-shadow 0.35s var(--ease);
    will-change: transform;
}

.stat:hover { transform: translateX(6px); box-shadow: var(--shadow-sm); }
.stat h3 { color: var(--primary); font-size: 1em; font-weight: 700; margin-bottom: 5px; }
.stat p { color: var(--text-muted); font-size: 0.91em; }

@media (max-width: 768px) {
    .about { padding: 64px 20px; }
    .about-content { grid-template-columns: 1fr; gap: 36px; }
}

/* ========================================
   VALUES SECTION
   ======================================== */
.values-section {
    padding: 88px 28px;
    background: var(--bg-white);
}

.values-section > .container > h2 {
    font-size: 2em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 52px;
    color: var(--text);
    letter-spacing: -0.4px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.value-card {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 26px;
    text-align: center;
    transition:
        transform    0.4s var(--spring),
        box-shadow   0.4s var(--ease),
        border-color 0.35s var(--ease),
        background   0.3s var(--ease);
    will-change: transform;
}

.value-card:hover {
    background: var(--bg-white);
    border-color: rgba(200,35,44,0.2);
    box-shadow: var(--shadow-md);
    transform: translateY(-6px);
}

.value-icon {
    width: 56px; height: 56px;
    background: var(--primary-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55em;
    margin: 0 auto 18px;
    transition: background 0.3s var(--ease), transform 0.3s var(--spring);
}

.value-card:hover .value-icon {
    background: rgba(200,35,44,0.14);
    transform: scale(1.08) rotate(-3deg);
}

.value-card h3 { font-size: 1.1em; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.value-card p { color: var(--text-muted); font-size: 0.91em; line-height: 1.65; }

@media (max-width: 768px) {
    .values-section { padding: 64px 20px; }
    .values-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) { .values-grid { grid-template-columns: 1fr; } }

/* ========================================
   WHY US
   ======================================== */
.why-us {
    padding: 88px 28px;
    background: var(--bg-light);
}

.why-us h2 {
    font-size: 2em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 52px;
    color: var(--text);
    letter-spacing: -0.4px;
}

.benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.benefit {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 26px;
    transition:
        transform    0.4s var(--spring),
        box-shadow   0.4s var(--ease),
        border-color 0.35s var(--ease);
    will-change: transform;
}

.benefit:hover {
    border-color: rgba(200,35,44,0.2);
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.benefit h4 { font-size: 1.05em; font-weight: 700; color: var(--primary); margin-bottom: 10px; }
.benefit p { color: var(--text-muted); font-size: 0.91em; line-height: 1.65; }

@media (max-width: 768px) {
    .why-us { padding: 64px 20px; }
    .benefits { grid-template-columns: 1fr; }
}

/* ========================================
   SERVICES
   ======================================== */
.services {
    padding: 88px 28px;
    background: var(--bg-white);
}

.services h2 {
    font-size: 2em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 52px;
    color: var(--text);
    letter-spacing: -0.4px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.service-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 0;
    overflow: hidden;
    transition:
        transform    0.4s var(--spring),
        box-shadow   0.4s var(--ease),
        border-color 0.35s var(--ease);
    will-change: transform;
}

.service-img-wrap {
    height: 210px;
    overflow: hidden;
    background: linear-gradient(135deg, #e8edf2 0%, #d1d9e3 100%);
    flex-shrink: 0;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.55s var(--ease);
}

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

.service-body { padding: 26px 28px 28px; }

.service-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-6px);
    border-color: transparent;
}

.service-icon {
    width: 54px; height: 54px;
    background: var(--primary-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    margin-bottom: 18px;
    transition: background 0.3s var(--ease), transform 0.3s var(--spring);
}

.service-card:hover .service-icon {
    background: rgba(200,35,44,0.14);
    transform: scale(1.07) rotate(-3deg);
}

.service-card h3 { font-size: 1.1em; font-weight: 700; color: var(--text); margin-bottom: 10px; letter-spacing: -0.1px; }
.service-card p { color: var(--text-muted); font-size: 0.93em; line-height: 1.65; margin-bottom: 20px; }

.service-features { border-top: 1px solid var(--border); padding-top: 16px; }

.service-features li {
    padding: 6px 0 6px 22px;
    color: var(--text-muted);
    font-size: 0.9em;
    position: relative;
}


@media (max-width: 900px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .service-card-featured { grid-template-columns: 1fr; }
    .service-card-featured .service-img-wrap {
        height: 200px;
        min-height: unset;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }
}

/* Featured card — full-width horizontal layout */
.service-card-featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 420px 1fr;
}

.service-card-featured .service-img-wrap {
    height: 100%;
    min-height: 260px;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.service-card-featured .service-body {
    padding: 36px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 768px) {
    .services { padding: 64px 20px; }
    .services-grid { grid-template-columns: 1fr; }

    .service-card-featured { grid-template-columns: 1fr; }
    .service-card-featured .service-img-wrap {
        height: 200px;
        min-height: unset;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }
}

/* ========================================
   SERVICE PROCESS
   ======================================== */
.service-process {
    padding: 88px 28px;
    background: var(--bg-light);
}

.service-process h2 {
    font-size: 2em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 52px;
    color: var(--text);
    letter-spacing: -0.4px;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.process-step {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    transition:
        transform    0.4s var(--spring),
        box-shadow   0.4s var(--ease),
        border-color 0.35s var(--ease);
    will-change: transform;
}

.process-step:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(200,35,44,0.2);
    transform: translateY(-5px);
}

.step-number {
    width: 52px; height: 52px;
    background: var(--primary);
    color: #fff;
    font-size: 1.3em;
    font-weight: 700;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 4px 14px var(--primary-glow);
}

.process-step h3 { font-size: 1.05em; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.process-step p { color: var(--text-muted); font-size: 0.91em; line-height: 1.6; }

@media (max-width: 768px) {
    .service-process { padding: 64px 20px; }
    .process-steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) { .process-steps { grid-template-columns: 1fr; } }

/* ========================================
   RESPONSE TIME
   ======================================== */
.response-time {
    padding: 88px 28px;
    background: var(--bg-light);
}

.response-time h2 {
    font-size: 2em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 52px;
    color: var(--text);
    letter-spacing: -0.4px;
}

.response-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.response-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-top: 4px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    transition:
        transform  0.4s var(--spring),
        box-shadow 0.4s var(--ease);
    will-change: transform;
}

.response-card:hover { box-shadow: var(--shadow-md); transform: translateY(-5px); }
.response-number { font-size: 2.4em; font-weight: 700; color: var(--primary); margin-bottom: 14px; line-height: 1; }
.response-card p { color: var(--text-muted); font-size: 0.93em; line-height: 1.6; }

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: #1E2B3C;
    color: #fff;
    padding: 60px 28px 28px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 44px;
    margin-bottom: 48px;
}

.footer-section h4 {
    color: #fff;
    font-size: 0.8em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.footer-section p { color: #94A3B8; line-height: 1.75; font-size: 0.93em; margin-bottom: 8px; }
.footer-section ul li { margin-bottom: 10px; }
.footer-section a { color: #94A3B8; font-size: 0.93em; transition: color 0.25s var(--ease); }
.footer-section a:hover { color: #fff; }

.footer-bottom {
    border-top: 1px solid #2D3D52;
    padding-top: 24px;
    text-align: center;
    color: #64748B;
    font-size: 0.87em;
}

@media (max-width: 768px) {
    .footer { padding: 48px 20px 24px; }
    .footer-content { grid-template-columns: 1fr; gap: 28px; }
}

/* ========================================
   CONTATTI — PANNELLO MODERNO
   ======================================== */
.contact-modern { background: var(--bg-light); }

.contact-wrapper {
    display: grid;
    grid-template-columns: 380px 1fr;
    min-height: 680px;
}

/* Pannello sinistro */
.contact-panel {
    background: var(--text);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.contact-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--primary);
}

.contact-panel::after {
    content: '';
    position: absolute;
    bottom: -100px; right: -100px;
    width: 340px; height: 340px;
    border-radius: 50%;
    background: rgba(200,35,44,0.07);
    pointer-events: none;
}

.contact-panel-inner {
    padding: 56px 40px;
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.panel-tag {
    display: inline-block;
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--primary);
    background: rgba(200,35,44,0.15);
    border-radius: var(--radius-pill);
    padding: 4px 14px;
    margin-bottom: 20px;
    width: fit-content;
}

.contact-panel h2 {
    font-size: 1.85em;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 16px;
    color: #fff;
    letter-spacing: -0.3px;
}

.panel-desc {
    color: rgba(255,255,255,0.55);
    font-size: 0.95em;
    line-height: 1.7;
    margin-bottom: 40px;
}

.panel-items {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: auto;
    padding-bottom: 40px;
}

.panel-item {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--spring);
}

.panel-item:hover { opacity: 0.85; transform: translateX(4px); }

.panel-icon {
    width: 44px; height: 44px;
    border-radius: var(--radius);
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.panel-item:hover .panel-icon {
    background: rgba(200,35,44,0.22);
    border-color: rgba(200,35,44,0.35);
}

.panel-icon svg { width: 18px; height: 18px; }

.panel-item > div:last-child { display: flex; flex-direction: column; gap: 2px; }
.panel-item > div:last-child span { font-size: 0.72em; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.8px; font-weight: 600; }
.panel-item > div:last-child strong { font-size: 0.95em; color: #fff; font-weight: 500; }

.panel-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-pill);
    padding: 10px 18px;
    font-size: 0.83em;
    color: rgba(255,255,255,0.65);
    width: fit-content;
}

.badge-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34,197,94,0.25);
    flex-shrink: 0;
    animation: badgePulse 2.2s ease infinite;
}

/* Pannello destro: form */
.contact-form-panel {
    background: #fff;
    padding: 56px 52px;
}

.form-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.form-header h3 { font-size: 1.35em; font-weight: 700; color: var(--text); margin-bottom: 5px; letter-spacing: -0.2px; }
.form-header p { font-size: 0.87em; color: var(--text-muted); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }

/* Floating label */
.field { position: relative; }
.field-full { margin-bottom: 4px; }

.field input,
.field textarea {
    width: 100%;
    padding: 22px 16px 8px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.97em;
    color: var(--text);
    background: #fff;
    transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
    resize: none;
    -webkit-appearance: none;
    appearance: none;
}

.field textarea { padding-top: 26px; min-height: 130px; line-height: 1.55; }

.field label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.95em;
    color: var(--text-muted);
    pointer-events: none;
    transition: top 0.2s var(--ease), font-size 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease), font-weight 0.2s var(--ease);
    white-space: nowrap;
}

.field textarea ~ label { top: 20px; transform: none; }

.field input:focus,
.field textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(200,35,44,0.1);
}

.field input:focus ~ label,
.field input:not(:placeholder-shown) ~ label {
    top: 8px; transform: none;
    font-size: 0.71em; color: var(--primary); font-weight: 700; letter-spacing: 0.2px;
}

.field textarea:focus ~ label,
.field textarea:not(:placeholder-shown) ~ label {
    top: 7px; font-size: 0.71em; color: var(--primary); font-weight: 700;
}

.field input:valid:not(:placeholder-shown) { border-color: #16a34a; }
.field input:valid:not(:placeholder-shown) ~ label { color: #16a34a; }

/* Custom checkbox */
.privacy-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    margin: 20px 0 24px;
    font-size: 0.88em;
    color: var(--text-muted);
    line-height: 1.5;
}

.privacy-check input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }

.check-box {
    width: 20px; height: 20px;
    border: 2px solid var(--border);
    border-radius: 6px;
    flex-shrink: 0;
    margin-top: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
    background: #fff;
}

.privacy-check input:checked ~ .check-box { background: var(--primary); border-color: var(--primary); }

.privacy-check input:checked ~ .check-box::after {
    content: '';
    width: 5px; height: 9px;
    border: 2px solid #fff;
    border-top: none; border-left: none;
    transform: rotate(45deg) translateY(-1px);
    display: block;
}

.privacy-check a { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* Submit button */
.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px 32px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-pill);
    font-family: inherit;
    font-size: 1em;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.2px;
    transition:
        background 0.3s var(--ease),
        transform  0.3s var(--spring),
        box-shadow 0.3s var(--ease);
    will-change: transform;
}

.submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--primary-glow);
}

.submit-btn:active { transform: translateY(0); }

/* Mappa moderna */
.contact-map-modern { background: var(--bg-white); }

.map-header { padding: 56px 28px 28px; text-align: center; }
.map-header h2 { font-size: 1.9em; font-weight: 700; color: var(--text); margin-bottom: 8px; letter-spacing: -0.3px; }
.map-header p { color: var(--text-muted); font-size: 1.02em; }

.map-frame { line-height: 0; overflow: hidden; }
.map-frame iframe {
    display: block;
    width: 100%;
    height: 420px;
    filter: grayscale(20%);
    transition: filter 0.4s var(--ease);
}

.map-frame:hover iframe { filter: grayscale(0%); }

/* Responsive contatti */
@media (max-width: 960px) {
    .contact-wrapper { grid-template-columns: 1fr; }
    .contact-panel-inner { padding: 44px 32px; }
    .contact-panel::after { display: none; }
    .contact-form-panel { padding: 44px 32px; }
    .panel-items { padding-bottom: 32px; }
}

@media (max-width: 600px) {
    .form-row { grid-template-columns: 1fr; }
    .contact-form-panel { padding: 32px 20px; }
    .contact-panel-inner { padding: 36px 20px; }
    .map-frame iframe { height: 300px; }
    .map-header { padding: 44px 20px 24px; }
}

/* ========================================
   ANIMAZIONI
   ======================================== */
@keyframes pageFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(34,197,94,0.25); }
    50%       { box-shadow: 0 0 0 7px rgba(34,197,94,0.08); }
}

/* Scroll reveal stagger */
.preview-card,
.service-card,
.value-card,
.benefit,
.process-step,
.stat,
.response-card,
.contact-item {
    transition:
        transform    0.4s var(--spring),
        box-shadow   0.4s var(--ease),
        border-color 0.38s var(--ease),
        background   0.3s var(--ease);
    will-change: transform;
}

/* ========================================
   ACCESSIBILITY
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration:        0.01ms !important;
        animation-iteration-count: 1      !important;
        transition-duration:       0.01ms !important;
        scroll-behavior: auto !important;
    }
}
