/* =========================================
   HERO SECTION (shortWallpaper)
   ========================================= */
.shortWallpaper {
    position: relative;
    height: 100vh;
    /* Tutto lo schermo */
    width: 100%;
    background: url('../immagini/sfondi/1.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    /* Effetto Parallax */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: var(--nav-height);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
    z-index: 1;
}

.banner-container {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--main-white);
    padding: 0 20px;
}

.text-banner {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.left-text {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 7vw, 7rem);
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: -1px;
    color: var(--main-white);
    animation: slide-in-left 0.8s ease-out forwards;
}

.right-text {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 7vw, 7rem);
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: -1px;
    color: var(--main-accent);
    animation: slide-in-right 0.8s ease-out forwards 0.2s;
    animation-fill-mode: both;
}

@keyframes slide-in-left {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slide-in-right {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* =========================================
   TITOLI E PULSANTI CONDIVISI
   ========================================= */
.section-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--main-black);
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 20px;
}

.pre-title {
    font-family: var(--font-heading);
    color: #999;
    letter-spacing: 3px;
    font-size: 0.9rem;
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
}

.separator-blue {
    width: 80px;
    height: 5px;
    background: var(--main-accent);
    margin-bottom: 30px;
}

.separator-center-blue {
    width: 80px;
    height: 5px;
    background: var(--main-accent);
    margin: 0 auto 30px auto;
}

/* Bottone Tecnico */
.btn-tech {
    display: inline-block;
    padding: 12px 30px;
    border: 1px solid var(--main-black);
    color: var(--main-black);
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s;
    background: transparent;
}

.btn-tech:hover {
    background: var(--main-black);
    color: var(--main-white);
}

/* =========================================
   ABOUT US (Layout Moderno)
   ========================================= */
.about-us {
    background: linear-gradient(to bottom, rgba(0, 102, 204, 0.1), rgba(255, 255, 255, 0.8));
    padding: 120px 20px;
}

.about-us-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-us-text h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 25px;
    color: var(--main-black);
    text-transform: uppercase;
}

.about-us-text div {
    width: 60px;
    height: 4px;
    background: var(--main-accent);
    margin-bottom: 30px;
}

.about-us-text p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 40px;
    text-align: justify;
}

.about-us-text a {
    display: inline-block;
    padding: 12px 30px;
    border: 1px solid var(--main-black);
    color: var(--main-black);
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s;
    background: transparent;
    font-size: 14px;
}

.about-us-text a:hover {
    background: var(--main-black);
    color: var(--main-white);
}

.about-us-image {
    width: 100%;
    display: block;
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* =========================================
   CERTIFICATI (Industrial Dark)
   ========================================= */
.certificati {
    background: #151515;
    padding: 140px 20px;
    color: white;
    text-align: center;
    background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../immagini/sfondi/2.png');
    background-attachment: fixed;
    background-size: cover;
}

.certificati-content h2 {
    font-family: var(--font-heading);
    font-size: 5rem;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.certificati-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.certificati-content a {
    display: inline-block;
    margin-top: 30px;
    padding: 15px 40px;
    border: 1px solid white;
    color: white;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: 0.3s;
    background: transparent;
    font-weight: 500;
}

.certificati-content a:hover {
    background: var(--main-accent);
    border-color: var(--main-accent);
}

/* =========================================
   SERVIZI (Griglia Moderna)
   ========================================= */
.servizi {
    background: #fff;
    padding: 120px 20px;
}

.servizi h2 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--main-black);
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 20px;
    text-align: center;
}

.servizi-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 60px;
}

.cardServizio {
    display: block;
    position: relative;
    border: 1px solid #eee;
    background: #fff;
    overflow: hidden;
    transition: all 0.4s ease;
}

.containerImmagine {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.containerImmagine img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 102, 204, 0.8);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 2;
}

.containerTitolo {
    padding: 30px;
    position: relative;
}

.titolo {
    font-family: var(--font-heading);
    color: var(--main-black);
    font-size: 1.2rem;
    margin: 0;
    font-weight: 600;
    text-transform: uppercase;
}

/* Hover Effects Card */
.cardServizio:hover .card-overlay {
    opacity: 0.2;
}

.cardServizio:hover .containerImmagine img {
    transform: scale(1.1);
}

.cardServizio:hover .titolo {
    color: var(--main-accent);
}

/* Link "Scopri di più" Servizi */
.servizi>a {
    display: block;
    text-align: center;
    margin-top: 60px;
    padding: 15px 40px;
    border: 2px solid var(--main-accent);
    color: var(--main-accent);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    transition: all 0.3s ease;
    background: transparent;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    text-decoration: none;
}

.servizi>a:hover {
    background: var(--main-accent);
    color: white;
}

MEDIA QUERIES (Mobile Fixes)=========================================*/ @media (max-width: 991px) {
    .about-us-content {
        grid-template-columns: 1fr;
    }

    .about-us-text h2 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .left-text,
    .right-text {
        font-size: 3rem;
    }
}