/* ==========================================================================
   DESIGN SYSTEM & MAIN STYLESHEET - FUTURISTIC YELLOW & BLUE THEME
   Impresa Edile & Domotica Antonio Minichino
   ========================================================================== */

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

:root {
    /* Futuristic Color Palette: Electric Yellow & Cyber Tech Blue */
    --primary: #facc15;        /* Cyber Electric Yellow */
    --primary-hover: #eab308;
    --primary-light: rgba(250, 204, 21, 0.15);
    
    --secondary: #0b0f19;      /* Deep Cyber Obsidian / Blue Navy */
    --secondary-light: #131c31;
    --secondary-card: #1e293b;
    
    --accent: #0284c7;         /* Cyber Tech Blue */
    --accent-glow: #38bdf8;
    --accent-light: rgba(2, 132, 199, 0.2);
    
    /* Neutral & Text Tones */
    --bg-main: #070a12;
    --bg-card: #111827;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-light: #64748b;
    --border-color: rgba(56, 189, 248, 0.2);
    
    /* Shadows & Futuristic Glows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.4);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 30px rgba(2, 132, 199, 0.2);
    --shadow-primary: 0 0 20px rgba(250, 204, 21, 0.4);
    --shadow-blue: 0 0 20px rgba(56, 189, 248, 0.3);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 14px;
}

/* Reset & Global Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: white;
    font-weight: 700;
    line-height: 1.2;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header & Navigation Bar */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(11, 15, 25, 0.88);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.navbar {
    max-width: 1240px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.35rem;
    color: white;
}

.brand-logo img {
    height: 48px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(250, 204, 21, 0.4));
}

.brand-tag {
    display: block;
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: #cbd5e1;
    position: relative;
    padding: 6px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--primary);
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

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

.nav-cta {
    background: var(--primary);
    color: var(--secondary) !important;
    font-weight: 800 !important;
    padding: 10px 22px !important;
    border-radius: 30px;
    box-shadow: var(--shadow-primary);
}

.nav-cta:hover {
    background: var(--primary-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(250, 204, 21, 0.7);
}

.nav-cta::after {
    display: none !important;
}

/* Mobile Nav Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.75rem;
    color: var(--primary);
    cursor: pointer;
}

/* Buttons System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    border-radius: 30px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--secondary);
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(250, 204, 21, 0.8);
}

.btn-secondary {
    background-color: var(--accent);
    color: white;
    box-shadow: var(--shadow-blue);
}

.btn-secondary:hover {
    background-color: #0369a1;
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.6);
}

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

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    box-shadow: 0 0 20px rgba(37,211,102,0.4);
}

.btn-whatsapp:hover {
    background-color: #1ebc57;
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(37,211,102,0.7);
}

/* Prevent iOS Zoom & Scroll Lock */
input, select, textarea {
    font-size: 16px;
}

body.menu-open {
    overflow: hidden;
}

/* Responsive Grid Utility */
.responsive-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

/* Inner Page Header Sections */
.page-header-section {
    padding-top: 150px;
    background-color: var(--secondary);
    color: white;
    text-align: center;
}

/* Sections Layout */
.section {
    padding: 90px 24px;
    max-width: 1240px;
    margin: 0 auto;
}

.section-title-wrap {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background-color: var(--primary-light);
    color: var(--primary);
    border: 1px solid rgba(250, 204, 21, 0.4);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 20px;
    margin-bottom: 12px;
    box-shadow: 0 0 10px rgba(250, 204, 21, 0.2);
}

.section-title {
    font-size: 2.4rem;
    margin-bottom: 16px;
    color: white;
}

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

/* Hero Section */
.hero {
    position: relative;
    padding: 170px 24px 100px 24px;
    background: linear-gradient(135deg, rgba(7,10,18,0.85) 0%, rgba(15,23,42,0.8) 100%), url('../img/edilizia_carpenteria_bg.jpg') center/cover no-repeat fixed;
    color: white;
    min-height: 85vh;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.hero-container {
    max-width: 1240px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-text h1 {
    color: white;
    font-size: 3.3rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-text h1 span {
    color: var(--primary);
    text-shadow: 0 0 20px rgba(250, 204, 21, 0.4);
}

.hero-text p {
    font-size: 1.2rem;
    color: #cbd5e1;
    margin-bottom: 32px;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-badge-card {
    background: rgba(19, 28, 49, 0.75);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 30px;
    color: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 0 15px rgba(56, 189, 248, 0.15);
}

.badge-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 18px;
    background: rgba(7, 10, 18, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--primary);
    text-shadow: 0 0 12px rgba(250, 204, 21, 0.4);
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: #94a3b8;
}

/* Feature Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 32px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg), 0 0 25px rgba(56, 189, 248, 0.25);
    border-color: var(--primary);
}

.card-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: 14px;
    border: 1px solid rgba(250, 204, 21, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
    box-shadow: 0 0 15px rgba(250, 204, 21, 0.2);
}

.card-icon.tech {
    background-color: var(--accent-light);
    color: var(--accent-glow);
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.25);
}

.card h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
    color: white;
}

.card p {
    color: var(--text-muted);
    font-size: 0.98rem;
    margin-bottom: 20px;
}

/* Call to Action Banner */
.cta-banner {
    background: linear-gradient(135deg, #0b0f19 0%, #131c31 100%);
    border-radius: 20px;
    padding: 60px 40px;
    color: white;
    text-align: center;
    margin: 40px 0;
    border: 1px solid var(--border-color);
    box-shadow: 0 0 30px rgba(2, 132, 199, 0.25);
    position: relative;
    overflow: hidden;
}

.cta-banner h2 {
    color: white;
    font-size: 2.4rem;
    margin-bottom: 16px;
}

.cta-banner p {
    color: #cbd5e1;
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 32px auto;
}

.cta-btns {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Footer */
.site-footer {
    background-color: #070a12;
    color: #94a3b8;
    padding: 70px 24px 30px 24px;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-col p {
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

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

.footer-bottom {
    max-width: 1240px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

/* Scroll Reveal Animations with Graceful Fallback */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

html.js-ready .reveal {
    opacity: 0;
    transform: translateY(30px);
}

html.js-ready .reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 10px 16px;
    }

    .brand-logo {
        font-size: 1.15rem;
        gap: 8px;
    }

    .brand-logo img {
        height: 38px;
    }

    .brand-tag {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: #0b0f19;
        flex-direction: column;
        justify-content: center;
        gap: 24px;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
        overflow-y: auto;
        padding: 40px 24px;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .hero {
        padding: 110px 16px 60px 16px;
        background-attachment: scroll;
        min-height: auto;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .responsive-grid-2 {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .responsive-grid-2 > div {
        order: initial !important;
    }

    .section {
        padding: 60px 16px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header-section {
        padding-top: 105px !important;
        padding-bottom: 40px !important;
    }

    .page-header-section h1 {
        font-size: 2.0rem !important;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .page-header-section h1 {
        font-size: 1.65rem !important;
    }

    .hero-text h1 {
        font-size: 1.75rem;
    }

    .hero-actions, .cta-btns {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn, .cta-btns .btn {
        width: 100%;
    }

    .hero-badge-card {
        padding: 20px 16px;
    }

    .badge-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .stat-item {
        padding: 12px 6px;
    }

    .stat-number {
        font-size: 1.6rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .cta-banner {
        padding: 36px 16px;
    }

    .cta-banner h2 {
        font-size: 1.6rem;
    }
}
