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

:root {
    --accent: #FFB300; /* Safety Yellow-Orange Mix */
    --accent-hover: #F59E0B; /* Darker Yellow */
    --bg-main: #ffffff;
    --bg-dark: #111111;
    --border-color: #e5e7eb;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --text-light: #ffffff;
    
    --font-display: 'Outfit', sans-serif;
    --font-mono: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;

    --border-thick: 1px solid var(--border-color);
    --border-thin: 1px solid var(--border-color);
    
    --shadow-solid: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-solid-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-solid-hover-large: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --radius-md: 12px;
    --radius-lg: 24px;
    --radius-full: 9999px;
}

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

html {
    scroll-behavior: auto;
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 16px;
    overflow-x: hidden;
    max-width: 100%;
}

/* Blueprint Grid Background */
body {
    overflow-x: hidden;
    max-width: 100%;
    background-image: linear-gradient(var(--border-color) 1px, transparent 1px),
                      linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
    background-size: 50px 50px;
    background-color: var(--bg-main);
    /* Make the grid very faint */
    background-image: linear-gradient(rgba(0,0,0,0.05) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(0,0,0,0.05) 1px, transparent 1px);
}

a {
    color: inherit;
    text-decoration: none;
}

h1, h2, h3, .logo {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
}

/* MARQUEE TAPE */
.marquee-container {
    width: 100%;
    background: var(--accent);
    color: var(--text-main);
    border-top: var(--border-thick);
    border-bottom: var(--border-thick);
    overflow: hidden;
    white-space: nowrap;
    padding: 0.8rem 0;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.2rem;
    position: relative;
    z-index: 10;
}
.marquee-container.dark {
    background: var(--bg-dark);
    color: var(--accent);
}
.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* SECTION TAGS */
.section-tag {
    display: inline-flex;
    align-items: center;
    background: var(--bg-main);
    color: var(--text-main);
    padding: 0.5rem 1.2rem;
    text-transform: uppercase;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: var(--border-thin);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-solid);
}

/* BUTTONS */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: var(--bg-dark);
    padding: 1rem 2rem;
    font-weight: 600;
    font-family: var(--font-mono);
    font-size: 1rem;
    border: none;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-solid);
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.huge-btn {
    font-family: var(--font-display);
    font-size: 1.4rem;
    padding: 1.5rem 3rem;
}

/* HEADER / NAVBAR */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 50;
    width: 100%;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    background: transparent;
}

.main-header.scrolled,
.main-header.menu-open {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: var(--border-color);
}

.nav-container {
    max-width: 1024px;
    margin: 0 auto;
    display: flex;
    height: 4rem;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
}

.wordmark-icon {
    height: 1.2rem;
    color: var(--text-main);
}

.logo-text {
    color: var(--text-light);
    transition: color 0.3s ease;
}

.main-header.scrolled .logo-text,
.main-header.menu-open .logo-text {
    color: var(--text-main);
}

.nav-desktop-links {
    display: none;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-family: var(--font-mono);
    font-weight: 500;
    color: var(--text-light);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: color 0.3s ease, background-color 0.2s ease;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--accent);
}

.main-header.scrolled .nav-link,
.main-header.menu-open .nav-link {
    color: var(--text-main);
}

.main-header.scrolled .nav-link:hover,
.main-header.menu-open .nav-link:hover {
    background-color: #f3f4f6;
    color: var(--text-main);
}

.menu-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    cursor: pointer;
    z-index: 60;
    transition: all 0.3s ease;
}

.menu-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.main-header.scrolled .menu-toggle-btn,
.main-header.menu-open .menu-toggle-btn {
    border: 1px solid var(--border-color);
    background: var(--bg-main);
    color: var(--text-main);
}

.main-header.scrolled .menu-toggle-btn:hover,
.main-header.menu-open .menu-toggle-btn:hover {
    background: #f3f4f6;
}

.menu-toggle-svg {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.3s ease-in-out;
}

.menu-toggle-svg.open {
    transform: rotate(-45deg);
}

#menu-icon-path1 {
    transition: all 0.3s ease-in-out;
    stroke-dasharray: 12 63;
}
#menu-icon-path1.open {
    stroke-dasharray: 20 300;
    stroke-dashoffset: -32.42px;
}

/* Desktop */
@media (min-width: 768px) {
    .nav-desktop-links {
        display: flex;
    }
    .menu-toggle-btn {
        display: none;
    }
    .mobile-menu {
        display: none !important;
    }
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 4rem;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: var(--border-thin);
    flex-direction: column;
    overflow: hidden;
}

