/* ==== Body.css ==== */
html, body {
    height: 100%;
}
body {
    background-color: white;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Altezza minima: tutta la viewport */
}
main[role="main"] {
    flex: 1 0 auto; /* Fa sì che il main cresca e spinga il footer in basso */
}
body.no-hero {
    padding-top: 64px; /* O quanto è alta la tua navbar */
}
body.has-hero {
    padding-top: 0;
}


/* ==== Sections.css ==== */
.section-default {
    max-width: 800px;
    margin: 0 auto;
    padding: 3.5rem 1rem 0; /* sempre 1rem laterale per mobile */
}
    .section-default.no-top-padding {
        padding-top: 0;
    }
.section-cards {
    padding: 3.5rem 0; /* sempre 1rem laterale per mobile */
    text-align: center;
}
    .section-cards .row {
        margin-left: 0;
        margin-right: 0;
    }
    .section-cards.no-top-padding {
        padding-top: 0;
        padding-bottom: 0;
    }


main > section:last-of-type {
    padding-bottom: 3.5rem !important;
}


/* ==== site.css ==== */
/* Fade in animations */
.fade-in {
    opacity: 0;
    animation: fadeIn ease 1s forwards;
    animation-delay: 0.3s;
}

.fade-in-delayed {
    opacity: 0;
    animation: fadeIn ease 1s forwards;
    animation-delay: 1s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@keyframes fadeLeaf {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* Features */
.feature {
    padding: 2rem 1rem;
}

.price-badge {
    text-align: right;
    font-weight: bold;
    color: var(--accent);
}

.list-group-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}



/* Icone Bootstrap stile uniforme */
.bi {
    vertical-align: middle;
    margin-right: 0.4rem;
    color: var(--primary);
    font-size: 1rem;
}

h5 > .bi {
    font-size: 1.3rem;
}
/* Miglior contrasto testi text-muted su sfondi chiari */
.text-muted {
    color: #6c757d !important;
}
/* Link stile uniforme */
a.text-decoration-none:hover,
a.text-decoration-none:focus {
    text-decoration: underline;
    outline: none;
}

/*PER IL MOBILE*/
@media (max-width: 768px) {
    body {
        padding-top: 3rem;
    }
   /* Lista caratteristiche BasicPDM */
    ul.list-unstyled {
        padding-left: 0;
    }
}





/* ==== swagger-ui.css ==== */

.swagger-ui .topbar {
    background-color: #072621;
    border-bottom: 3px solid var(--accent);
}

.swagger-ui .topbar a,
.swagger-ui .topbar .topbar-wrapper span {
    color: var(--accent);
    font-weight: bold;
}

.swagger-ui .scheme-container {
    background-color: var(--primary-light);
    color: #fff;
}

.swagger-ui .btn {
    background-color: var(--primary);
    border-color: var(--blu-light);
    color: white;
    font-weight: 600;
}

.swagger-ui .btn:hover {
    background-color: var(--accent);
    border-color: var(--accent);
}

.swagger-ui .opblock.opblock-get {
    border-left: 5px solid var(--info);
}

.swagger-ui .opblock.opblock-post {
    border-left: 5px solid var(--accent);
}

.swagger-ui .opblock.opblock-put {
    border-left: 5px solid #ffc107;
}

.swagger-ui .opblock.opblock-delete {
    border-left: 5px solid #dc3545;
}

.swagger-ui .responses-wrapper, .swagger-ui .opblock-section-header {
    background-color: var(--primary-light);
}


/* ==== Typography.css ==== */
:root {
    --font-base: 'Inter', sans-serif;
    --font-size-base: 1.05rem;
    --line-height-base: 1.6;
    --text-color: #333;
    --text-muted: #555;
    --primary-color: #2D6CA3;
}

body {
    font-family: var(--font-base);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-color);
}


/* Testo coerente */
.text-base {
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-color);
    text-align: justify;
}

    .text-base p {
        margin-bottom: 1rem;
    }

    .text-base ul {
        padding-left: 1.5rem;
        margin-bottom: 1rem;
        list-style-type: disc;
        color: var(--text-muted);
    }

    .text-base li {
        margin-bottom: 0.5rem;
    }

    .text-base h2,
    .text-base h3 {
        text-align: center;
        color: var(--primary-color);
        font-weight: 600;
        margin-top: 3rem;
        margin-bottom: 1.5rem;
    }
    /* Rimuove margine top se il titolo è il primo elemento della section */
    .text-base > h2:first-child,
    .text-base > h3:first-child {
        margin-top: 0;
    }

