*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: 'Raleway', sans-serif;
}


/* =========================================================
   MENU
   ========================================================= */

.menu-icon {
    display: none;
    color: #10243e;
}

main {
    background: #f6f8fa;
    border-top: 1px solid #dce3ea;
}


/* =========================================================
   CONTAINER PRINCIPALE
   ========================================================= */

.container-companys {
    display: flex;
    flex-direction: column;
    width: 80%;
    margin: 0 auto;
    padding: 2rem;
}


/* =========================================================
   BREADCRUMB
   ========================================================= */

.pages {
    display: flex;
    flex-direction: row;
    margin-bottom: 2rem;
    gap: 0.3rem;
    align-items: center;
}

p.namecompany,
p.pagecompany {
    font-size: 0.9rem;
    color: #9ca3af;
}

i.fa-solid.fa-angle-right {
    color: #9ca3af;
    font-size: 0.7rem;
}


/* =========================================================
   HERO / IMMAGINE
   ========================================================= */

.container-img {
    width: 100%;
}

.imgpage {
    background:
        linear-gradient(
            rgba(30,58,95,0.6),
            rgba(30,58,95,0.6)
        ),
        url(/img/company2.png);

    background-position: center;
    min-height: 480px;
    background-repeat: no-repeat;
    background-size: auto;

    position: relative;
}


/* =========================================================
   TESTO HERO
   ========================================================= */

.texts {
    width: 50%;
    position: relative;
    top: 13rem;
    left: 3rem;
}

.hero-label {
    display: block;

    color: #8eb5ff;

    font-size: 0.8rem;
    font-weight: bold;

    letter-spacing: 3px;

    margin-bottom: 0.8rem;
}

h3.textpage {
    color: white;
    position: relative;
    font-size: 2.5rem;
    letter-spacing: 2px;
    font-family: "DM Serif Display", serif;
    font-style: italic;

    margin: 0;
    line-height: 1.2;
}

.hero-description {
    color: rgba(255,255,255,0.9);

    font-family: 'Raleway', sans-serif;

    font-size: 1rem;
    line-height: 1.7;

    max-width: 600px;

    margin-top: 1rem;
}


/* =========================================================
   CONTAINER CONTENUTI
   ========================================================= */

