/* ==========================================================================
   TIA COSTRUZIONI - DESIGN SYSTEM DEFINITIVO
   Palette: grafite, sabbia e terracotta
   Integrazione Testi e Valori del Quaderno
   ========================================================================== */

:root {
    /* Masse Primarie */
    --c-navy: #0a1f35;
    --c-navy-deep: #061827;
    --c-slate: #eaf1f7;

    /* Tonalità coordinate al blu serio */
    --c-crane-base: #163d66;
    --c-crane-light: var(--accent-copper);
    --c-crane-ice: #f2f7fc;

    /* Accento operativo */
    --c-amber: #eaf1f8;
    --c-amber-hover: #d5e3f1;
    --c-amber-glow: rgba(var(--accent-copper-rgb), 0.18);
    --c-amber-soft: #edf4fb;

    /* Canvas & superfici */
    --c-white: #ffffff;
    --c-concrete: #f3f7fb;
    --c-border: #dfeaf5;
    --c-border-strong: #8aa7c8;
    --c-border-dark: #d2dfed;

    /* Tipografia */
    --text-primary: #0a1f35;
    --text-body: #334c69;
    --text-muted: #5b7288;
    --text-light: #3b577b;

    --font-heading: 'Montserrat', Arial, sans-serif;
    --font-body: var(--font-heading);
    --font-sans: var(--font-body);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
h1, h2, h3 { text-wrap: balance; }
h1, h2, h3, h4, h5, h6 { text-transform: uppercase; }
h1, h2 { font-family: var(--font-heading); font-weight: 700; line-height: 1.12; letter-spacing: -.03em; }
h3, h4 { font-family: var(--font-body); font-weight: 700; }
img { max-width: 100%; }
svg { flex-shrink: 0; }
body {
    font-family: var(--font-body);
    font-synthesis: none;
    background-color: var(--c-white);
    color: var(--text-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
[hidden] { display: none !important; }
.fallback-note { padding: 20px; line-height: 1.6; text-align: center; }
.fallback-note a { text-decoration: underline; font-weight: 700; }
button, input, select, textarea { font: inherit; }
button { font-weight: 700; }
:focus-visible { outline: 3px solid var(--c-crane-light); outline-offset: 4px; }
[id] { scroll-margin-top: 96px; }
.icon-inline, .icon-amber { width: 16px; height: 16px; flex-shrink: 0; }
.icon-amber { color: var(--c-crane-base); }

/* ==========================================================================
   TOP BAR TECNICA (DEEP NAVY)
   ========================================================================== */

/* ==========================================================================
   NAVBAR ARCHITETTONICA
   ========================================================================== */


















.btn-primary {
    background-color: var(--c-amber);
    color: var(--c-navy);
    font-size: 13px;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 10px var(--c-amber-glow);
    transition: all 0.2s ease;
    white-space: nowrap;
}
.btn-primary:hover {
    background-color: var(--c-amber-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(114, 81, 62, 0.35);
}






/* ==========================================================================
   1. HERO SECTION (DEEP NAVY) CON CLAIM QUADERNO
   ========================================================================== */
.hero-split-section {
    background-color: var(--c-crane-ice);
    background-image: none;
    color: var(--text-primary);
    padding: 70px 20px 85px 20px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--c-border-dark);
}
.hero-backdrop-layer {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}
.hero-split-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--c-crane-base);
    margin-bottom: 14px;
    text-transform: uppercase;
}
.tag-accent-bar { width: 22px; height: 3px; background-color: var(--c-amber); display: inline-block; }
.hero-main-title {
    font-family: var(--font-heading);
    font-size: 42px;
    line-height: 1.12;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 15.5px;
    line-height: 1.6;
    color: var(--text-light);
    max-width: 580px;
    margin-bottom: 28px;
}

.hero-cta-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.btn-hero-main {
    background-color: var(--c-amber);
    color: var(--c-navy);
    font-size: 13.5px;
    font-weight: 700;
    padding: 12px 22px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px var(--c-amber-glow);
    transition: transform 0.2s ease, background-color 0.2s;
}
.btn-hero-main:hover {
    background-color: var(--c-amber-hover);
    transform: translateY(-1px);
}
.btn-hero-wa {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--c-border-dark);
    font-size: 13px;
    font-weight: 700;
    padding: 12px 18px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}
.btn-hero-wa:hover { background: rgba(255, 255, 255, 0.15); }

.hero-split-visual { position: relative; }
.hero-visual-frame {
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--c-border-dark);
    aspect-ratio: 4 / 3.2;
    background: var(--c-slate);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.hero-visual-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ==========================================================================
   STRISCIA METRICHE (CALCESTRUZZO CHIARO)
   ========================================================================== */
