:root {
    --primary-color: #A4D65E;
    --text-dark: #222;
    --text-grey: #666;
    --bg-white: #FFF;
    --bg-light: #F8F9FA;
    --border-color: #EEE;
    --sidebar-width: 280px;
    --mobile-header-height: 120px
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--mobile-header-height)
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6
}

.course-container {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    min-height: 100vh
}

.sidebar {
    background-color: var(--bg-white);
    border-right: 1px solid var(--border-color);
    padding: 40px 30px;
    height: 100vh;
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto
}

.brand-logo-container {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--bg-light)
}

.brand-icon {
    width: 100px;
    height: 100px;
    margin-right: 12px
}

.brand-text {
    display: flex;
    flex-direction: column
}

.brand-name {
    font-size: 1.4rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.5px
}

.brand-tagline {
    font-size: .8rem;
    color: var(--text-grey);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 1px
}

.module-nav ul {
    list-style: none
}

.module-nav li {
    margin-bottom: 15px
}

.module-nav a {
    text-decoration: none;
    color: var(--text-grey);
    display: flex;
    align-items: center;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 8px 0
}

.nav-icon {
    margin-right: 15px;
    stroke: var(--text-grey);
    transition: all 0.2s ease;
    opacity: .7
}

.module-nav a:hover {
    color: var(--text-dark)
}

.module-nav a:hover .nav-icon {
    stroke: var(--text-dark);
    opacity: 1
}

.main-content {
    background-color: var(--bg-white)
}

.hero-image-container {
    position: relative
}

.hero-figcaption {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgb(0 0 0 / .6);
    color: #fff;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 4px solid var(--primary-color);
    max-width: 90%;
    white-space: nowrap;
    z-index: 2;
    text-align: center
}

.content-wrapper {
    margin: 0 auto;
    padding: 50px 60px
}

.main-title {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 40px;
    line-height: 1.1
}

.text-block ul {
    list-style: none;
    padding-left: 5px;
    margin: 25px 0
}

.text-block li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 15px;
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--text-grey);
    transition: transform 0.2s ease
}

.text-block li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    clip-path: polygon(14% 44%, 0 58%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
    display: inline-block
}

.text-block li:hover {
    transform: translateX(5px);
    color: var(--text-dark)
}

.module-section {
    margin-bottom: 80px;
    scroll-margin-top: 20px
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
    border-left: 5px solid var(--primary-color);
    padding-left: 15px
}

.content-grid {
    display: flex;
    gap: 50px;
    align-items: flex-start
}

.text-block {
    flex: 3;
    font-size: 1.1rem;
    color: #444
}

.diagram-card {
    flex: 2;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 10px 30px rgb(0 0 0 / .05);
    margin-top: 2rem
}

.diagram-card img {
    width: 100%;
    display: block;
    border-radius: 8px
}

.diagram-card figcaption {
    text-align: center;
    font-size: .85rem;
    color: var(--text-grey);
    margin-top: 10px
}

.li-altro {
    display: none
}

.more-menu-overlay {
    display: block;
    position: static;
    transform: none;
    box-shadow: none;
    padding: 0;
    background: #fff0
}

.more-menu-overlay a {
    margin-bottom: 15px
}

.database-download-box {
    display: flex;
    align-items: center;
    gap: 30px;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    padding: 35px 40px;
    border-radius: 20px;
    margin: 40px 0;
    box-shadow: 0 10px 30px rgb(0 0 0 / .05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden
}

.database-download-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--primary-color)
}

.database-download-box:hover {
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgb(164 214 94 / .15);
    transform: translateY(-3px)
}

.download-icon-wrapper {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    background: rgb(164 214 94 / .15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color)
}

.download-icon-wrapper svg {
    width: 32px;
    height: 32px
}

.download-content {
    flex-grow: 1
}

.download-badge {
    display: inline-block;
    background-color: var(--text-dark);
    color: var(--bg-white);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 12px
}

.download-content h3 {
    font-size: 1.4rem;
    margin: 0 0 10px 0;
    padding: 0;
    color: var(--text-dark);
    line-height: 1.3
}

.download-content h3::before {
    display: none
}

.download-content p {
    font-size: .95rem;
    color: var(--text-grey);
    margin-bottom: 15px;
    line-height: 1.6
}

.file-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .85rem;
    color: #888;
    font-family: monospace
}

.file-info .separator {
    color: #ccc
}

.download-action {
    flex-shrink: 0
}

.btn-download {
    display: inline-block;
    background: var(--primary-color);
    color: var(--text-dark);
    padding: 16px 28px;
    border-radius: 10px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
    border: 2px solid var(--primary-color);
    box-shadow: 0 5px 15px rgb(164 214 94 / .2)
}

.btn-download:hover {
    background: var(--text-dark);
    color: var(--bg-white);
    border-color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgb(0 0 0 / .15)
}

h3 .code-badge {
    font-family: 'Fira Code', monospace;
    font-size: .85em;
    background-color: var(--bg-light);
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-left: 12px;
    font-weight: 500;
    letter-spacing: 0;
    vertical-align: middle;
    display: inline-block
}

h3:hover .code-badge {
    border-color: var(--primary-color);
    background-color: #fff;
    box-shadow: 0 4px 10px rgb(164 214 94 / .2)
}

h3 .code-badge {
    font-family: 'monospace';
    font-size: .75em;
    background-color: var(--bg-light);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-left: 10px;
    font-weight: 600;
    vertical-align: middle;
    display: inline-block;
    letter-spacing: 0
}

.fundamental-box {
    display: flex;
    gap: 25px;
    background-color: #fbfdf8;
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--primary-color);
    padding: 30px;
    border-radius: 16px;
    margin: 35px 0;
    transition: transform 0.3s ease
}

.fundamental-box:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 25px rgb(164 214 94 / .1)
}

.fundamental-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--text-dark);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgb(164 214 94 / .3)
}

.fundamental-icon svg {
    width: 24px;
    height: 24px
}

.fundamental-content {
    flex: 1
}

.fundamental-tag {
    display: inline-block;
    font-size: .7rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--primary-color);
    letter-spacing: 1.2px;
    margin-bottom: 8px
}

.fundamental-content h4 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px
}

.fundamental-content p {
    font-size: 1.05rem;
    color: var(--text-grey);
    line-height: 1.6;
    margin: 0
}

