﻿/* Layout base */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

body {
    font-family: 'Segoe UI', sans-serif;
    color: #333;
    background-color: #f9fafb;
}

/* Contenitore principale del layout */
.page-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Contenuto centrale che cresce per riempire lo spazio */
.main-content {
    flex: 1;
    padding: 1rem;
}

/* Navbar */
header, .navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
}

.navbar-brand {
    font-size: 1.5rem;
}

/* Footer statico in fondo alla pagina */
footer.footer {
    background: #111;
    color: #ddd;
    padding: 1rem 0;
    margin-top: auto; /* <-- tiene il footer in basso */
    text-align: center;
    font-size: 0.85rem;
}

.footer small {
    color: #aaa;
}

/* Hero section */



.hero {
    background: linear-gradient(to right, rgba(0, 0, 50, 0.8), rgba(0, 80, 150, 0.7)), url('../images/ServerImg.jpg') center/cover no-repeat;
    background-color: #001f3f;
    color: #fff;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero h1 {
    font-weight: 700;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hero *:focus,
.hero *:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

/* Titoli di sezione */
section h2 {
    font-weight: 700;
    color: #70777d;
}

/* Card servizi e hover */
.card {
    border-radius: 12px;
    transition: all 0.3s ease;
}

    .card:hover {
        transform: translateY(-6px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    }

/* Bottone outline */
.btn-outline-primary {
    border-color: #007bff;
    color: #007bff;
}

    .btn-outline-primary:hover {
        background-color: #007bff;
        color: #fff;
    }

/* Mappa */
.ratio iframe {
    border-radius: 10px;
}

/* CTA finale */
.cta {
    background: linear-gradient(135deg, #0056b3 0%, #007bff 100%);
}

    .cta h2, .cta p {
        color: #fff;
    }

    .cta .btn-light {
        font-weight: 600;
    }

/* Sezione "Chi siamo" */
.about-section p {
    font-size: 1.05rem; /* stessa dimensione per entrambi i paragrafi */
    text-align: justify; /* testo giustificato */
    line-height: 1.6; /* migliora la leggibilità */
    margin-bottom: 1rem;
}
.logo-img {
    height: 52px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}


/*----------------------------*/


/* --- Personalizzazione colore principale --- */
:root {
    --bs-primary: #70777d;
    --bs-primary-rgb: 112, 119, 125; /* equivalente RGB */
}

.text-primary {
    --bs-text-opacity: 1;
    color: rgba(var(--bs-primary-rgb), var(--bs-text-opacity)) !important;
}

/* Pulsante principale */
.btn-primary {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
}

    .btn-primary:hover,
    .btn-primary:focus {
        background-color: #5f656a !important;
        border-color: #5f656a !important;
    }

/* Pulsante outline */
.btn-outline-primary {
    color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
}

    .btn-outline-primary:hover,
    .btn-outline-primary:focus {
        background-color: var(--bs-primary) !important;
        color: #fff !important;
    }

/* Link attivi nel NavMenu */
.nav-link.active,
.nav-link:focus,
.nav-link:hover {
    color: var(--bs-primary) !important;
}

/*-----------------------------*/
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #f1f1f1;
    color: #333;
    text-align: center;
    padding: 10px 15px;
    font-size: 0.9rem;
    border-top: 1px solid #ccc;
    z-index: 2000;
}

    .cookie-banner a {
        color: #555;
        text-decoration: underline;
    }

    .cookie-banner button {
        margin-left: 10px;
    }

/*---------------------*/
/* Icona LinkedIn nel NavMenu */
.linkedin-icon i {
    color: #70777d;
    transition: color 0.3s ease;
}

.linkedin-icon i:hover {
    color: #0a66c2; /* blu ufficiale LinkedIn al passaggio */
}

/*------------------------------*/

.card-title {
    color: #343a40;
}

.card-text {
    color: #555;
    text-align: justify;
}

.btn-outline-secondary {
    border-color: #70777d;
    color: #70777d;
}

    .btn-outline-secondary:hover {
        background-color: #70777d;
        color: #fff;
    }

/* === PROGETTI REALIZZATI === */
.portfolio-section {
   /* background-color: #f6f7fa;*/
}

.project-card {
    height: 320px;
    display: flex;
    align-items: flex-end;
    position: relative;
}

.project-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.5);
    transition: all 0.4s ease-in-out;
}

.bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(40, 40, 40, 0.7), rgba(40, 40, 40, 0.2));
}

.project-content {
    position: relative;
    z-index: 2;
}

.project-card:hover .project-bg {
    transform: scale(1.05);
    filter: brightness(0.7);
}

a.text-muted:hover {
    color: #70777d;
    text-decoration: underline;
}

/*--------------------------*/
.card-service {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 0.75rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .card-service:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    }

/*------------------------------------*/

/* Effetti hover sezione funzionalità Your Office */
.feature-card {
transition: all 0.35s ease-in-out;
border-radius: 0.75rem;
}

.feature-card img {
    transition: transform 0.5s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(111, 66, 193, 0.3);
                
}

.feature-card:hover img {
transform: scale(1.05);
}

.feature-card img {
height: 220px;
object-fit: cover;
}

.modal-content {
    background: transparent;
    border: none;
}

.modal img {
    transition: transform 0.3s ease;
}

.modal img:hover {
    transform: scale(1.25);
}

/*---------------------------*/