.stats-strip {
    background-color: var(--c-concrete);
    border-bottom: 1px solid var(--c-border);
    padding: 26px 20px;
}
.stats-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

/* ==========================================================================
   2. CHI SIAMO: "UNA STORIA DI VALORI" (CANVAS BIANCO)
   ========================================================================== */
.section-editorial-about { padding: 80px 20px; background-color: #ffffff; border-bottom: 1px solid var(--c-border); }
.editorial-container { max-width: 1280px; margin: 0 auto; }
.editorial-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 50px;
    align-items: center;
}
.editorial-image-col { position: relative; }
.editorial-image-wrap {
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 4 / 3.2;
    border: 1px solid var(--c-border-strong);
    box-shadow: 0 10px 30px rgba(45, 39, 35, 0.06);
}
.editorial-image-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }

.editorial-tag, .section-tag { font-size: 11px; font-weight: 700; color: var(--c-crane-base); text-transform: uppercase; letter-spacing: 0.08em; display: block; margin-bottom: 6px; }
.editorial-title, .section-title { font-size: 32px; font-weight: 700; color: var(--text-primary); line-height: 1.2; letter-spacing: -0.02em; }
.editorial-handwritten-lead {
    font-size: 15.5px;
    color: var(--text-body);
    line-height: 1.65;
    margin-top: 12px;
    font-style: normal;
    border-left: 3px solid var(--c-crane-base);
    padding-left: 14px;
}
.service-bento-card.card-light:nth-child(odd) {
    border-right: 1px solid var(--c-border);
}
.service-bento-card.card-dark:nth-child(odd) {
    border-right: 1px solid var(--c-border);
}