/* Titoli esterni */
h1 {
    font-size: 2.75rem; /* o usa display-5 come base */
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
}
/* Utility */
.text-muted {
    color: #aaa;
    font-size: 0.9rem;
}

.text-center {
    text-align: center !important;
}


/* ==== variables.css ==== */
:root {
    --primary: #2D6CA3; /*colore dominante*/
    --primary-light: #b9cad8;
    --primary-Ultralight: #f0f3f5;
    --accent: #F57C00; /*evidenziazioni e azioni*/
    --accent-light: #FFD180;
    --info: #4FC3F7; /*icone e badge secondari*/
    --info-light: #D0F0FF;
    --blu-dark: #0d1a26;
    --blu-light: #103B5F;
    --header-bg: #f8f9fa; /* bg-light */
    --border-color: #dee2e6;
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 3rem;
}
h2, h3, section[id] {
    scroll-margin-top: 6rem; /* o l'altezza della tua navbar */
}

/* ==== lang-modal.css ==== */
.lang-select-card{cursor:pointer;transition:box-shadow .2s,transform .1s;border-radius:1rem;}
.lang-select-card:focus,.lang-select-card:hover{box-shadow:0 .5rem 1rem rgba(0,0,0,.15);transform:translateY(-1px);outline:2px solid transparent;}
.lang-label{font-weight:600;letter-spacing:.2px;}


/* ==== Buttons.css ==== */
/* ===========================
   Buttons – LiquidoDocs (final)
   =========================== */

/* --- Animazioni glow coerenti con la palette --- */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 0 rgba(245,124,0,0);
    }
    /* blu tenue */
    50% {
        box-shadow: 0 0 12px rgba(245,124,0,0.4);
    }
}

@keyframes pulseGreen {
    0%, 100% {
        box-shadow: 0 0 0 rgba(16,185,129,0);
    }
    /* verde tenue */
    50% {
        box-shadow: 0 0 12px rgba(16,185,129,0.4);
    }
}

/* --- Base: BLU (primary) --- */
.btn-blu {
    background-color: var(--primary);
    border-color: var(--blu-light);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 0 0 transparent;
    transition: background-color .3s, border-color .3s, color .3s, box-shadow .2s, transform .2s;
}

    /* Hover (no scale sui non-pulse per evitare “bordino” disallineato) */
    .btn-blu:hover {
        background-color: var(--accent);
        border-color: var(--accent);
        color: #fff;
    }

    /* Focus accessibile: nessun ring al click mouse, ring solo tastiera */
    .btn-blu:focus {
        outline: none;
        box-shadow: none;
    }

        .btn-blu:focus:not(:focus-visible) {
            box-shadow: none;
        }

    .btn-blu:focus-visible {
        box-shadow: 0 0 0 0.25rem rgba(59,130,246,.35);
    }

    /* Stato attivo per feedback tattile */
    .btn-blu:active {
        transform: translateY(1px);
    }

    /* Variante pulse (solo qui cresce) */
    .btn-blu.pulse {
        animation: pulseGlow 2s infinite;
    }

        .btn-blu.pulse:hover {
            transform: scale(1.03);
        }

        .btn-blu.pulse:focus-visible {
            transform: scale(1.03);
        }

/* --- Base: GREEN (secondario/etico) --- */
.btn-green {
    background-color: #10b981; /* emerald-500 */
    border: none;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 0 0 transparent;
    transition: background-color .3s, border-color .3s, color .3s, box-shadow .2s, transform .2s;
}

    .btn-green:hover {
        background-color: #059669; /* emerald-600 */
        color: #fff;
    }

    .btn-green:focus {
        outline: none;
        box-shadow: none;
    }

        .btn-green:focus:not(:focus-visible) {
            box-shadow: none;
        }

    .btn-green:focus-visible {
        box-shadow: 0 0 0 0.25rem rgba(16,185,129,.35);
    }

    .btn-green:active {
        transform: translateY(1px);
    }

    .btn-green.pulse {
        animation: pulseGreen 2s infinite;
    }

        .btn-green.pulse:hover {
            transform: scale(1.03);
        }

        .btn-green.pulse:focus-visible {
            transform: scale(1.03);
        }

/* --- Bottoni Navbar (aderenti al tema, senza effetti speciali) --- */
.btn-NavBar {
    background-color: var(--primary);
    color: #fff !important;
    border: none;
    transition: background-color .3s, color .3s;
    height: 38px;
}

    .btn-NavBar i {
        color: #fff !important;
    }

    .btn-NavBar:hover {
        background-color: var(--accent);
        color: #fff !important;
    }

        .btn-NavBar:hover i {
            color: #fff !important;
        }

    .btn-NavBar:focus {
        outline: none;
        box-shadow: none;
    }

    .btn-NavBar:focus-visible {
        box-shadow: 0 0 0 0.2rem rgba(59,130,246,.25);
    }