.fundamental-content strong {
    color: var(--text-dark);
    font-weight: 700
}

@media (max-width:768px) {
    .fundamental-box {
        flex-direction: column;
        padding: 25px 20px;
        gap: 15px
    }
    .fundamental-icon {
        width: 45px;
        height: 45px
    }
}

@media (min-width:993px) {
    .main-content .brand-logo-container {
        display: none!important
    }
}

@media (max-width:992px) {
    .main-content .brand-logo-container {
        display: flex!important;
        padding: 20px;
        justify-content: center
    }
}

@media (max-width:992px) {
    .hero-figcaption {
        bottom: 20px;
        font-size: .85rem;
        padding: 10px 15px;
        white-space: normal;
        width: 85%
    }
}

@media (max-width:768px) {
    .database-download-box {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
        gap: 20px
    }
    .download-icon-wrapper {
        margin: 0 auto
    }
    .file-info {
        justify-content: center;
        flex-wrap: wrap
    }
    .download-action {
        width: 100%;
        margin-top: 10px
    }
    .btn-download {
        width: 100%;
        padding: 16px 20px
    }
}

.code-viewer-box {
    background-color: #1e1e1e;
    border-radius: 12px;
    margin: 30px 0;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease
}

.code-viewer-box[open] {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgb(0 0 0 / .1)
}

.code-viewer-box summary {
    list-style: none;
    padding: 15px 20px;
    background-color: var(--bg-light);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    font-weight: 700;
    color: var(--text-dark)
}

.code-viewer-box summary::-webkit-details-marker {
    display: none
}

.summary-content {
    display: flex;
    align-items: center;
    gap: 12px
}

.icon-code {
    color: var(--primary-color);
    display: flex;
    align-items: center
}

.badge-lang {
    font-size: .7rem;
    background: var(--border-color);
    padding: 4px 8px;
    border-radius: 4px;
    color: var(--text-grey);
    text-transform: uppercase;
    letter-spacing: .5px
}

.code-link-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #222222 0%, #1a1a1a 100%);
    border-left: 6px solid var(--primary-color);
    padding: 35px 40px;
    border-radius: 20px;
    margin: 60px 0;
    box-shadow: 0 20px 40px rgb(0 0 0 / .2);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease
}

.code-link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgb(164 214 94 / .15)
}

.code-link-card::after {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgb(164 214 94 / .08) 0%, transparent 70%);
    pointer-events: none
}

.code-link-content {
    display: flex;
    align-items: center;
    gap: 25px;
    flex: 1
}

.code-link-icon {
    width: 65px;
    height: 65px;
    background: rgb(164 214 94 / .1);
    border: 1px solid rgb(164 214 94 / .3);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    flex-shrink: 0
}

.code-link-icon svg {
    width: 32px;
    height: 32px
}

.code-link-text {
    color: #fff
}

.code-tag {
    display: inline-block;
    font-size: .7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary-color);
    margin-bottom: 8px
}

.code-link-text h3 {
    margin: 0 0 8px 0!important;
    padding: 0!important;
    color: #fff!important;
    font-size: 1.6rem!important
}

.code-link-text h3::before {
    display: none
}

.code-link-text p {
    color: #aaa;
    font-size: .95rem;
    max-width: 450px;
    margin: 0
}

.btn-code-explorer {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: var(--primary-color);
    color: var(--text-dark)!important;
    padding: 18px 30px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(.175, .885, .32, 1.275);
    white-space: nowrap;
    box-shadow: 0 10px 20px rgb(164 214 94 / .2)
}

.btn-code-explorer:hover {
    background-color: #fff;
    transform: scale(1.05)
}

.btn-code-explorer svg {
    transition: transform 0.3s ease
}

.btn-code-explorer:hover svg {
    transform: translateX(5px)
}

@media (max-width:900px) {
    .code-link-card {
        flex-direction: column;
        text-align: center;
        padding: 40px 25px;
        gap: 30px
    }
    .code-link-content {
        flex-direction: column;
        gap: 15px
    }
    .code-link-text p {
        max-width: 100%
    }
    .code-link-action {
        width: 100%
    }
    .btn-code-explorer {
        justify-content: center
    }
}

@media (max-width:992px) {
    .course-container {
        display: block;
        padding-bottom: 90px
    }
    .sidebar {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 15px 0;
        text-align: center
    }
    .li-altro {
        display: block;
        flex: 1
    }
    .more-menu-overlay a {
        margin-bottom: 0
    }
    .brand-logo-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin: 0 auto;
        width: 100%
    }
    .brand-icon {
        height: 85px!important;
        width: 85px!important;
        margin-right: 0!important;
        margin-bottom: 8px
    }
    .brand-text {
        align-items: center
    }
    .brand-name {
        font-size: 1.5rem
    }
    .brand-tagline {
        display: block;
        font-size: .7rem;
        margin-top: 2px
    }
    .module-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: var(--bg-white);
        box-shadow: 0 -4px 15px rgb(0 0 0 / .1);
        z-index: 9999;
        padding: 10px 15px;
        border-top: 1px solid var(--border-color)
    }
    .module-nav ul {
        display: flex;
        justify-content: space-around;
        align-items: center;
        width: 100%
    }
    .module-nav li {
        margin-bottom: 0;
        flex: 1
    }
    .module-nav a,
    .btn-altro {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background-color: #fff0;
        border: none;
        font-size: .75rem;
        color: var(--text-grey);
        text-decoration: none;
        padding: 5px 0;
        cursor: pointer;
        width: 100%
    }
    .nav-icon {
        display: block;
        margin-right: 0;
        margin-bottom: 4px;
        width: 24px;
        height: 24px
    }
    .module-nav a.active,
    .module-nav a:focus,
    .btn-altro.active {
        color: var(--primary-color);
        background-color: #fff0;
        font-weight: 700
    }
    .module-nav a.active .nav-icon,
    .btn-altro.active .nav-icon {
        stroke: var(--primary-color);
        opacity: 1
    }
    .more-menu-overlay {
        position: fixed;
        bottom: 75px;
        left: 0;
        width: 100%;
        background-color: var(--bg-white);
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
        box-shadow: 0 -10px 25px rgb(0 0 0 / .15);
        padding: 25px 20px;
        z-index: 9998;
        transform: translateY(150%);
        transition: transform 0.3s cubic-bezier(.4, 0, .2, 1);
        display: flex;
        flex-direction: column;
        gap: 15px
    }
    .more-menu-overlay.open {
        transform: translateY(0)
    }
    .more-menu-overlay a {
        display: flex;
        flex-direction: row;
        align-items: center;
        font-size: 1rem;
        padding: 10px;
        border-radius: 8px;
        background-color: var(--bg-light)
    }
    .more-menu-overlay a .nav-icon {
        margin-bottom: 0;
        margin-right: 15px
    }
    .hero-image-container {
        height: 250px
    }
    .content-wrapper {
        padding: 20px
    }
    .main-title {
        font-size: 2rem;
        margin-bottom: 30px
    }
    .content-grid {
        flex-direction: column;
        gap: 30px
    }
    .diagram-card {
        width: 100%;
        margin-top: 1rem
    }
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgb(0 0 0 / .1);
    background-color: #000;
    margin-bottom: 20px;
    border: 2px solid var(--primary-color)
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0
}