/* Bordi orizzontali divisori tra le righe */
.service-bento-card:nth-child(1),
.service-bento-card:nth-child(2),
.service-bento-card:nth-child(3),
.service-bento-card:nth-child(4) {
    border-bottom: 1px solid var(--c-border);
}
.section-tag-light { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.btn-fast-call {
    background: var(--c-crane-ice); border: 1px solid var(--c-border-dark); color: var(--text-primary);
    padding: 10px 16px; border-radius: 4px; font-size: 13px; font-weight: 700;
    display: inline-flex; align-items: center; gap: 6px;
}

/* ==========================================================================
   FOOTER ISTITUZIONALE
   ========================================================================== */


/* ==========================================================================
   MOBILE & RESPONSIVE BREAKPOINTS
   ========================================================================== */
.mobile-sticky-action-bar { display: none; }

/* Shared contact card and calls to action used by the internal pages. */
.quote-card { padding: 28px; border: 1px solid var(--c-border); border-radius: 14px; background: white; }
.card-badge { color: var(--c-crane-base); font-size: 11px; font-weight: 700; margin-bottom: 10px; }
.card-title { color: var(--c-navy); font-size: 24px; line-height: 1.25; }
.card-subtitle { font-size: 14px; line-height: 1.6; margin: 10px 0 22px; }
.quote-form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.form-label { font-size: 12px; font-weight: 700; }
.form-input { width: 100%; min-width: 0; padding: 11px; border: 1px solid var(--c-border-strong); border-radius: 4px; background: var(--c-concrete); }
.full-width-group-field, .full-width-group, .form-submit-row, .form-footer-note { grid-column: 1 / -1; }
.full-width-group { flex-direction: row; align-items: flex-start; }
.checkbox-gdpr { margin-top: 3px; }
.label-gdpr, .form-footer-note { font-size: 12px; line-height: 1.5; }
.btn-submit { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 13px; border: 0; border-radius: 4px; background: var(--c-amber-soft); color: var(--c-navy); font-weight: 700; cursor: pointer; }
.icon-btn, .icon-lock { width: 16px; height: 16px; flex-shrink: 0; }
.form-footer-note { display: flex; align-items: center; gap: 6px; }
.pre-footer-funnel { padding: 50px 20px; background: var(--c-crane-ice); color: var(--text-primary); text-align: center; }
.funnel-container { max-width: 850px; margin: auto; }
.funnel-title { font-size: 28px; line-height: 1.3; margin: 10px 0; }
.funnel-desc { color: var(--text-light); line-height: 1.6; }
.funnel-buttons { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px; margin-top: 24px; }
.btn-funnel-call, .btn-outline-footer { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.btn-outline-footer { padding: 10px 16px; border: 1px solid var(--c-border-dark); border-radius: 4px; color: var(--text-primary); }


@media (max-width: 1024px) {
    .hero-split-container { grid-template-columns: 1fr; }
    .editorial-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .stats-container { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.btn-primary { white-space: normal; }
    .hero-split-container { min-width: 0; gap: 30px; }
    .quote-form-grid { grid-template-columns: minmax(0, 1fr); }
.quote-card { padding: 22px 16px; }
.form-input { font-size: 16px; }
    
    
    
    
    
    body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }

    .hero-main-title { font-size: 32px; }
    .mobile-sticky-action-bar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        position: fixed;
        bottom: 0; left: 0; right: 0;
        z-index: 999;
        height: calc(56px + env(safe-area-inset-bottom));
        padding-bottom: env(safe-area-inset-bottom);
        background: var(--c-crane-ice);
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    }
    .m-bar-wa { background: var(--c-amber-soft); color: var(--text-primary); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; }
    .m-bar-call { background: var(--c-crane-ice); color: var(--text-primary); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; border-left: 1px solid var(--c-border-dark); }
}

/* ==========================================================================
   ANIMAZIONI REVEAL
   ========================================================================== */
.reveal {
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.reveal-pending { opacity: 0; transform: translateY(20px); }
.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }

/* Rifiniture condivise: stessa palette e stessi layout. */
.hero-split-container > *, .editorial-layout > *, .contact-layout-container > *,
.story-grid > *, .service-deep-card > *, .team-box > * { min-width: 0; }
.btn-primary,
.btn-hero-main,
.btn-hero-wa,
.btn-fast-call { min-height: 44px; }
.form-input { min-height: 48px; }
.form-input:focus-visible {
    outline: 2px solid var(--c-crane-base);
    outline-offset: 2px;
    box-shadow: 0 0 0 5px var(--c-crane-ice);
}
.checkbox-gdpr { width: 18px; height: 18px; flex-shrink: 0; }
.m-bar-wa { color: var(--c-navy); }

@media (max-width: 768px) {
.hero-split-section,
.section-editorial-about { padding-block: 56px; }
    .hero-cta-actions > a { justify-content: center; }
    .hero-cta-actions .btn-hero-main { width: 100%; }
    .hero-visual-frame { aspect-ratio: 4 / 3.5; }
}
@media (max-width: 380px) {
    .hero-main-title { font-size: 28px; }
    .hero-badge-tag { font-size: 10px; }
}

/* Home: meno decorazioni, fotografie e contenuti più distinti. */
.home-page .hero-backdrop-layer { background-image: none; }
.home-page .hero-visual-frame { aspect-ratio: auto; border-radius: 8px; box-shadow: none; }
.home-page .hero-visual-frame > img { aspect-ratio: 512 / 355; height: auto; }
.home-page .editorial-image-wrap { box-shadow: none; }
@media (min-width: 1025px) {
    .home-page .hero-split-container { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* Palette marrone: superfici neutre, accenti dosati sulle azioni. */
.hero-main-title { color: var(--text-primary); }
.hero-split-section { background: #ffffff; }
.hero-split-section .hero-subtitle { color: var(--text-body); }
.btn-primary,
.btn-hero-main,
.btn-submit,
.btn-fast-call { background: #f0e8df; color: var(--text-primary); border-color: #c8b39e; box-shadow: none; }
.btn-primary:hover,
.btn-hero-main:hover,
.btn-submit:hover,
.btn-fast-call:hover { background: #e4d5c6; color: var(--text-primary); box-shadow: none; }
.btn-hero-wa { background: #ffffff; color: var(--text-primary); border-color: var(--c-border-strong); }
.btn-hero-wa:hover { background: #f5f2ed; color: var(--text-primary); }

.section-tag-light { color: var(--c-crane-base); }
@media (max-width: 768px) {
    .mobile-sticky-action-bar { background: #f5f2ed; }
    .m-bar-wa { background: #f0e8df; color: var(--text-primary); }
    .m-bar-call { background: #f5f2ed; color: var(--text-primary); }
}

/* Dettagli istituzionali: contrasto deciso, bordi sottili, effetti contenuti. */
.btn-primary,
.btn-hero-main,
.btn-submit,
.btn-fast-call { background: #b19076; color: #000000; border-color: #8a6850; }
.btn-primary:hover,
.btn-hero-main:hover,
.btn-submit:hover,
.btn-fast-call:hover { background: #a58369; color: #000000; transform: none; }

.hero-main-title { letter-spacing: -.025em; }
.home-page .hero-visual-frame,
.home-page .editorial-image-wrap,
.quote-card { border-radius: 4px; }
@media (max-width: 768px) {
    .m-bar-wa { background: #b19076; color: #000000; }
    .m-bar-call { background: #efeae4; color: #2d2723; }
}
.stats-strip { background: #f5f2ed; }
.btn-hero-wa:hover { background: #f0e8df; border-color: #8a6850; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