.mobile-menu.open {
    display: flex;
    animation: zoomIn 0.2s ease-out forwards;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
    height: 100%;
    gap: 0.5rem;
}

.mobile-nav-links {
    display: grid;
    gap: 0.5rem;
}

.mobile-nav-link {
    display: block;
    padding: 1rem;
    font-size: 1rem;
    font-family: var(--font-mono);
    font-weight: 500;
    color: var(--text-main);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: background-color 0.2s;
}

.mobile-nav-link:hover {
    background-color: #f3f4f6;
}

.mobile-nav-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.97);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* HERO SECTION */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 10rem 5% 5rem 5%;
    border-bottom: var(--border-thin);
    z-index: 1; /* Establish stacking context */
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('https://news.wuerth.it/wp-content/uploads/2021/09/Installazioni-come-diventare-elettricista-qualificato.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
    z-index: 0;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for readability */
    z-index: 1;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    background: transparent;
    padding: 4rem 0;
    position: relative;
    text-align: center;
    z-index: 2;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    margin-bottom: 3rem;
    color: var(--text-light); /* White text for contrast */
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

/* CHI SIAMO (ABOUT) */
.about {
    width: 100%;
    padding: 8rem 5%;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.about-text h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

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

.stat-card {
    padding: 2rem;
    background: var(--bg-main);
    border: var(--border-thin);
    box-shadow: var(--shadow-solid);
    border-radius: var(--radius-lg);
    text-align: center;
}

.stat-num {
    font-family: var(--font-mono);
    font-size: 4rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
    display: block;
    margin-bottom: 1rem;
}

.stat-label {
    font-size: 1rem;
    font-family: var(--font-mono);
    color: var(--text-main);
    text-transform: uppercase;
    font-weight: 700;
}

.about-image-wrapper {
    position: relative;
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-solid-hover-large);
    background: var(--bg-main);
    padding: 1rem; /* Frame effect */
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-md);
}

/* SERVIZI (BENTO GRID) */
.services {
    padding: 8rem 5%;
    background-color: var(--bg-dark);
    color: var(--text-light);
    border-top: var(--border-thick);
    border-bottom: var(--border-thick);
}

.services .section-tag {
    background: var(--accent);
    color: var(--bg-dark);
}

.services h2 {
    color: var(--text-light);
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 4rem;
    text-align: center;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(300px, auto);
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.bento-card {
    background: var(--bg-main);
    border: var(--border-thin);
    padding: 0;
    position: relative;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-solid);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.bento-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-solid-hover);
}

.bento-card.wide {
    grid-column: span 2;
}
.bento-card.tall {
    grid-row: span 2;
}

.bento-img-wrapper {
    width: 100%;
    height: 220px;
    border-bottom: var(--border-thin);
    position: relative;
    overflow: hidden;
    background: var(--text-main);
}

.bento-card.tall .bento-img-wrapper {
    flex: 1;
    min-height: 280px;
}

.bento-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    position: relative;
    z-index: 1;
}

.bento-card:hover .bento-img-wrapper img {
    transform: scale(1.05);
}

.bento-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.service-num {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 1rem;
    display: block;
}

.service-icon {
    align-self: flex-end;
    margin-bottom: 0;
    margin-top: 1rem;
}

.service-icon svg {
    width: 48px;
    height: 48px;
    stroke: var(--accent-hover);
    stroke-width: 2.5px;
}

.bento-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.bento-card p {
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--text-muted);
}

/* PERCHE' NOI */
.why-us {
    padding: 8rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.why-us-info {
    position: sticky;
    top: 10rem;
    height: max-content;
}

.why-us-info h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
}

.why-us-lead {
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--text-muted);
    border-left: 4px solid var(--accent);
    padding-left: 1.5rem;
    line-height: 1.6;
}

.why-us-cards {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.why-card {
    background: var(--bg-main);
    padding: 2.5rem;
    border: var(--border-thin);
    box-shadow: var(--shadow-solid);
    border-radius: var(--radius-lg);
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 2rem;
    transition: all 0.3s ease;
}
.why-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-solid-hover);
}

.why-icon {
    width: 60px;
    height: 60px;
    background: var(--accent);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}
.why-icon svg {
    stroke: var(--text-main);
}

.why-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.why-card p {
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--text-muted);
    line-height: 1.6;
}

/* GALLERIA REALIZZAZIONI */
.gallery-section {
    padding: 8rem 0;
    border-top: var(--border-thick);
    border-bottom: var(--border-thick);
    background: var(--bg-dark);
    overflow: hidden;
    position: relative;
}