.youtube-player {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background-color: #000;
    border-radius: 12px;
    border: 2px solid var(--primary-color);
    cursor: pointer
}

.youtube-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .8;
    transition: opacity 0.3s
}

.youtube-player:hover .youtube-thumb {
    opacity: 1
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 48px;
    background-color: rgb(33 33 33 / .8);
    border-radius: 12px;
    z-index: 1;
    transition: all 0.2s
}

.play-btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: 10px 0 10px 18px;
    border-color: #fff0 #fff0 #fff0 #fff
}

.youtube-player:hover .play-btn {
    background-color: red
}

.youtube-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0
}

.breadcrumb {
    font-size: .9rem;
    color: var(--text-grey);
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    align-items: center
}

.breadcrumb a {
    text-decoration: none;
    color: var(--text-grey);
    transition: color 0.2s
}

.breadcrumb a:hover {
    color: var(--primary-color);
    text-decoration: underline
}

.breadcrumb .separator {
    margin: 0 8px;
    color: #ccc;
    font-size: .8rem
}

.breadcrumb .current {
    color: var(--text-dark);
    font-weight: 500
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 50px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    gap: 20px
}

.author-profile {
    display: flex;
    align-items: center
}

.author-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    margin-right: 12px;
    border: 2px solid var(--primary-color)
}

.author-info {
    display: flex;
    flex-direction: column;
    font-size: .9rem
}

.author-role {
    font-size: .8rem;
    color: var(--text-grey)
}

.publish-dates {
    display: flex;
    gap: 20px;
    font-size: .85rem;
    color: var(--text-grey)
}

.date-item {
    display: flex;
    align-items: center;
    gap: 6px
}

.product-box {
    background-color: #fcfcfc;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 30px;
    margin: 60px 0;
    position: relative;
    box-shadow: 0 10px 30px rgb(164 214 94 / .15)
}

.product-badge {
    position: absolute;
    top: -14px;
    left: 30px;
    background-color: var(--primary-color);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px
}

.product-content {
    display: flex;
    align-items: center;
    gap: 30px
}

.product-text h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--text-dark)
}

.product-btn {
    display: inline-block;
    margin-top: 15px;
    background-color: var(--text-dark);
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s
}

.product-btn:hover {
    background-color: var(--primary-color);
    color: var(--text-dark)
}

.product-image img {
    max-width: 150px;
    border-radius: 8px;
    mix-blend-mode: multiply
}

.divider {
    border: 0;
    height: 1px;
    background: var(--border-color);
    margin: 60px 0
}

.related-title {
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-weight: 700
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px
}

.related-card {
    display: block;
    text-decoration: none;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgb(0 0 0 / .08);
    border-color: var(--primary-color)
}

.related-img {
    height: 160px;
    background-size: cover;
    background-position: center
}

.related-content {
    padding: 15px
}

.related-tag {
    font-size: .75rem;
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    display: block;
    margin-bottom: 5px
}

.related-content h4 {
    font-size: 1.1rem;
    color: var(--text-dark);
    line-height: 1.4;
    margin: 0
}

@media (max-width:768px) {
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px
    }
    .publish-dates {
        flex-direction: column;
        gap: 5px
    }
    .product-content {
        flex-direction: column-reverse;
        text-align: center
    }
    .product-image img {
        max-width: 120px
    }
    .related-grid {
        grid-template-columns: 1fr
    }
}

.youtube-player {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background-color: #000;
    border-radius: 12px;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    display: block;
    width: 100%;
    padding: 0;
    appearance: none;
    -webkit-appearance: none
}

.product-badge {
    position: absolute;
    top: -14px;
    left: 30px;
    background-color: var(--primary-color);
    color: var(--text-dark);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    box-shadow: 0 2px 5px rgb(0 0 0 / .1)
}

@media (max-width:992px) {
    .module-nav a.active,
    .module-nav a:focus {
        background-color: var(--primary-color);
        color: var(--text-dark);
        border-color: var(--primary-color);
        font-weight: 700
    }
    h3::before {
        content: "";
        position: absolute;
        left: 0;
        top: .2em;
        width: 6px;
        height: 1.1em;
        background-color: var(--primary-color);
        border-radius: 2px
    }
}

.youtube-player {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    width: 100%;
    display: block;
    background-color: #000;
    border-radius: 12px;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    border-style: solid;
    margin: 0;
    padding-top: 0;
    padding-left: 0;
    padding-right: 0
}

.muscle-timeline {
    margin: 25px 0 35px;
    padding-left: 20px;
    border-left: 3px solid var(--primary-color)
}

.muscle-timeline p {
    margin-bottom: 18px;
    color: #444;
    font-size: 1.05rem
}

.muscle-timeline p strong {
    color: var(--text-dark)
}

.va-faq {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 18px 22px;
    margin-bottom: 18px;
    background-color: var(--bg-white);
    box-shadow: 0 6px 18px rgb(0 0 0 / .04);
    transition: box-shadow 0.3s, border-color 0.3s
}

.va-faq[open] {
    border-color: var(--primary-color);
    box-shadow: 0 10px 25px rgb(164 214 94 / .15)
}

.va-faq summary {
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 30px;
    color: var(--text-dark)
}

.va-faq summary::-webkit-details-marker {
    display: none
}

.va-faq summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 0;
    font-size: 1.4rem;
    color: var(--primary-color);
    transition: transform 0.3s
}

.va-faq[open] summary::after {
    content: "Ã¢â‚¬â€œ";
    transform: rotate(180deg)
}