/* --- Riduzione motion per accessibilità --- */
@media (prefers-reduced-motion: reduce) {
    .btn-blu, .btn-green, .btn-NavBar {
        transition: none;
    }

        .btn-blu.pulse, .btn-green.pulse {
            animation: none;
        }
}

/* --- Mobile tuning --- */
@media (max-width: 768px) {
    .btn-blu, .btn-green {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
}

/* ==== Immagini.css ==== */
.img-logo {
    max-width: 120px;
    height: auto; /* mantiene proporzioni */
    width: auto; /* evita stretching */
}


.img-layout {
    max-width: 48px;
    opacity: 0.8;
    height: auto; /* mantiene proporzioni */
    width: auto; /* evita stretching */
}

/* ==== PrivateArea\private.css ==== */
body {
    font-family: Arial, sans-serif;
    background-color: var(--primary-Ultralight);
    color: #222;
}

.btn-blu {
    background-color: var(--primary);
    border-color: var(--blu-light);
    color: white;
    font-weight: 600;
}

.btn-blu:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    color: white;
}


/* ==== Public\Card.css ==== */
.card {
    border: 1px solid var(--bs-info, #0dcaf0);
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 1px 10px rgba(10,20,50,0.05);
    transition: box-shadow .15s, border-color .15s;
    cursor: pointer;
    height: 100%;
}

.card-body {
    padding: 1.2rem;
}

.card h5 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}
.card p {
    padding-left: 0;
    margin: 0 0 1rem 0;
}
/*.card ul {
    list-style: disc;  mostra i pallini
    list-style-position: outside; /* default, va bene 
    padding-left: 1.25rem; /* spazio per i marker 
    margin: 0 0 1rem 0;
    /* rimuovi qualsiasi 'list-style: none'
} */
    .card ul {
    list-style-type: disc;
    padding-left: 1.5rem; /* spazio per i pallini */
    margin: 0 auto 1rem auto; /* centra l'ul orizzontalmente */
    display: inline-block; /* fa s� che il margine auto funzioni */
    text-align: left; /* testo e pallini allineati a sinistra */
}
.card li {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    text-align: left;
}

