/*
 * Data System Automazioni S.r.l.
 * Copyright © 2026 Data System Automazioni S.r.l.
 * All rights reserved.
 */


html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* =========================================
DEBUG
========================================= */
/*
.container {
    border: 1px solid red;
}

*/


/* =========================================
   DATA SYSTEM AUTOMAZIONI
   ========================================= */


@font-face {
    font-family: "Broadway BT";
    src: url("/fonts/BroadwayBT-Regular.woff2") format("woff2");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --dsa-blue: #00B0F0;
    --dsa-dark: #07131D;
    --dsa-dark-2: #0B1822;
    --dsa-text: #E8EDF1;
    --dsa-muted: #BFC9D1;
}


/* =========================================
   PAGINA
   ========================================= */

html,
body {
    background-color: var(--dsa-dark);
    color: var(--dsa-text);
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
}

main {
    margin: 0;
    padding: 0;
    background-color: var(--dsa-dark);
}


/* =========================================
   HEADER
   ========================================= */

.site-header {
    height: 90px;
    background: var(--dsa-dark);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header-inner {
    height: 100%;
    max-width: 1500px;
    margin: auto;
    padding: 0 45px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* =========================================
   SWITCHER
   ========================================= */

.language-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
}

    .language-switcher a {
        display: flex;
        align-items: center;
        opacity: 0.5;
        text-decoration: none;
    }

        .language-switcher a.active {
            opacity: 1;
        }

    .language-switcher img {
        width: 22px;
        height: 15px;
        display: block;
    }

/* =========================================
   LOGO
   ========================================= */

.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--dsa-blue);
}

.logo-image {
    width: 100px;
    height: auto;
    display: block;
}

.logo-dsa {
    width: 65px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    font-weight: bold;
    border: 3px solid var(--dsa-blue);
    border-radius: 50%;
}

.logo-text {
    margin-left: 15px;
    font-family: "Broadway BT", serif;
    font-size: 24px;
    line-height: 0.95;
}

    .logo-text span {
        font-size: 17px;
    }


/* =========================================
   NAVIGAZIONE
   ========================================= */

.site-nav {
    display: flex;
    gap: 38px;
}

    .site-nav a {
        position: relative;
        color: var(--dsa-text);
        text-decoration: none;
        font-size: 15px;
        font-weight: 600;
        letter-spacing: 0.5px;
        padding: 34px 0;
        transition: color 0.3s ease;
    }

        .site-nav a::after {
            content: "";
            position: absolute;
            left: 0;
            right: 0;
            bottom: 22px;
            height: 3px;
            background: var(--dsa-blue);
            transform: scaleX(0);
            transition: transform 0.3s ease;
        }

        .site-nav a:hover {
            color: var(--dsa-blue);
        }

            .site-nav a:hover::after {
                transform: scaleX(1);
            }


/* =========================================
   HERO
   ========================================= */

.hero {
    position: relative;
    min-height: 800px;
    display: flex;
    align-items: center;
    padding: 60px 8%;
    color: white;
    overflow: hidden;
    background: #07131D;
    scroll-margin-top: 90px;
}


    /* =========================================
   FOTO HERO
   ========================================= */

    .hero::before {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        height: 100%;
        width: 55%;
        background-image: url("/images/wide_close_up_industrial_factory_automation_scene.png");
        background-size: auto 100%;
        background-position: right center;
        background-repeat: no-repeat;
        -webkit-mask-image: linear-gradient(to right, transparent 0%, black 30%, black 90%, transparent 100% ), linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100% );
        -webkit-mask-composite: source-in;
        mask-image: linear-gradient(to right, transparent 0%, black 30%, black 90%, transparent 100% ), linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100% );
        mask-composite: intersect;
        z-index: 0;
    }


    /* =========================================
   LIVELLO SOPRA LA FOTO
   ========================================= */

    .hero::after {
        content: "";
        position: absolute;
        inset: 0;
        background: transparent;
        z-index: 1;
    }


/* =========================================
   CONTENUTO HERO
   ========================================= */

.hero-content {
    max-width: 850px;
    position: relative;
    z-index: 2;
    margin-left: -60px;
}


/* =========================================
   TITOLO HERO
   ========================================= */

.hero h1 {
    margin: 0 0 30px 0;
    font-size: clamp(3rem, 5vw, 5rem);
    line-height: 1.05;
    font-weight: 600;
}

    .hero h1 span {
        display: inline-block;
    }

    /* =========================================
   ANIMAZIONE TITOLO HERO
   ========================================= */

    .hero h1 span {
        opacity: 0;
        transform: translateX(-80px);
    }

        .hero h1 span:first-child {
            animation: heroTitleFromLeft 1.0s ease-out 0.1s forwards;
        }

        .hero h1 span:last-child {
            animation: heroTitleFromLeft 1.0s ease-out 1.5s forwards;
        }

@keyframes heroTitleFromLeft {

    from {
        opacity: 0;
        transform: translateX(-80px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}



/* =========================================
   TESTO HERO
   ========================================= */

.hero p {
    max-width: 650px;
    font-size: 1.35rem;
    line-height: 1.6;
    color: var(--dsa-muted);
    margin-bottom: 40px;
    opacity: 0;
    transform: translateX(-50px);
    animation: heroTextFromLeft 1.0s ease-out 2.5s forwards;
}

@keyframes heroTextFromLeft {

    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}
/* =========================================
   SEZIONI
   ========================================= */

.section {
    padding: 100px 0;
    background: var(--dsa-dark);
    color: var(--dsa-text);
}

    .section h2 {
        margin-bottom: 25px;
        color: white;
        font-weight: 600;
    }

    .section p {
        max-width: 850px;
        color: var(--dsa-muted);
        line-height: 1.7;
    }

/* =========================================
   COMPETENZE
   ========================================= */

.skills {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.skill {
    padding: 30px;
    background: var(--dsa-dark-2);
    border-left: 4px solid var(--dsa-blue);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

    .skill:hover {
        transform: translateY(-5px);
    }

    .skill h3 {
        margin-bottom: 15px;
        color: var(--dsa-blue);
    }

    .skill p {
        margin: 0;
    }

.skill-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 18px;
}

/* =========================================
   PRIVACY
   ========================================= */


.privacy-content p {
    max-width: none;
}

/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 900px) {

    .site-header {
        height: auto;
    }
  
    .site-header-inner {
        padding: 2px;
        flex-direction: column;
        gap: 2px;
    }
    .site-nav {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }

        .site-nav a {
            padding: 5px 0;
        }

            .site-nav a::after {
                bottom: 0;
            }

    .hero {
        min-height: 400px;
        padding: 20px 20px;
    }

    .hero-content {
        max-width: 100%;
        margin-left: 0;
    }

    .hero h1 {
        font-size: 2.7rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .skills {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 70px 20px;
    }

    .footer-web {
        white-space: nowrap;
    }
}