.va-content {
    margin-top: 15px;
    padding-left: 15px;
    border-left: 3px solid var(--primary-color);
    color: #444;
    font-size: 1.05rem;
    line-height: 1.7
}

h3 {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 50px 0 18px;
    line-height: 1.25;
    letter-spacing: -.3px;
    position: relative;
    padding-left: 14px
}

.expertise-link {
    text-decoration: none!important;
    color: inherit!important;
    display: block
}

.expertise-link:hover {
    text-decoration: none
}

h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0em;
    width: 6px;
    height: 1.1em;
    background-color: var(--primary-color);
    border-radius: 2px
}

.text-block h3 {
    margin-top: 45px
}

.main-footer {
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
    padding: 80px 0 30px 0;
    margin-top: 100px;
    width: 100%
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 60px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px
}

.footer-brand .brand-name {
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: -1px;
    color: var(--text-dark);
    display: block;
    margin-bottom: 12px
}

.footer-tagline {
    color: var(--text-grey);
    font-size: .9rem;
    line-height: 1.5;
    max-width: 280px
}

.footer-socials {
    display: flex;
    gap: 12px;
    margin-top: 25px
}

.footer-socials a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 700;
    font-size: .75rem;
    width: 38px;
    height: 38px;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: all 0.2s ease;
    background: var(--bg-white)
}

.footer-socials a:hover {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    transform: translateY(-3px)
}

.footer-links h4 {
    font-size: .85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 25px;
    color: var(--text-dark);
    position: relative
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 20px;
    height: 2px;
    background-color: var(--primary-color)
}

.footer-links ul {
    list-style: none
}

.footer-links li {
    margin-bottom: 12px
}

.footer-links a {
    text-decoration: none;
    color: var(--text-grey);
    font-size: .95rem;
    transition: color 0.2s
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px
}

.footer-bottom {
    margin-top: 60px;
    padding: 25px 60px 0;
    border-top: 1px solid var(--border-color);
    text-align: center
}

.footer-bottom p {
    color: var(--text-grey);
    font-size: .8rem;
    opacity: .8
}

pre {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--bg-light);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin: 20px 0
}

img,
picture,
video,
iframe,
figure {
    max-width: 100%;
    height: auto
}

@media (max-width:992px) {
    .course-container {
        display: block;
        padding-bottom: 90px
    }
    .sidebar {
        width: 100%;
        height: auto;
        padding: 12px 20px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 4px 10px rgb(0 0 0 / .05);
        position: sticky;
        top: 0;
        z-index: 1000;
        display: block;
        background-color: var(--bg-white)
    }
    .brand-icon {
        height: 50px;
        width: 50px
    }
    .brand-logo-container {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none
    }
    .brand-name {
        font-size: 1.2rem
    }
    .brand-tagline {
        display: none
    }
    .module-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: var(--bg-white);
        box-shadow: 0 -4px 15px rgb(0 0 0 / .1);
        z-index: 9999;
        padding: 10px 15px;
        border-top: 1px solid var(--border-color);
        height: 75px
    }
    .module-nav ul {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        height: 100%
    }
    .module-nav li {
        margin-bottom: 0;
        flex: 1
    }
    .module-nav a,
    .btn-altro {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background-color: #fff0;
        border: none;
        font-size: .75rem;
        color: var(--text-grey);
        text-decoration: none;
        padding: 5px 0;
        cursor: pointer;
        width: 100%
    }
    .nav-icon {
        display: block;
        margin-right: 0;
        margin-bottom: 4px;
        width: 24px;
        height: 24px
    }
    .module-nav a.active,
    .module-nav a:focus,
    .btn-altro.active {
        color: var(--text-dark);
        font-weight: 700
    }
    .module-nav a.active .nav-icon,
    .module-nav a:focus .nav-icon,
    .btn-altro.active .nav-icon {
        stroke: var(--primary-color);
        opacity: 1
    }
    .li-altro {
        display: block;
        flex: 1
    }
    .more-menu-overlay {
        position: fixed;
        bottom: 75px;
        left: 0;
        width: 100%;
        background-color: var(--bg-white);
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
        box-shadow: 0 -10px 25px rgb(0 0 0 / .15);
        padding: 25px 20px;
        z-index: 9998;
        transform: translateY(150%);
        transition: transform 0.3s cubic-bezier(.4, 0, .2, 1);
        display: flex;
        flex-direction: column;
        gap: 10px
    }
    .more-menu-overlay.open {
        transform: translateY(0)
    }
    .more-menu-overlay a {
        display: flex;
        flex-direction: row;
        align-items: center;
        font-size: 1rem;
        padding: 12px 15px;
        border-radius: 8px;
        background-color: var(--bg-light);
        margin-bottom: 0;
        color: var(--text-dark)
    }
    .more-menu-overlay a .nav-icon {
        margin-bottom: 0;
        margin-right: 15px
    }
    .hero-image-container {
        height: 200px
    }
    .content-wrapper {
        padding: 20px 15px
    }
    .main-title {
        font-size: 1.8rem;
        margin-bottom: 20px
    }
    .content-grid {
        flex-direction: column;
        gap: 30px
    }
    .diagram-card {
        width: 100%;
        margin-top: 1rem
    }
    h3 {
        font-size: 1.3rem
    }
    .main-footer {
        padding-bottom: 100px;
        margin-top: 50px
    }
}

@media (max-width:768px) {
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px
    }
    .publish-dates {
        flex-direction: column;
        gap: 5px
    }
    .product-content {
        flex-direction: column;
        text-align: center
    }
    .product-image img {
        max-width: 120px;
        margin: 0 auto
    }
    .related-grid {
        grid-template-columns: 1fr
    }
    .podcast-chapters-wrapper ul {
        display: flex;
        flex-direction: column;
        gap: 10px
    }
}

@media (max-width:992px) {
    .main-footer {
        padding-top: 60px;
        padding-bottom: 120px;
        margin-top: 50px
    }
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px 20px;
        padding: 0 30px;
        text-align: center
    }
    .footer-brand {
        grid-column: 1 / -1;
        display: flex;
        flex-direction: column;
        align-items: center
    }
    .footer-tagline {
        max-width: 100%
    }
    .footer-socials {
        justify-content: center;
        margin-top: 20px
    }
    .footer-links h4::after {
        left: 50%;
        transform: translateX(-50%)
    }
    .footer-links a:hover {
        padding-left: 0
    }
    .footer-bottom {
        padding: 25px 30px 0
    }
    .mobile-only {
        display: block
    }
}