.card .text-muted {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.card.active,
.card:hover,
.card:focus {
    transform: translateY(-5px);
    box-shadow: 0 0.75rem 1.25rem rgba(0,0,0,0.15);
    border-color: var(--accent);
}

@media (max-width: 768px) {
    .card {
        padding: 0.7rem 0.2rem;
        font-size: .92rem;
        margin-bottom: 0.7rem;
    }
}






/* ==== Public\CreditRoll.css ==== */
.credit-roll {
    position: relative;
    height: 300px; /* area visibile */
    overflow: hidden;
    width: 100%;
}

.credit-roll-content {
    position: absolute;
    bottom: -100%;
    animation: rollUp 25s linear infinite;
    width: 100%;
    text-align: center; /* centratura orizzontale */
}

    .credit-roll-content p {
        margin: 0.8rem 0;
        color: white;
        text-shadow: 0 0 6px rgba(0,0,0,0.7);
        font-size: 1.6rem; /* testo più grande */
    }

/* Effetto entrata/uscita morbida */
@keyframes rollUp {
    0% {
        bottom: -100%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        bottom: 100%;
        opacity: 0;
    }
}


/* ==== Public\Footer.css ==== */
.footer-epic {
    background: linear-gradient(to top, var(--blu-dark), var(--blu-light));
    color: white;
    padding: 3rem 1rem;
    font-size: 0.95rem;
    position: relative;
    z-index: 2;
}
.footer-epic {
    flex-shrink: 0;
}
    .footer-epic .footer-logo {
        width: 60px;
        height: auto;
        filter: brightness(1.1) contrast(1.2);
    }

    .footer-epic .footer-claim {
        font-weight: 600;
        font-size: 1.1rem;
        color: var(--accent-light);
        margin-bottom: 0.5rem;
    }

    .footer-epic .footer-note {
        margin-bottom: 1rem;
    }

    .footer-epic .footer-links a {
        color: var(--info-light);
        margin: 0 0.75rem;
        text-decoration: none;
        transition: color 0.3s ease;
    }

        .footer-epic .footer-links a:hover {
            color: white;
            text-decoration: underline;
        }


/* ==== Public\NavBarDark.css ==== */
.navbar-brand img {
    margin-right: 10px;
}
.navbar-custom {
    background-color: var(--blu-dark);
}
.has-hero .navbar-custom {
    opacity: 0;
    transition: opacity 0.6s ease;
}

.has-hero.nav-ready .navbar-custom {
    opacity: 1;
}

    .navbar-custom.navbar-hero {
        background: rgba(5,10,15,0); /* Inizialmente trasparente */
        box-shadow: none;
        transition: background 0.3s, box-shadow 0.3s, opacity 0.8s ease;
    }
    /* Colore base navbar (scura o trasparente) */
    .navbar-custom,
    .navbar-custom .navbar-brand,
    .navbar-custom .nav-link,
    .navbar-custom a {
        color: var(--accent-light);
        transition: color 0.3s;
    }

        /* Hover e focus uniformati */
        .navbar-custom .nav-link:hover,
        .navbar-custom .nav-link:focus,
        .navbar-custom .navbar-brand:hover,
        .navbar-custom .navbar-brand:focus,
        .navbar-custom a:hover,
        .navbar-custom a:focus {
            color: var(--accent);
            text-decoration: underline;
            outline: none;
        }

        /* Quando la navbar � solid (scrollata) cambia il colore */
        .navbar-custom.navbar-solid,
        .navbar-custom.navbar-solid .navbar-brand,
        .navbar-custom.navbar-solid .nav-link,
        .navbar-custom.navbar-solid a {
            color: var(--accent); /* es: blu scuro */
        }

            .navbar-custom.navbar-solid .nav-link:hover,
            .navbar-custom.navbar-solid .nav-link:focus,
            .navbar-custom.navbar-solid .navbar-brand:hover,
            .navbar-custom.navbar-solid .navbar-brand:focus,
            .navbar-custom.navbar-solid a:hover,
            .navbar-custom.navbar-solid a:focus {
                color: var(--accent-light);
            }
.navbar-toggler {
    border-color: rgba(255,255,255,0.5);
}
.navbar-toggler:focus {
    outline: none;
    box-shadow: 0 0 4px 2px rgba(255, 255, 255, 0.8);
}



/*PER IL MOBILE*/
@media (max-width: 768px) {
    .navbar-brand img {
        height: 30px;
        margin-right: 6px;
    }

    .navbar-custom .d-flex a {
        font-size: 0.85rem;
    }
}

/*HAMBUERGER BIANCO*/
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%28255,255,255, 1%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* ==== Public\SimpleHero.css ==== */
.SimpleHero {
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    padding: 2rem 1.5rem;
    text-align: center;
}

    .SimpleHero h1 {
        font-size: 2.5rem;
        font-weight: 700;
        color: var(--primary-color);
        margin-bottom: 1rem;
    }

    .SimpleHero .lead {
        font-size: 1.25rem;
        color: var(--text-muted);
    }


/* ==== Public\RoadMap.css ==== */
/* quadratino colorato per il target */
.target-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .85rem;
    padding: .15rem .5rem;
    border-radius: .5rem;
    background-color: var(--bs-light);
    color: var(--bs-secondary-color);
}

.dot {
    display: inline-block;
    width: .75rem;
    height: .75rem;
    border-radius: .15rem;
    background-color: #6c757d; /* default grigio */
}

.dot-sw {
    background-color: var(--bs-danger);
}
/* rosso per SolidWorks */
.dot-generic {
    background-color: #6c757d;
}
/* grigio per File generici */

/* ==== Public\Hero.css ==== */
.hero {
    background-position: center;
    background-repeat: no-repeat;
    background-color: #002b36;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding-top: 5rem;
    padding-bottom: 5rem;
    padding-left: 2rem;
    padding-right: 2rem;
    text-align: center;
    color: var(--blu-light);
    position: relative;
}
.hero--home {
    background-image: url('/images/hero.webp'); /* servita dal tuo dominio => ok con img-src 'self' */
}
.hero--ethics {
    background-image: url('/images/EthicsForest.webp'); /* servita dal tuo dominio => ok con img-src 'self' */
}
.hero > * {
    position: relative;
    z-index: 2;
}
.hero-overlay {
    background: rgba(255, 255, 255, 0.80);
    scroll-padding-top: 5rem;
    padding: 2rem;
    border-radius: 1rem;
    display: inline-block;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .hero {
        padding-bottom: 4rem;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero p.lead {
        font-size: 1.1rem;
    }
}