.gallery-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6rem;
    background: linear-gradient(to top, var(--bg-dark), transparent);
    pointer-events: none;
    z-index: 10;
}

.gallery-section .section-header {
    max-width: 1400px;
    margin: 0 auto 4rem auto;
    padding: 0 5%;
}

.gallery-section .section-header h2 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    color: #fff;
}

.scroll-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    mask: linear-gradient(
        90deg,
        transparent 0%,
        black 10%,
        black 90%,
        transparent 100%
    );
    -webkit-mask: linear-gradient(
        90deg,
        transparent 0%,
        black 10%,
        black 90%,
        transparent 100%
    );
}

.infinite-scroll {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    animation: scroll-right 20s linear infinite;
}

.infinite-scroll:hover {
    animation-play-state: paused;
}

@keyframes scroll-right {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.image-item {
    flex-shrink: 0;
    width: 192px;
    height: 192px;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, filter 0.3s ease;
    cursor: pointer;
}

@media (min-width: 768px) {
    .image-item {
        width: 256px;
        height: 256px;
    }
}

@media (min-width: 1024px) {
    .image-item {
        width: 320px;
        height: 320px;
    }
}

.image-item:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* CONTATTI */
.contact {
    padding: 10rem 5%;
    display: flex;
    justify-content: center;
    border-bottom: var(--border-thick);
}

.contact-card {
    max-width: 1000px;
    width: 100%;
    background: var(--accent);
    border-radius: var(--radius-lg);
    padding: 5rem;
    box-shadow: var(--shadow-solid-hover-large);
    text-align: center;
    position: relative;
}

.contact-card h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
}

.contact-lead {
    font-size: 1.15rem;
    font-weight: 500;
    max-width: 700px;
    margin: 0 auto 3rem auto;
    color: var(--text-main);
    line-height: 1.6;
}

.contact-phone-btn {
    display: inline-flex;
    align-items: center;
    gap: 1.2rem;
    background: var(--text-main);
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    padding: 1.5rem 3rem;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-solid);
    transition: all 0.3s ease;
}

.contact-phone-btn:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-solid-hover);
    color: var(--bg-main);
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 2rem;
    background: #ffffff;
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-full);
}
.status-dot {
    width: 10px;
    height: 10px;
    background-color: #ef4444;
    border-radius: 50%;
    animation: blink 1.5s infinite;
}
@keyframes blink {
    50% { opacity: 0; }
}

.contact-details-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 4rem;
    text-align: left;
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 3rem;
}

.detail-item {
    flex: 1 1 240px;
    max-width: 350px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    box-shadow: none;
}

.detail-icon {
    width: 48px; height: 48px;
    background: var(--text-main);
    color: var(--accent);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-text strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}
.detail-text span {
    font-weight: 400;
    color: var(--text-main);
    font-size: 0.95rem;
}


/* FOOTER */
footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 5rem 5% 2rem 5%;
}

.footer-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    height: 60px;
    margin-bottom: 2rem;
    filter: grayscale(100%) invert(1);
}