@media (max-width:576px) {
    .footer-container {
        grid-template-columns: 1fr;
        padding: 0 20px;
        gap: 35px
    }
    .footer-bottom {
        padding: 20px 15px 0;
        margin-top: 40px
    }
}

html,
body {
    overflow-x: hidden
}

.sidebar {
    background-color: var(--bg-white);
    border-right: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto
}

.main-content {
    background-color: var(--bg-white);
    min-width: 0
}

abbr[title] {
    text-decoration: underline dotted #A4D65E;
    cursor: help;
    font-weight: 600;
    transition: all 0.2s ease;
    position: relative
}

abbr[title]:hover {
    color: #A4D65E;
    background-color: #f4f7f1
}

@media (max-width:768px) {
    .anatomy-grid {
        grid-template-columns: 1fr!important
    }
}

.article-conversion-box {
    display: flex;
    align-items: center;
    gap: 30px;
    background: linear-gradient(135deg, var(--bg-white) 0%, #F4FBF4 100%);
    border: 2px solid var(--primary-color);
    padding: 40px;
    border-radius: 24px;
    margin: 60px 0;
    box-shadow: 0 20px 40px rgb(164 214 94 / .15)
}

.conversion-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    background: var(--text-dark);
    color: var(--primary-color);
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgb(0 0 0 / .1)
}

.conversion-text {
    flex-grow: 1
}

.conversion-text h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-dark);
    letter-spacing: -.5px;
    line-height: 1.3
}

.conversion-text p {
    font-size: 1.05rem;
    color: var(--text-grey);
    line-height: 1.6;
    margin: 0
}

.conversion-text strong {
    color: var(--text-dark);
    font-weight: 800
}

.conversion-action {
    flex-shrink: 0
}

.conversion-action .btn-hard-sell {
    display: inline-block;
    background: var(--text-dark);
    color: var(--bg-white);
    padding: 18px 32px;
    border-radius: 12px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.3s;
    text-align: center;
    white-space: nowrap;
    border: 2px solid var(--text-dark)
}

.conversion-action .btn-hard-sell:hover {
    background: var(--primary-color);
    color: var(--text-dark);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgb(164 214 94 / .3)
}

@media (max-width:768px) {
    .article-conversion-box {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px
    }
    .conversion-action {
        width: 100%
    }
    .conversion-action .btn-hard-sell {
        width: 100%;
        padding: 16px 20px
    }
}

.custom-carousel-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 2rem auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgb(0 0 0 / .1);
    background-color: #f8f9fa;
    font-family: inherit
}

.custom-carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%
}

.custom-carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
    padding: 60px 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 300px
}

.custom-carousel-slide h2 {
    color: #1a365d;
    margin-bottom: 20px;
    font-size: 1.8rem
}

.custom-carousel-slide p {
    color: #4a5568;
    font-size: 1.1rem;
    line-height: 1.6
}

.custom-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgb(26 54 93 / .7);
    color: #fff;
    border: none;
    padding: 15px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 18px;
    transition: background-color 0.3s;
    z-index: 10
}

.custom-carousel-btn:hover {
    background-color: rgb(26 54 93)
}

.custom-carousel-btn.prev {
    left: 15px
}

.custom-carousel-btn.next {
    right: 15px
}

.custom-carousel-dots {
    text-align: center;
    position: absolute;
    bottom: 20px;
    width: 100%
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: #cbd5e0;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease
}

.dot.active,
.dot:hover {
    background-color: #dd6b20
}

@media (max-width:600px) {
    .custom-carousel-slide {
        padding: 40px 20px
    }
    .custom-carousel-slide h2 {
        font-size: 1.4rem
    }
    .custom-carousel-btn {
        padding: 10px;
        font-size: 14px
    }
}

.custom-carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
    padding: 60px 80px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    min-height: 400px;
    gap: 30px
}

.carousel-content {
    flex: 1;
    text-align: left
}

.carousel-content h2 {
    color: #1a365d;
    margin-bottom: 20px;
    font-size: 2rem
}

.carousel-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center
}

.carousel-image img {
    max-width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: contain
}

.icons-row {
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: center
}

.icons-row img {
    max-width: 30%;
    max-height: 120px
}

@media (max-width:768px) {
    .custom-carousel-slide {
        flex-direction: column;
        text-align: center;
        padding: 50px 40px
    }
    .carousel-content {
        text-align: center
    }
    .icons-row {
        flex-wrap: wrap
    }
    .icons-row img {
        max-width: 80px
    }
}

.case-study-podcast-container {
    max-width: 1100px;
    margin: 40px auto;
    font-family: 'Inter', sans-serif;
    color: #333;
    line-height: 1.6
}

.podcast-media-block {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 40px
}

.podcast-video-wrapper {
    flex: 1.8;
    position: relative;
    padding-bottom: 30.375%;
    height: 0;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgb(0 0 0 / .1);
    border: 2px solid var(--border-color)
}

.podcast-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none
}

.podcast-chapters-wrapper {
    flex: 1;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 25px
}

.chapters-title {
    margin-top: 0!important;
    font-size: 1.2rem!important;
    margin-bottom: 20px!important;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color)
}

.chapters-title::before {
    display: none
}

.chapters-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px
}

.chapters-list a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: .95rem;
    font-weight: 500;
    transition: all 0.2s ease
}

.chapters-list a strong {
    color: var(--primary-color);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: .8rem;
    margin-right: 12px;
    font-family: monospace;
    letter-spacing: .5px
}

.chapters-list a:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgb(164 214 94 / .2);
    transform: translateX(5px)
}

.podcast-transcript-accordion {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgb(0 0 0 / .03);
    margin-top: 20px;
    transition: all 0.3s ease
}

.podcast-transcript-accordion[open] {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgb(164 214 94 / .1)
}

.podcast-transcript-accordion summary {
    padding: 20px 25px;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-dark);
    background: var(--bg-light);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease
}

.podcast-transcript-accordion summary:hover {
    background: #f0f4ea
}

.podcast-transcript-accordion summary::-webkit-details-marker {
    display: none
}