.container-company {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-label {
    display: inline-block;
    color: #ffffff;
    background: rgba(7, 21, 34, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.28);
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 0.8rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}


/* =========================================================
   SEZIONI
   ========================================================= */

.container-company section {
    width: 100%;
    margin-bottom: 3rem;
}


/* =========================================================
   TITOLI
   ========================================================= */

.title {
    color: #0b3c5d;

    font-family: "DM Serif Display", serif;

    font-size: 2.3rem;
    font-weight: 400;

    letter-spacing: 1px;

    line-height: 1.2;

    margin-top: 0;
    margin-bottom: 1.5rem;

    position: relative;

    padding-left: 1rem;
}

.title::before {
    content: "";

    position: absolute;

    left: 0;
    top: 4px;

    width: 4px;
    height: calc(100% - 8px);

    background: #1d58ff;

    border-radius: 5px;
}


/* =========================================================
   TESTO
   ========================================================= */

.subtextpage {
    position: relative;
    width: 80%;
    margin: 0 auto;
    top: 2rem;
}

p.description {
    font-size: 1rem;
    font-family: 'Raleway', sans-serif;
    line-height: 1.7;
    color: #444;
    letter-spacing: 1px;

    overflow-wrap: break-word;
}

p.description strong {
    color: #8eb5ff;
    font-weight: 800;
}


/* =========================================================
   LISTE
   ========================================================= */

.subtextpage ul {
    padding-left: 1.5rem;

    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.subtextpage li {
    color: #444;

    font-family: 'Raleway', sans-serif;

    font-size: 1rem;

    line-height: 1.7;

    margin-bottom: 0.7rem;

    padding-left: 0.3rem;
}

.subtextpage li::marker {
    color: #1d58ff;
}


/* =========================================================
   NUOVA STRUTTURA "CHI SIAMO"
   ========================================================= */

.about-story-content {
    display: grid;

    grid-template-columns: 1.4fr 1fr;

    gap: 4rem;

    align-items: center;
}


/* Evitiamo che il vecchio top:2rem
   influenzi questa nuova struttura */

.about-story-content .subtextpage {
    width: 100%;
    margin: 0;
    top: 0;
}


/* =========================================================
   TITOLI DI SEZIONE
   ========================================================= */

.about-section-title {
    margin-bottom: 2rem;
}

.about-section-title > span {
    display: block;

    color: #1d58ff;

    font-size: 0.8rem;

    font-weight: bold;

    letter-spacing: 3px;

    margin-bottom: 0.7rem;
}

.about-section-title .title {
    margin-bottom: 0;
}


/* =========================================================
   NUMERI
   ========================================================= */

.about-numbers {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 1rem;
}

.about-number {
    min-height: 130px;

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    padding: 1.5rem;

    background: #eeeee2;

    border-radius: 15px;

    text-align: center;
}

.about-number:last-child {
    grid-column: span 2;
}

.about-number strong {
    display: block;

    color: #1d58ff;

    font-size: 2.5rem;

    line-height: 1;
}

.about-number span {
    margin-top: 0.5rem;

    color: #555;

    font-size: 0.9rem;

    letter-spacing: 0.5px;
}


/* =========================================================
   SERVIZI
   ========================================================= */

.about-services {
    width: 100%;

    padding: 4rem 3rem;

    background: #f7f7f2;

    border-radius: 5px;
}

.about-services .subtextpage {
    width: 100%;
    margin: 0;
    top: 0;
}

.services-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 1.5rem;

    margin-top: 2rem;
}

.service-card {
    display: flex;
    flex-direction: column;

    padding: 2rem;

    background: white;

    border-radius: 18px;

    box-shadow: 0 5px 20px rgba(0,0,0,0.06);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.service-card:hover {
    transform: translateY(-5px);

    box-shadow: 0 10px 25px rgba(0,0,0,0.10);
}

.service-icon {
    width: 50px;
    height: 50px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #0b3c5d;

    color: white;

    border-radius: 12px;

    font-size: 1.2rem;
}

.service-card h3 {
    margin-top: 1.3rem;

    margin-bottom: 0.5rem;

    color: #0b3c5d;

    font-size: 1.4rem;
}

.service-card p {
    margin: 0 0 1.2rem;

    color: #666;

    font-size: 0.95rem;

    line-height: 1.7;
}

.service-card a {
    margin-top: auto;

    color: #1d58ff;

    font-weight: bold;

    text-decoration: none;
}

.service-card a i {
    margin-left: 0.3rem;

    font-size: 0.8rem;
}


/* =========================================================
   ASSISTENZA
   ========================================================= */

.about-assistance {
    width: 100%;

    padding: 4rem 3rem;

    background: #eeeee2;

    border-radius: 5px;
}

.assistance-content {
    display: grid;

    grid-template-columns: 100px 1fr;

    gap: 2.5rem;

    align-items: start;
}

.assistance-icon {
    width: 90px;
    height: 90px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #0b3c5d;

    color: white;

    border-radius: 22px;

    font-size: 2rem;
}

.about-assistance .subtextpage {
    width: 100%;

    margin: 0;

    top: 0;
}

.about-assistance .subtextpage > span {
    display: block;

    color: #1d58ff;

    font-size: 0.8rem;

    font-weight: bold;

    letter-spacing: 3px;

    margin-bottom: 0.7rem;
}


/* =========================================================
   BUTTON
   ========================================================= */

.about-btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 0.5rem;

    margin-top: 1rem;

    padding: 0.9rem 1.4rem;

    background: white;

    color: #0b3c5d;

    border-radius: 10px;

    font-weight: bold;

    text-decoration: none;

    transition: 0.25s ease;
}

.about-btn:hover {
    transform: translateY(-2px);

    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.about-btn.dark {
    background: #0b3c5d;

    color: white;
}


/* =========================================================
   MARCHI
   ========================================================= */

.about-brands {
    padding: 3rem 0;
}

.about-brands .subtextpage {
    width: 100%;

    margin: 0;

    top: 0;
}

.brands-list {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 1rem;

    margin-top: 2rem;
}

.brand {
    min-height: 110px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: white;

    border: 1px solid #ddd;

    border-radius: 15px;

    color: #555;

    font-size: 1.2rem;

    font-weight: bold;

    letter-spacing: 2px;

    transition: 0.25s ease;
}

.brand:hover {
    color: #1d58ff;

    border-color: #1d58ff;

    transform: translateY(-3px);
}

.brands-description {
    max-width: 900px;

    margin: 2rem auto 0;
}


/* =========================================================
   CLIENTI
   ========================================================= */

.about-target {
    width: 100%;

    padding: 4rem 3rem;

    background: #f7f7f2;

    border-radius: 5px;
}

.about-target .subtextpage {
    width: 100%;

    margin: 0;

    top: 0;
}

.target-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 1rem;

    margin-top: 2rem;
}

.target-card {
    min-height: 120px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 0.8rem;

    background: white;

    border-radius: 15px;

    color: #0b3c5d;

    font-weight: bold;

    text-align: center;

    transition: 0.25s ease;
}

.target-card i {
    color: #1d58ff;

    font-size: 1.7rem;
}

.target-card:hover {
    transform: translateY(-3px);

    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}


/* =========================================================
   NUOVO CAPITOLO / EVOLUZIONE
   ========================================================= */

.about-opening {
    width: 100%;

    padding: 5rem 4rem;

    background:
        linear-gradient(
            135deg,
            #0b3c5d,
            #123f61
        );

    border-radius: 5px;
}

.opening-content {
    max-width: 850px;

    margin: 0 auto;
}

.about-opening .opening-content > span {
    display: block;

    color: #8eb5ff;

    font-size: 0.8rem;

    font-weight: bold;

    letter-spacing: 3px;

    margin-bottom: 0.8rem;
}

.about-opening .title {
    color: white;
}

.about-opening .title::before {
    background: #8eb5ff;
}

.about-opening .description {
    color: rgba(255,255,255,0.85);
}

.opening-date {
    display: inline-flex;

    align-items: center;

    gap: 1rem;

    margin-top: 1.5rem;

    padding: 1rem 1.4rem;

    border: 1px solid rgba(255,255,255,0.2);

    border-radius: 12px;
}

.opening-date i {
    color: white;

    font-size: 1.5rem;
}

.opening-date span,
.opening-date strong {
    display: block;
}

.opening-date span {
    color: #8eb5ff;

    font-size: 0.7rem;

    letter-spacing: 2px;
}

.opening-date strong {
    margin-top: 0.2rem;

    color: white;
}


/* =========================================================
   MISSIONE
   ========================================================= */

.about-mission {
    padding: 3rem 0;
}

.about-mission .subtextpage {
    width: 100%;

    margin: 0;

    top: 0;
}

.mission-content {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 1.5rem;

    margin-top: 2.5rem;
}

.mission-card {
    padding: 2rem;

    background: #eeeee2;

    border-radius: 15px;

    text-align: center;
}

.mission-card i {
    color: #1d58ff;

    font-size: 2rem;
}

.mission-card h3 {
    margin: 1rem 0 0.7rem;

    color: #0b3c5d;

    font-size: 1.3rem;
}

.mission-card p {
    margin: 0;

    color: #555;

    font-size: 0.95rem;

    line-height: 1.7;
}


/* =========================================================
   CONTACT
   ========================================================= */
.contact { 
    display: flex; 
    flex-direction: row; 
    width: 100%; 
    min-height: 220px; 
    margin-top: 2rem; 
    background: linear-gradient( rgba(255,255,255,0.82), rgba(255,255,255,0.82) ), 
        url(/img/company3.jpg); background-size: cover; background-position: center; border-radius: 0; 
} 
    
.cont-texts { 
    display: flex; 
    flex-direction: column; 
    justify-content: center;
    width: 60%; 
    margin: 0; 
    padding: 2rem 3rem; 
} 
span.txt { 
    color: #0045ff; 
    letter-spacing: 1px; 
    font-size: 1.6rem; 
    margin: 0 0 1rem; 
    position: relative; 
    left: 0; 
    font-family: "Playwrite NZ Basic"; 
} 

span.subtxt { 
    margin: 0; 
    position: relative; 
    left: 0; 
    letter-spacing: 1px; 
    font-family: 'DM Serif Display', serif; 
    font-size: 1.05rem; 
    line-height: 1.6; 
    color: #333; 
} 

.link-contact { 
    width: 40%; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    position: relative; 
    top: 0; 
}

a.acontact { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    gap: 0.6rem; 
    padding: 1rem 1.5rem; 
    font-size: 1.1rem; 
    background: #0532aa; 
    color: white; 
    border-radius: 1rem; 
    font-weight: bold; 
    text-transform: uppercase; 
    text-decoration: none; 
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease; 
} 

a.acontact:hover { 
    background: #1d58ff; 
    transform: translateY(-3px); 
    box-shadow: 0 8px 20px rgba(5,50,170,0.25); 
}


/* =========================================================
   TABLET
   ========================================================= */

@media (min-width: 768px) and (max-width: 1024px) {

    .container-companys {
        width: 90%;
    }


    .imgpage {
        min-height: 480px;

        background-size: cover;
    }


    .texts {
        width: 65%;

        left: 2rem;

        top: 20rem;
    }


    h3.textpage {
        font-size: 2.3rem;
    }


    p.description {
        font-size: 1.2rem;
    }


    /* Chi siamo */

    .about-story-content {
        grid-template-columns: 1fr;

        gap: 2rem;
    }


    /* Servizi */

    .services-grid {
        grid-template-columns: 1fr 1fr;
    }


    /* Marchi */

    .brands-list {
        grid-template-columns: 1fr 1fr;
    }


    /* Clienti */

    .target-grid {
        grid-template-columns: 1fr 1fr;
    }


    /* Missione */

    .mission-content {
        grid-template-columns: 1fr 1fr;
    }


    /* Assistenza */

    .about-assistance {
        padding: 3rem 2rem;
    }


    /* Evoluzione */

    .about-opening {
        padding: 4rem 2.5rem;
    }


    /* Contact */

    .contact { 
        min-height: 220px; 
    } 
    
    .cont-texts { 
        width: 60%; 
        padding: 2rem; 
    } 
    
    .link-contact { 
        width: 40%; 
    } 
    
    span.txt { 
        font-size: 1.4rem; 
    } 
    
    span.subtxt { 
        font-size: 1rem; 
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .container-companys {
        width: 100%;

        padding: 1.5rem;
    }


    /* Hero */

    .imgpage {
        min-height: 300px;

        background-size: cover;
    }


    .texts {
        width: 90%;

        top: 0;

        left: 1.5rem;

        padding-top: 10rem;
    }


    .hero-label {
        font-size: 0.7rem;

        letter-spacing: 2px;
    }


    h3.textpage {
        font-size: 1.8rem;
    }


    .hero-description {
        font-size: 0.9rem;
    }


    /* Titoli */

    .title {
        font-size: 1.9rem;
    }


    /* Testo */

    .subtextpage {
        width: 100%;

        top: 0;
    }


    p.description {
        font-size: 0.95rem;

        line-height: 1.8;
    }


    /* Chi siamo */

    .about-story-content {
        grid-template-columns: 1fr;

        gap: 2rem;
    }


    .about-numbers {
        grid-template-columns: 1fr 1fr;
    }


    /* Servizi */

    .about-services {
        padding: 3rem 1.5rem;
    }


    .services-grid {
        grid-template-columns: 1fr;
    }


    /* Assistenza */

    .about-assistance {
        padding: 3rem 1.5rem;
    }


    .assistance-content {
        grid-template-columns: 1fr;

        gap: 1.5rem;
    }


    .assistance-icon {
        width: 70px;
        height: 70px;

        font-size: 1.7rem;
    }


    /* Marchi */

    .brands-list {
        grid-template-columns: 1fr 1fr;
    }


    /* Clienti */

    .about-target {
        padding: 3rem 1.5rem;
    }


    .target-grid {
        grid-template-columns: 1fr 1fr;
    }


    /* Evoluzione */

    .about-opening {
        padding: 4rem 1.5rem;
    }


    /* Missione */

    .mission-content {
        grid-template-columns: 1fr;
    }


    /* Contact */

    .contact { 
        min-height: auto; 
        flex-direction: column; 
        padding: 2rem 1.5rem; 
    } 
    
    .cont-texts { 
        width: 100%; 
        margin: 0; 
        padding: 0; 
    } 
    
    span.txt { 
        width: 100%; 
        margin: 0 0 1rem; 
        left: 0; 
        font-size: 1.35rem; 
        line-height: 1.4; 
    } 
    
    span.subtxt { 
        width: 100%; 
        margin: 0; 
        left: 0; 
        font-size: 1rem; 
        line-height: 1.6; 
    } 
    
    .link-contact { 
        width: 100%; 
        justify-content: flex-start; 
        align-items: center; 
        top: 0; 
        right: auto; 
        margin-top: 1.5rem; 
    } 
    
    a.acontact { 
        padding: 0.9rem 1.3rem; 
        font-size: 1rem; 
    }

}