.brand-col p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.footer-certificates {
    display: flex;
    gap: 1rem;
}
.cert-item {
    background: var(--accent);
    color: var(--bg-dark);
    font-family: var(--font-mono);
    font-weight: 800;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.footer-col h3 {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links-list a {
    font-family: var(--font-mono);
    font-weight: 600;
    transition: color 0.1s;
}
.footer-links-list a:hover {
    color: var(--accent);
}

.contact-item {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.contact-item strong {
    color: var(--accent);
    font-family: var(--font-mono);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    border-top: var(--border-thin);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}


/* ============================================================
   SERVICE MODAL — INDUSTRIAL DARK
   ============================================================ */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    padding: 0;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

/* Main panel — slides up from bottom */
.modal-panel {
    position: relative;
    width: 100%;
    max-width: 1100px;
    max-height: 92vh;
    background: #111111;
    display: grid;
    grid-template-columns: 360px 1fr;
    grid-template-rows: auto;
    overflow: hidden;
    transform: translateY(40px);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-overlay.open .modal-panel {
    transform: translateY(0);
}

/* Close button */
.modal-close-x {
    position: absolute;
    top: 1.2rem;
    right: 1.4rem;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.07);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.modal-close-x:hover {
    background: rgba(250, 204, 21, 0.15);
    border-color: var(--accent, #facc15);
    color: var(--accent, #facc15);
}

/* Giant watermark number */
.modal-watermark {
    position: absolute;
    bottom: -0.1em;
    right: -0.05em;
    font-family: var(--font-mono, monospace);
    font-size: clamp(8rem, 18vw, 14rem);
    font-weight: 900;
    line-height: 1;
    color: rgba(255,255,255,0.04);
    pointer-events: none;
    user-select: none;
    z-index: 0;
    letter-spacing: -0.05em;
}

/* Image strip — left column */
.modal-img-strip {
    position: relative;
    grid-column: 1;
    grid-row: 1;
    height: 100%;
    min-height: 480px;
    overflow: hidden;
}

.modal-img-strip img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(30%) contrast(1.1);
    transition: filter 0.4s ease, transform 0.6s ease;
}

.modal-overlay.open .modal-img-strip img {
    transform: scale(1.03);
}

/* Gradient overlay on image */
.modal-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent 60%, #111111 100%),
                linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 50%);
}

/* Content area — right column */
.modal-content-area {
    position: relative;
    z-index: 1;
    grid-column: 2;
    grid-row: 1;
    padding: 3.5rem 3rem 3.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    overflow-y: auto;
}

/* Eyebrow row */
.modal-eyebrow {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.modal-label {
    font-family: var(--font-mono, monospace);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent, #facc15);
    background: rgba(250, 204, 21, 0.1);
    padding: 0.25rem 0.7rem;
    border: 1px solid rgba(250, 204, 21, 0.25);
}

.modal-service-num {
    font-family: var(--font-mono, monospace);
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(255,255,255,0.25);
    letter-spacing: 0.05em;
}

/* Title */
.modal-title-big {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin: 0;
}

/* Description */
.modal-desc-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.6);
    flex: 1;
}

.modal-desc-text ul {
    list-style: none;
    margin-top: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.modal-desc-text li {
    padding-left: 1.4rem;
    position: relative;
    color: rgba(255,255,255,0.7);
    font-size: 0.92rem;
}

.modal-desc-text li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent, #facc15);
    font-weight: 700;
}

/* CTA button */
.modal-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    align-self: flex-start;
    background: var(--accent, #facc15);
    color: #000000;
    padding: 0.95rem 1.75rem;
    font-family: var(--font-mono, monospace);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    border: none;
    transition: background 0.2s, transform 0.2s;
}

.modal-cta-btn:hover {
    background: #ffffff;
    transform: translateX(4px);
}

/* Divider line accent */
.modal-content-area::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3rem;
    bottom: 3rem;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--accent, #facc15), transparent);
    opacity: 0.4;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    /* Layout overrides for mobile */
    .main-header {
        background-color: var(--bg-main) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border-bottom: var(--border-thin) !important;
    }
    .main-header .logo-text {
        color: var(--text-main) !important;
    }
    .menu-toggle-btn {
        display: none !important;
    }
    .nav-desktop-links {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 0.4rem;
    }
    .nav-desktop-links .nav-link {
        padding: 0.3rem 0.5rem;
        font-size: 0.85rem;
        color: var(--text-main) !important;
    }
    .nav-desktop-links .btn-primary {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.85rem;
    }
    .nav-desktop-links > :nth-child(3),
    .nav-desktop-links > :nth-child(4),
    .nav-desktop-links > :nth-child(5) {
        display: none !important;
    }
    .hero-bg {
        background-attachment: scroll !important;
        background-position: center center !important;
    }
    .hero {
        padding: 8rem 5% 4rem 5%;
    }
    .hero-title {
        font-size: clamp(2.5rem, 8vw, 3.5rem);
    }
    .about {
        grid-template-columns: 1fr;
        padding: 4rem 5%;
        gap: 2.5rem;
    }
    .about-text {
        text-align: center;
    }
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .services {
        padding: 4rem 5%;
    }
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .bento-card.wide, 
    .bento-card.tall {
        grid-column: span 1;
        grid-row: span 1;
    }
    .bento-card.tall .bento-img-wrapper {
        min-height: 220px;
    }
    .bento-content {
        text-align: center;
        align-items: center;
    }
    .service-icon {
        align-self: center;
        margin-top: 1.5rem;
    }
    .why-us {
        grid-template-columns: 1fr;
        padding: 4rem 5%;
        gap: 3rem;
    }
    .why-us-info {
        position: relative;
        top: 0;
        text-align: center;
    }
    .why-card {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }
    .why-icon {
        margin: 0 auto;
    }
    .gallery-section {
        padding: 4rem 0;
    }
    .gallery-section .section-header h2 {
        text-align: center;
    }
    .contact {
        padding: 4rem 5%;
    }
    .contact-card {
        padding: 2.5rem 1.5rem;
    }
    .contact-card h2 {
        font-size: clamp(2rem, 8vw, 2.5rem);
        margin-bottom: 1rem;
    }
    .contact-lead {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    .contact-phone-btn {
        padding: 1rem;
        font-size: 1.1rem;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.8rem;
    }
}
@media (max-width: 820px) {
    .modal-overlay {
        align-items: flex-end;
    }

    .modal-panel {
        grid-template-columns: 1fr;
        grid-template-rows: 240px 1fr;
        max-height: 90vh;
        border-radius: 0;
    }

    .modal-img-strip {
        grid-column: 1;
        grid-row: 1;
        min-height: 240px;
    }

    .modal-img-overlay {
        background: linear-gradient(to bottom, transparent 40%, #111111 100%);
    }

    .modal-content-area {
        grid-column: 1;
        grid-row: 2;
        padding: 2rem 1.5rem 2.5rem;
    }

    .modal-content-area::before {
        display: none;
    }

    .modal-watermark {
        font-size: clamp(6rem, 30vw, 10rem);
    }
}

@media (max-width: 480px) {
    .modal-title-big {
        font-size: 1.8rem;
    }

    .modal-cta-btn {
        width: 100%;
        justify-content: center;
    }
}


/* ============================================================
   FOOTER
   ============================================================ */

.custom-footer {
    background: #0a0a0a;
    color: #a1a1aa;
    border-top: 1px solid #1f1f1f;
    padding: 4rem 0 0;
    font-family: var(--font-body, 'Inter', sans-serif);
}

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

/* ---- Main grid: brand col + links grid ---- */
.footer-grid-layout {
    display: grid;
    grid-template-columns: 1.4fr 2fr;
    gap: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #1f1f1f;
}

/* ---- Brand column ---- */
.footer-brand-column {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-logo-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.footer-logo-svg {
    width: 28px;
    height: 28px;
    color: var(--accent, #facc15);
    flex-shrink: 0;
}

.footer-brand-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.footer-brand-desc {
    font-size: 0.88rem;
    line-height: 1.65;
    color: #71717a;
    max-width: 280px;
}

/* Social icons */
.footer-social-list {
    list-style: none;
    display: flex;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.footer-social-list a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #27272a;
    color: #71717a;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.footer-social-list a:hover {
    border-color: var(--accent, #facc15);
    color: var(--accent, #facc15);
    background: rgba(250, 204, 21, 0.07);
}

.social-icon {
    width: 16px;
    height: 16px;
}

/* ---- Links grid (3 columns inside right half) ---- */
.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.column-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #ffffff;
    margin-bottom: 1.2rem;
}

.links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.links-list a {
    font-size: 0.9rem;
    color: #71717a;
    text-decoration: none;
    transition: color 0.2s;
}

.links-list a:hover {
    color: #ffffff;
}

/* Live chat / Pronto intervento */
.live-chat-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #71717a;
    text-decoration: none;
    transition: color 0.2s;
}

.live-chat-link:hover {
    color: #ffffff;
}

/* Pulse indicator */
.pulse-indicator {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 10px;
    height: 10px;
    flex-shrink: 0;
}

.pulse-ping {
    position: absolute;
    display: inline-flex;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #22c55e;
    opacity: 0.75;
    animation: pulse-ping 1.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.pulse-dot-green {
    position: relative;
    display: inline-flex;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
}

@keyframes pulse-ping {
    0%        { transform: scale(1);   opacity: 0.75; }
    75%, 100% { transform: scale(2);   opacity: 0; }
}

/* Contact items */
.contact-link-item {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: #71717a;
    text-decoration: none;
    transition: color 0.2s;
}

.contact-link-item:hover {
    color: #ffffff;
}

.contact-link-item.no-hover {
    cursor: default;
}

.contact-link-item.no-hover:hover {
    color: #71717a;
}

.contact-icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    color: var(--accent, #facc15);
}

.footer-address {
    font-style: normal;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* ---- Bottom bar ---- */
.footer-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0;
    gap: 1rem;
}

.copyright-text,
.vat-text {
    font-size: 0.82rem;
    color: #3f3f46;
}

/* ---- Footer responsive ---- */
@media (max-width: 900px) {
    .footer-grid-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-brand-desc {
        max-width: 100%;
    }

    .footer-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .footer-links-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }
}