.podcast-transcript-accordion summary::after {
    content: "Ã¢â€“Â¼";
    font-size: .9rem;
    color: var(--primary-color);
    transition: transform 0.3s ease
}

.podcast-transcript-accordion[open] summary::after {
    transform: rotate(180deg)
}

.transcript-text-content {
    padding: 30px;
    font-size: 1rem;
    color: var(--text-grey);
    line-height: 1.8;
    background: var(--bg-white);
    border-top: 1px solid var(--border-color);
    max-height: 500px;
    overflow-y: auto
}

.transcript-text-content p strong {
    color: var(--primary-color);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: .85em;
    margin-right: 8px;
    font-family: monospace
}

@media (max-width:900px) {
    .podcast-media-block {
        flex-direction: column;
        gap: 20px
    }
    .podcast-video-wrapper {
        width: 100%;
        padding-bottom: 56.25%
    }
}

.premium-podcast-card {
    display: flex;
    background: var(--text-dark);
    border-radius: 20px;
    padding: 25px;
    gap: 30px;
    align-items: center;
    box-shadow: 0 20px 40px rgb(0 0 0 / .15);
    border: 1px solid #333;
    margin-top: 20px
}

.podcast-artwork {
    position: relative;
    width: 200px;
    height: 200px;
    flex-shrink: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgb(0 0 0 / .3)
}

.podcast-artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease
}

.premium-podcast-card:hover .podcast-artwork img {
    transform: scale(1.05)
}

.large-play-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    border: none;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgb(164 214 94 / .4);
    transition: all 0.2s ease
}

.large-play-btn svg {
    width: 24px;
    height: 24px;
    margin-left: 3px
}

.large-play-btn:hover {
    transform: scale(1.1);
    background: #fff
}

.podcast-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column
}

.podcast-meta-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px
}

.podcast-badge {
    background: rgb(164 214 94 / .15);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px
}

.podcast-duration {
    color: #888;
    font-size: .9rem;
    font-weight: 600
}

.podcast-title-dark {
    color: #fff!important;
    font-size: 1.6rem!important;
    margin: 0 0 10px 0!important;
    padding: 0!important;
    line-height: 1.3!important
}

.podcast-title-dark::before {
    display: none
}

.podcast-subtitle {
    color: #bbb;
    font-size: 1rem;
    margin-bottom: 25px;
    line-height: 1.5
}

.audio-player-ui {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px
}

.time-current,
.time-total {
    color: #888;
    font-size: .85rem;
    font-family: monospace;
    font-weight: 600
}

.progress-bar-bg {
    flex-grow: 1;
    height: 6px;
    background: #444;
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden
}

.progress-bar-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: var(--primary-color);
    border-radius: 3px;
    transition: width 0.1s linear
}

.podcast-platforms {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid #333;
    padding-top: 15px
}

.listen-on {
    color: #888;
    font-size: .85rem
}

.platform-link {
    color: #fff;
    text-decoration: none;
    font-size: .85rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    background: rgb(255 255 255 / .05);
    transition: all 0.2s
}

.platform-link:hover {
    background: rgb(255 255 255 / .15);
    color: var(--primary-color)
}

@media (max-width:768px) {
    .premium-podcast-card {
        flex-direction: column;
        padding: 20px;
        text-align: center
    }
    .podcast-artwork {
        width: 150px;
        height: 150px;
        margin: 0 auto
    }
    .large-play-btn {
        top: 50%;
        left: 50%;
        bottom: auto;
        right: auto;
        transform: translate(-50%, -50%)
    }
    .large-play-btn:hover {
        transform: translate(-50%, -50%) scale(1.1)
    }
    .podcast-meta-top {
        margin-top: 15px;
        justify-content: center;
        gap: 15px
    }
    .podcast-platforms {
        justify-content: center;
        flex-wrap: wrap
    }
}

:root {
    --primary-color: #A4D65E;
    --text-dark: #111;
    --text-grey: #666;
    --bg-white: #FFF;
    --bg-light: #F9FAFB;
    --border-color: #E5E7EB;
    --sidebar-width: 260px
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-dark);
    background: var(--bg-white);
    line-height: 1.5;
    overflow-x: hidden
}

.site-container {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    min-height: 100vh;
    width: 100%
}

.sidebar {
    background: var(--bg-white);
    border-right: 1px solid var(--border-color);
    padding: 40px 24px;
    height: 100vh;
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    z-index: 100
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-dark);
    margin-bottom: 48px
}

.brand-logo {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.2rem
}

.brand-name {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -.5px
}

.nav-menu {
    list-style: none
}

.nav-item {
    margin-bottom: 8px
}

.nav-link {
    text-decoration: none;
    color: var(--text-grey);
    padding: 12px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    transition: 0.2s
}

.nav-link:hover {
    background: var(--bg-light);
    color: var(--text-dark)
}

.nav-link svg {
    width: 20px;
    stroke-width: 2
}

.mobile-header {
    display: none
}

.main-content {
    position: relative;
    width: 100%;
    overflow: hidden
}

.hero-section {
    padding: 100px 60px 80px;
    background: radial-gradient(circle at top right, rgb(164 214 94 / .12), transparent 45%);
    text-align: left
}

.hero-content {
    max-width: 800px
}

.hero-badge {
    display: inline-block;
    background: #f0fdf4;
    color: #166534;
    padding: 6px 14px;
    border-radius: 99px;
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid #bbf7d0
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 24px
}

.hero-title span {
    color: var(--primary-color);
    background: linear-gradient(120deg, var(--primary-color), #86b04a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: #fff0
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-grey);
    margin-bottom: 40px;
    max-width: 600px;
    line-height: 1.6
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap
}

.btn-primary {
    background: var(--text-dark);
    color: #fff;
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: 0.3s
}

.btn-primary:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgb(0 0 0 / .1)
}

.btn-secondary {
    background: #fff;
    color: var(--text-dark);
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid var(--border-color);
    transition: 0.3s
}

.btn-secondary:hover {
    background: var(--bg-light)
}

.carousel-container {
    width: 100%;
    overflow: hidden;
    background: var(--bg-white);
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color)
}

.carousel-track {
    display: flex;
    width: calc(250px * 10);
    animation: scroll 25s linear infinite
}

.carousel-track:hover {
    animation-play-state: paused
}

.logo-item {
    width: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(1);
    opacity: .4;
    transition: 0.3s
}

.logo-item:hover {
    filter: grayscale(0);
    opacity: 1
}

