/* ==========================================================================
   Design System & Variabili
   ========================================================================== */
:root {
    --primary: #f49230;        /* Arancione Costruzioni caldo */
    --primary-hover: #e07f20;  /* Arancione scuro per hover */
    --brand-blue: #183c61;     /* Blu Acciaio societario */
    --bg-dark: #0a0e17;        /* Sfondo Slate Navy scuro (logo-match) */
    --bg-card: #121824;        /* Colore carte */
    --bg-card-hover: #1b2436;  /* Colore carte in hover */
    --bg-light: #162030;       /* Contrasto per sezioni alternate */
    --text-main: #f3f4f6;      /* Bianco sporco per leggibilità */
    --text-muted: #9ca3af;     /* Grigio per testi secondari */
    --text-dark: #1f2937;      /* Grigio scuro per contrasto */
    --border: rgba(255, 255, 255, 0.08);
    --border-focus: rgba(244, 146, 48, 0.5);
    --glow: 0 0 20px rgba(244, 146, 48, 0.25);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --font-titles: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* ==========================================================================
   Reset e Setup Base
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

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

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

button, input, select, textarea {
    font-family: inherit;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center { text-align: center; }
.text-white { color: #ffffff; }
.max-w-600 { max-width: 600px; margin-left: auto; margin-right: auto; }

/* Grid Utilities */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3.5rem;
    align-items: center;
}

/* ==========================================================================
   Componenti Tipografici e Pulsanti
   ========================================================================== */
h1, h2, h3, h4 {
    font-family: var(--font-titles);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section-tag {
    font-family: var(--font-titles);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    display: inline-block;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 3.5rem;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Pulsanti */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-family: var(--font-titles);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

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

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

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-phone {
    background-color: rgba(212, 154, 59, 0.15);
    color: var(--primary);
    border: 1px solid rgba(212, 154, 59, 0.3);
    font-size: 0.95rem;
    padding: 0.6rem 1.25rem;
}

.btn-phone i {
    margin-right: 0.5rem;
}

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

.btn-block {
    width: 100%;
}

.text-link {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.text-link:hover {
    color: var(--primary-hover);
}

.text-link i {
    transition: var(--transition);
}

.text-link:hover i {
    transform: translateX(5px);
}

/* ==========================================================================
   Header & Navigazione
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: var(--transition);
}

.main-header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.main-header.scrolled .header-container {
    padding: 0.25rem 2rem;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0.4rem 2rem;
    transition: var(--transition);
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 58px;
    width: auto;
    display: block;
}

.logo-img-footer {
    height: 48px;
    width: auto;
    display: block;
    background-color: #ffffff;
    padding: 4px 12px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.nav-menu {
    display: flex;
    gap: 2.25rem;
}

.nav-link {
    font-family: var(--font-titles);
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a202c;
    position: relative;
    padding: 0.25rem 0;
}

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

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

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

.header-cta-group {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.mobile-toggle {
    display: none;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #1a202c;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    font-size: 1.25rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.mobile-toggle:hover {
    background: rgba(244, 146, 48, 0.15);
    color: var(--primary);
    border-color: rgba(244, 146, 48, 0.3);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 8rem 2rem 6rem;
    overflow: hidden;
    background-color: var(--bg-dark);
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient leggero per sfumare in alto (per la header) e in basso, lasciando il video centrale nitido */
    background: linear-gradient(
        to bottom,
        rgba(10, 14, 23, 0.55) 0%,
        rgba(10, 14, 23, 0.15) 40%,
        rgba(10, 14, 23, 0.15) 70%,
        var(--bg-dark) 100%
    );
    z-index: 2;
}

.hero-content-container {
    position: relative;
    z-index: 3;
    max-width: 850px;
    text-align: center;
    margin-bottom: 2rem;
}

.hero-logo {
    height: 190px;
    width: auto;
    max-width: 90%;
    margin: 0 auto 2rem;
    display: block;
    filter: brightness(0) invert(1) drop-shadow(0 4px 20px rgba(0, 0, 0, 0.85));
    transition: var(--transition);
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 2.5rem;
    color: #ffffff;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8), 0 2px 5px rgba(0, 0, 0, 0.9);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
}

/* Quick Info Bar */
.quick-info-bar {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    max-width: 1000px;
    background-color: rgba(24, 31, 42, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.75rem;
    margin-top: auto;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary);
}

.info-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
}

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

/* ==========================================================================
   Chi Siamo & Stats
   ========================================================================== */
.about-section {
    padding: 8rem 0;
    background-color: var(--bg-dark);
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.feature-tick {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature-tick i {
    color: var(--primary);
    font-size: 1.2rem;
}

.feature-tick span {
    font-weight: 500;
    font-size: 1rem;
}

.about-stats-container {
    height: 100%;
    display: flex;
    align-items: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
    width: 100%;
}

.stat-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 2.25rem 1.75rem;
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 154, 59, 0.3);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.stat-number {
    font-family: var(--font-titles);
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-plus {
    font-family: var(--font-titles);
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* ==========================================================================
   I Nostri Servizi
   ========================================================================== */
.services-section {
    padding: 8rem 0;
    background-color: var(--bg-light);
}

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

.service-card {
    position: relative;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-icon {
    position: absolute;
    top: 195px;
    right: 20px;
    background-color: var(--primary);
    color: var(--bg-dark);
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.service-info {
    padding: 2.25rem 1.75rem 1.75rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.85rem;
    color: #ffffff;
}

.service-info p {
    font-size: 0.95rem;
    color: var(--text-muted);
    flex-grow: 1;
}

/* Hover effects */
.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(212, 154, 59, 0.4);
    box-shadow: var(--glow);
}

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

/* ==========================================================================
   Come Funziona (Processo)
   ========================================================================== */
.process-section {
    padding: 8rem 0;
    background-color: var(--bg-dark);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4.5rem;
    position: relative;
}

.step-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    position: relative;
    transition: var(--transition);
}

.step-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.step-num {
    font-family: var(--font-titles);
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(212, 154, 59, 0.15);
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    line-height: 1;
}

.step-card h3 {
    font-size: 1.15rem;
    margin-top: 1rem;
    margin-bottom: 0.75rem;
    color: #ffffff;
}

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

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-section {
    padding: 8rem 0;
    background-color: var(--bg-light);
}

.faq-cta {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: var(--bg-card);
    border-radius: 8px;
    border-left: 3px solid var(--primary);
}

.faq-cta p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

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

.accordion-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
}

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: none;
    border: none;
    color: #ffffff;
    font-family: var(--font-titles);
    font-size: 1.05rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
}

.accordion-header:hover {
    color: var(--primary);
}

.accordion-header .icon {
    font-size: 0.9rem;
    color: var(--primary);
    transition: var(--transition);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 1.5rem;
}

.accordion-content p {
    padding-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.accordion-item.active {
    border-color: rgba(212, 154, 59, 0.3);
}

.accordion-item.active .accordion-header {
    color: var(--primary);
}

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

/* ==========================================================================
   Contatti & Mappa
   ========================================================================== */
.contact-section {
    padding: 8rem 0;
    background-color: var(--bg-dark);
}

.contact-card-wrapper {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    align-items: stretch;
    gap: 0;
}

.contact-info-container {
    padding: 4rem 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-block h3 {
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.company-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background-color: rgba(244, 146, 48, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.detail-item strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.detail-item p {
    font-size: 1rem;
    color: #ffffff;
}

.contact-map-container {
    width: 100%;
    min-height: 400px;
    overflow: hidden;
    border-left: 1px solid var(--border);
}

.map-link {
    display: block;
    width: 100%;
    height: 100%;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #18202c 0%, #111721 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition);
    cursor: pointer;
    padding: 2rem;
    text-align: center;
}

.map-placeholder i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.map-placeholder span {
    font-weight: 600;
    color: #ffffff;
    font-size: 1.1rem;
}

.map-placeholder small {
    font-size: 0.9rem;
    margin-top: 0.35rem;
}

.map-placeholder:hover {
    background: linear-gradient(135deg, #1e2837 0%, #151d2a 100%);
}

.map-placeholder:hover i {
    transform: translateY(-5px);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.main-footer {
    background-color: #0b0e14;
    border-top: 1px solid var(--border);
    padding: 5rem 0 0;
}

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

.footer-brand .logo {
    display: inline-block;
    margin-bottom: 1.25rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 320px;
}

.footer-links h4, .footer-services h4 {
    font-size: 1.05rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.footer-links ul, .footer-services ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a, .footer-services a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links a:hover, .footer-services a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 1.75rem 0;
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-bottom-flex a {
    color: var(--primary);
}

.footer-bottom-flex a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* ==========================================================================
   Responsività & Adattamento Layout
   ========================================================================== */

@media (max-width: 1024px) {
    .grid-2 {
        gap: 2.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    /* Menu Mobile Standard a discesa classica dall'header */
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        flex-direction: column;
        padding: 0.25rem 0;
        gap: 0;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
        border-bottom: 3px solid var(--primary);
        box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        visibility: hidden;
        transition: max-height 0.3s ease, opacity 0.25s ease, visibility 0.25s ease;
    }
    
    .nav-menu.active {
        max-height: 480px;
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link {
        display: block;
        padding: 0.75rem 2rem;
        color: #1a202c;
        font-size: 0.98rem;
        font-weight: 600;
        border-bottom: 1px solid rgba(0, 0, 0, 0.04);
        text-align: left;
        transition: background-color 0.2s, color 0.2s;
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .nav-link::after {
        display: none;
    }
    
    .nav-link:hover, .nav-link.active {
        background-color: rgba(244, 146, 48, 0.08);
        color: var(--primary);
        padding-left: 2.25rem;
    }
    
    .hero-logo {
        height: 130px;
        margin-bottom: 1.5rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .quick-info-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .contact-card-wrapper {
        grid-template-columns: 1fr;
    }
    
    .contact-map-container {
        border-left: none;
        border-top: 1px solid var(--border);
        min-height: 300px;
    }
    
    .contact-map-container .map-placeholder {
        border-radius: 0 0 16px 16px;
    }
    
    .contact-info-container {
        padding: 2.5rem 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .btn-phone span {
        display: none;
    }
    
    .btn-phone {
        padding: 0.6rem;
        border-radius: 50%;
        width: 40px;
        height: 40px;
    }
    
    .btn-phone i {
        margin-right: 0;
    }
}

/* ==========================================================================
   Video Showcase: Lavori in Azione (Loop Video Section)
   ========================================================================== */
.video-showcase-section {
    padding: 7rem 0;
    background-color: var(--bg-dark);
    position: relative;
}

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

.video-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.video-card:hover {
    transform: translateY(-6px);
    border-color: rgba(244, 146, 48, 0.4);
    box-shadow: var(--glow);
}

.video-card-media {
    position: relative;
    width: 100%;
    height: 380px;
    background-color: #000;
    overflow: hidden;
}

.video-card-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-badge-live {
    position: absolute;
    top: 14px;
    left: 14px;
    background-color: rgba(10, 14, 23, 0.85);
    border: 1px solid rgba(244, 146, 48, 0.5);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 0.35rem 0.75rem;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(8px);
    z-index: 5;
}

.live-dot {
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 8px #22c55e;
    animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.video-card-body {
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.video-card-body h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.video-card-body p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ==========================================================================
   Galleria Cantieri Reali
   ========================================================================== */
.gallery-section {
    padding: 7rem 0;
    background-color: var(--bg-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 240px;
    border: 1px solid var(--border);
    background-color: var(--bg-card);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 14, 23, 0.9) 0%, rgba(10, 14, 23, 0.2) 60%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    opacity: 0.95;
    transition: var(--transition);
}

.gallery-overlay span {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
}

/* ==========================================================================
   Form Contatti & Preventivo
   ========================================================================== */
.contact-form-box {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 3rem 2.5rem;
}

.contact-form-box h3 {
    font-size: 1.6rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.contact-form-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

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

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

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

.form-control {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.85rem 1rem;
    color: #ffffff;
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
    width: 100%;
}

.form-control:focus {
    border-color: var(--primary);
    background-color: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 10px rgba(244, 146, 48, 0.2);
}

.form-control option {
    background-color: #121824;
    color: #ffffff;
}

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

.form-status-msg {
    display: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
    margin-top: 1rem;
}

.form-status-msg.success {
    display: block;
    background-color: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #4ade80;
}

/* ==========================================================================
   Social Pills & WhatsApp Floating
   ========================================================================== */
.social-pills-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.social-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 30px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.social-pill:hover {
    background-color: var(--primary);
    color: var(--bg-dark);
    transform: translateY(-2px);
    border-color: var(--primary);
}

.social-pill.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #fff;
    border-color: transparent;
}

.social-pill.tiktok:hover {
    background-color: #000000;
    color: #ffffff;
    border-color: #ff0050;
    box-shadow: -2px 0 0 #00f2fe, 2px 0 0 #ff0050;
}

.social-pill.youtube:hover {
    background-color: #ff0000;
    color: #ffffff;
    border-color: #ff0000;
}

.social-pill.whatsapp:hover {
    background-color: #25d366;
    color: #ffffff;
    border-color: #25d366;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: #ffffff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
    color: #ffffff;
}

.whatsapp-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #25d366;
    opacity: 0.6;
    animation: pulseWa 2s infinite;
    z-index: -1;
}

@keyframes pulseWa {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.4); opacity: 0; }
}

/* Quick badges in hero */
.hero-badges-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85rem;
    margin-bottom: 2rem;
}

.hero-pill-badge {
    background-color: rgba(244, 146, 48, 0.15);
    border: 1px solid rgba(244, 146, 48, 0.35);
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(8px);
}

/* Responsive updates for new sections */
@media (max-width: 1024px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .video-card-media {
        height: 320px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-form-box {
        padding: 2rem 1.5rem;
    }
    
    .whatsapp-float {
        bottom: 18px;
        right: 18px;
        width: 52px;
        height: 52px;
        font-size: 28px;
    }
}