.logo-item img {
    height: 35px;
    max-width: 160px;
    object-fit: contain
}

@keyframes scroll {
    0% {
        transform: translateX(0)
    }
    100% {
        transform: translateX(calc(-250px * 5))
    }
}

.metrics-section {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    padding: 60px;
    background: var(--text-dark);
    color: #fff;
    text-align: center
}

.metric-item h3 {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 10px
}

.metric-item p {
    font-size: 1rem;
    color: #aaa;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px
}

.content-wrapper {
    padding: 80px 60px;
    max-width: 1200px;
    margin: 0 auto
}

.section-header {
    margin-bottom: 48px
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -1px
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px
}

.expertise-card {
    padding: 40px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    transition: 0.3s;
    background: var(--bg-white)
}

.expertise-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgb(0 0 0 / .03)
}

.icon-box {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: block
}

.expertise-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    font-weight: 700
}

.expertise-card p {
    color: var(--text-grey);
    font-size: 1rem
}

.tech-section {
    margin-top: 80px;
    padding: 60px;
    background: var(--bg-light);
    border-radius: 32px;
    text-align: center
}

.tech-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px
}

.tech-tag {
    background: var(--bg-white);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: .8rem;
    font-weight: 700;
    color: var(--text-grey);
    border: 1px solid var(--border-color);
    text-transform: uppercase;
    letter-spacing: .5px
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px
}

.blog-card {
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-dark);
    transition: 0.3s;
    display: flex;
    flex-direction: column
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 30px rgb(0 0 0 / .05)
}

.blog-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--border-color)
}

.blog-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-white)
}

.blog-tag {
    color: var(--primary-color);
    font-weight: 700;
    font-size: .8rem;
    text-transform: uppercase;
    margin-bottom: 10px
}

.blog-content h3 {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 15px
}

.read-more {
    margin-top: auto;
    font-weight: 700;
    font-size: .9rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 5px
}

.cta-section {
    margin-top: 80px;
    padding: 60px;
    background: linear-gradient(135deg, var(--bg-light) 0%, #E8F5E9 100%);
    border-radius: 32px;
    text-align: center;
    border: 1px solid #C8E6C9
}

.cta-section h2 {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: -1px
}

.cta-section p {
    font-size: 1.1rem;
    color: var(--text-grey);
    max-width: 600px;
    margin: 0 auto 30px
}

.site-footer {
    padding: 80px 60px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-light)
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto
}

.footer-grid h4 {
    margin-bottom: 24px;
    font-size: .95rem;
    text-transform: uppercase;
    letter-spacing: 1px
}

.footer-grid ul {
    list-style: none;
    color: var(--text-grey)
}

.footer-grid li {
    margin-bottom: 12px
}

.footer-grid a {
    text-decoration: none;
    color: var(--text-grey);
    transition: 0.2s
}

.footer-grid a:hover {
    color: var(--primary-color)
}

.mobile-nav {
    display: none
}

@media (max-width:992px) {
    .site-container {
        grid-template-columns: 1fr
    }
    .sidebar {
        display: none
    }
    .site-footer {
        padding-bottom: 120px
    }
    .mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 20px;
        background: rgb(255 255 255 / .8);
        backdrop-filter: blur(12px);
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 1000;
        border-bottom: 1px solid var(--border-color)
    }
    .hero-section {
        padding: 120px 20px 60px;
        text-align: center
    }
    .hero-description {
        margin-left: auto;
        margin-right: auto
    }
    .hero-actions {
        justify-content: center
    }
    .metrics-section {
        padding: 40px 20px;
        flex-direction: column;
        gap: 40px
    }
    .content-wrapper {
        padding: 60px 20px
    }
    .tech-section {
        padding: 40px 20px;
        border-radius: 20px
    }
    .cta-section {
        padding: 40px 20px;
        border-radius: 20px
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center
    }
    .mobile-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #fff;
        border-top: 1px solid var(--border-color);
        padding: 12px;
        justify-content: space-around;
        z-index: 1000;
        box-shadow: 0 -4px 10px rgb(0 0 0 / .03)
    }
    .mobile-nav-item {
        text-decoration: none;
        color: var(--text-grey);
        font-size: .7rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px
    }
    .mobile-nav-item svg {
        width: 22px
    }
    .more-menu-overlay {
        position: fixed;
        bottom: 75px;
        left: 10px;
        right: 10px;
        background: #fff;
        transform: translateY(150%);
        transition: 0.3s cubic-bezier(.4, 0, .2, 1);
        padding: 20px;
        display: flex;
        flex-direction: column;
        gap: 12px;
        box-shadow: 0 -10px 30px rgb(0 0 0 / .1);
        border-radius: 20px;
        z-index: 999
    }
    .more-menu-overlay.open {
        transform: translateY(0)
    }
    .more-menu-overlay a {
        text-decoration: none;
        color: var(--text-dark);
        padding: 12px;
        background: var(--bg-light);
        border-radius: 12px;
        font-weight: 500
    }
}

.about-section {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-top: 100px;
    background: var(--bg-white);
    padding: 60px;
    border-radius: 32px;
    border: 1px solid var(--border-color)
}

.about-img {
    flex: 1;
    max-width: 300px
}

.about-img img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgb(0 0 0 / .08)
}

.about-text {
    flex: 2
}

.about-text h2 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 20px
}

.about-text p {
    color: var(--text-grey);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 20px
}

.social-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #0a66c2;
    text-decoration: none;
    background: #e8f3ff;
    padding: 8px 16px;
    border-radius: 8px;
    transition: 0.2s
}

.social-badge:hover {
    background: #d0e7ff
}

.faq-section {
    margin-top: 100px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto
}

.faq-section h2 {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 40px
}

.faq-item {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    margin-bottom: 16px;
    padding: 20px 24px;
    transition: all 0.3s
}

.faq-item[open] {
    border-color: var(--primary-color);
    box-shadow: 0 10px 25px rgb(164 214 94 / .1)
}

.faq-item summary {
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 30px;
    color: var(--text-dark);
    outline: none
}

.faq-item summary::-webkit-details-marker {
    display: none
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 0;
    font-size: 1.4rem;
    color: var(--primary-color);
    transition: transform 0.3s
}

.faq-item[open] summary::after {
    content: 'Ã¢Ë†â€™';
    transform: rotate(180deg)
}

.faq-content {
    margin-top: 15px;
    padding-left: 15px;
    border-left: 3px solid var(--primary-color);
    color: var(--text-grey);
    font-size: 1rem;
    line-height: 1.6
}

@media (max-width:992px) {
    .about-section {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px
    }
    .about-text h2 {
        font-size: 1.8rem
    }
}

.mobile-header,
.mobile-nav,
.more-menu-overlay:not(.open) {
    display: none!important
}

.more-menu-overlay {
    position: fixed;
    bottom: 85px;
    left: 20px;
    right: 20px;
    background: #fff;
    z-index: 9999;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgb(0 0 0 / .2);
    flex-direction: column;
    gap: 10px
}

.more-menu-overlay.open {
    display: flex!important
}

@media (max-width:992px) {
    .mobile-header {
        display: flex!important
    }
    .mobile-nav {
        display: flex!important;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #fff;
        border-top: 1px solid var(--border-color);
        padding: 12px;
        justify-content: space-around;
        z-index: 1000
    }
    .main-footer {
        padding-bottom: 100px!important
    }
}

@media (min-width:993px) {
    .footer-container {
        display: grid;
        grid-template-columns: 1.5fr 1fr 1fr;
        gap: 60px;
        align-items: flex-start;
        max-width: 1100px;
        margin: 0 auto;
        padding: 0 60px
    }
    .footer-brand {
        display: grid;
        grid-template-columns: auto 1fr;
        align-items: center;
        gap: 0 15px
    }
    .footer-brand .brand-icon {
        grid-column: 1;
        grid-row: 1;
        width: 80px;
        height: 80px;
        margin-right: 0!important;
        margin-bottom: 0!important
    }
    .footer-brand .brand-text {
        grid-column: 2;
        grid-row: 1
    }
    .footer-socials {
        grid-column: 1 / span 2;
        grid-row: 2;
        display: flex;
        gap: 12px;
        margin-top: 20px;
        justify-content: flex-start
    }
    .footer-links {
        display: block;
        margin-top: 10px
    }
    .footer-links h4 {
        margin-bottom: 25px;
        font-size: .85rem;
        white-space: nowrap
    }
}

.link-cta {
    color: var(--text-dark)!important;
    text-decoration: none!important;
    font-weight: 800;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(.4, 0, .2, 1);
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 2px
}

.link-cta:hover {
    color: var(--primary-color)!important;
    border-bottom-color: var(--text-dark);
    transform: translateX(8px)
}

#blog div[style*="display: flex"] {
    margin-bottom: 30px
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    align-items: stretch
}

.expertise-link {
    text-decoration: none!important;
    color: inherit!important;
    display: flex;
    height: 100%
}

.expertise-card {
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
    padding: 40px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: var(--bg-white);
    transition: 0.3s
}

.expertise-card .icon-box {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: block
}

.expertise-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    font-weight: 700
}

.expertise-card p {
    color: var(--text-grey);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    flex-grow: 1
}

.content-wrapper {
    padding: 25px 10px;
    max-width: 90%
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 20%
}


/* --- Stili per il Selettore Lingua e Fix Layout --- */

 :root {
    --modal-bg: rgba(10, 10, 10, 0.98);
    --glass-border: rgba(255, 255, 255, 0.1);
}


/* 1. Stili Sidebar Multilingua (Desktop) */

.desktop-lang-container {
    margin-top: 30px;
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

.lang-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #444;
    margin-bottom: 15px;
    font-weight: 800;
}

.sidebar-lang-item {
    display: block;
    padding: 5px 0;
    font-size: 0.85rem;
    color: var(--text-grey);
    text-decoration: none;
    transition: all 0.3s ease;
}

.sidebar-lang-item:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.sidebar-lang-item.active {
    color: var(--primary-color);
    font-weight: 700;
}


/* 2. Stili Modal Lingua (Mobile) */

.lang-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--modal-bg);
    backdrop-filter: blur(20px);
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lang-modal.open {
    display: flex;
    opacity: 1;
}

.lang-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
    max-height: 70vh;
    overflow-y: auto;
    width: 100%;
    max-width: 900px;
}

.lang-modal-item {
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    text-align: center;
    font-size: 0.9rem;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}


/* 3. FIX DEFINITIVO DOPPIO LOGO E SOVRAPPOSIZIONE */

@media (min-width: 993px) {
    /* Su Desktop: nascondi l'header mobile */
    .mobile-header {
        display: none !important;
    }
}

@media (max-width: 992px) {
    /* Nascondi la sidebar desktop */
    .sidebar,
    .desktop-lang-container {
        display: none !important;
    }
    /* Rendi l'header mobile compatto, orizzontale e piÃ¹ alto */
    .mobile-header {
        display: flex !important;
        justify-content: center;
        align-items: center;
        height: 90px;
        /* Aumentato per dare piÃ¹ respiro al logo */
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 1000;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }
    /* Forza il logo mobile ad essere in linea (sovrascrive il tuo CSS) */
    .mobile-header .brand-logo-container {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
    }
    /* Ingrandisce l'icona mantenendo le giuste proporzioni */
    .mobile-header .brand-icon {
        width: 50px !important;
        /* Aumentato */
        height: 50px !important;
        /* Aumentato */
        margin-right: 12px !important;
        margin-bottom: 0 !important;
    }
    /* Testo piÃ¹ grande */
    .mobile-header .brand-name {
        font-size: 1.5rem !important;
        /* Aumentato */
    }
    /* Aggiunge molto piÃ¹ spazio sopra il testo della Hero per evitare qualsiasi sovrapposizione */
    .hero-section {
        padding-top: 150px !important;
        /* Aumentato per staccare il titolo dalla barra */
    }
}

.faq-item summary::after {
    content: none !important;
    display: none !important;
}

.faq-icon {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    stroke: var(--primary-color);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item[open] .faq-icon {
    transform: translateY(-50%) rotate(180deg);
}

.faq-item summary {
    display: flex;
    align-items: center;
}

.hero-image-container {
    position: relative;
    width: 100%;
    height: 50vh;
    /* Occupa il 50% dell'altezza dello schermo */
    max-height: 450px;
    /* Non supera mai i 450px di altezza assoluta */
    min-height: 300px;
    /* Evita che diventi troppo stretta su schermi bassi */
    overflow: hidden;
    /* Fondamentale: nasconde le parti di immagine in eccesso */
}