/*
 * Modello di pagina "stile MicroDens" (Pagina::MICRODENS).
 * Caricato da templates/base.html.twig su tutto il sito (non sulle Landing): le pagine del modello hanno
 * .layout-microdens sul contenitore principale; pagine, categorie e prodotti possono metterlo attorno a un singolo blocco.
 * Le regole sono limitate al contenitore .layout-microdens, così non toccano il resto del sito
 * (fanno eccezione la barra ad ancore, creata solo dallo script, e i @keyframes con prefisso md-).
 * Riferimento: linee guida grafiche web Gibertini v1.0 (sezioni indicate nei commenti).
 */

/* ==================== Variabili (Appendice A) ==================== */
/* --color-accent è il colore di settore: il template lo sovrascrive con il valore scelto nel CMS */
.layout-microdens {
    --color-primary: #004D66;
    --color-primary-dark: #003d52;
    --color-secondary: #2d3436;
    --color-text: #2d3436;
    --color-grey: #636e72;
    --color-light: #f5f7fa;
    --color-dark: #1a1a2e;
    --color-accent: #64b5f6;
    --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: all 0.3s ease;
}

/* ==================== Neutralizzazione del tema Porto ==================== */
/* Porto definisce titoli, paragrafi e .section in modo diverso da Bootstrap: si riportano ai valori di base */
.layout-microdens h1,
.layout-microdens h2,
.layout-microdens h3,
.layout-microdens h4,
.layout-microdens h5,
.layout-microdens h6 {
    letter-spacing: normal;
    text-transform: none;
    margin: 0 0 0.5rem;
}
.layout-microdens h1 { font-size: calc(1.375rem + 1.5vw); }
.layout-microdens h2 { font-size: calc(1.325rem + 0.9vw); }
.layout-microdens h3 { font-size: calc(1.3rem + 0.6vw); }
.layout-microdens h4 { font-size: calc(1.275rem + 0.3vw); }
.layout-microdens h5 { font-size: 1.25rem; }
.layout-microdens h6 { font-size: 1rem; }
@media (min-width: 1200px) {
    .layout-microdens h1 { font-size: 2.5rem; }
    .layout-microdens h2 { font-size: 2rem; }
    .layout-microdens h3 { font-size: 1.75rem; }
    .layout-microdens h4 { font-size: 1.5rem; }
}
/* Porto applica l'antialiasing a tutto il sito (testo più sottile su macOS): le pagine MicroDens usano la resa standard */
.layout-microdens {
    -webkit-font-smoothing: auto;
    -moz-osx-font-smoothing: auto;
}
.layout-microdens li {
    line-height: inherit;
}
.layout-microdens p {
    color: inherit;
    line-height: inherit;
    margin: 0 0 1rem;
}
.layout-microdens ul,
.layout-microdens ol {
    padding-left: 2rem;
    margin-bottom: 1rem;
}
.layout-microdens .section {
    background: transparent;
    border-top: 0;
    margin: 0;
}
/* Link con una classe (pulsanti, schede): niente sottolineatura al passaggio del mouse */
.layout-microdens a[class]:hover {
    text-decoration: none;
}

/* ==================== Stili di base e componenti (estratti dalle pagine MicroDens) ==================== */
:where(.layout-microdens) * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.layout-microdens {
    font-family: var(--font-primary);
    font-weight: 400;
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: clip;
    position: relative;
    font-size: 15px;
}

.layout-microdens h1,
.layout-microdens h2,
.layout-microdens h3,
.layout-microdens h4,
.layout-microdens h5,
.layout-microdens h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-secondary);
}

.layout-microdens b,
.layout-microdens strong {
    font-weight: 600;
}

.layout-microdens .font-weight-light {
    font-weight: 300 !important;
}

.layout-microdens .font-weight-normal {
    font-weight: 400 !important;
}

.layout-microdens .font-weight-semibold {
    font-weight: 600 !important;
}

.layout-microdens .text-10 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem) !important;
}

.layout-microdens .text-9 {
    font-size: clamp(1.5rem, 3vw, 2rem) !important;
}

.layout-microdens .text-8 {
    font-size: clamp(1.3rem, 2.5vw, 1.75rem) !important;
}

.layout-microdens .text-7 {
    font-size: clamp(1.1rem, 2vw, 1.5rem) !important;
}

.layout-microdens .text-6 {
    font-size: clamp(1rem, 1.75vw, 1.25rem) !important;
}

.layout-microdens .text-5 {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem) !important;
}

.layout-microdens .text-4 {
    font-size: clamp(0.85rem, 1.25vw, 1rem) !important;
}

.layout-microdens .text-3 {
    font-size: 0.9rem !important;
}

.layout-microdens .text-2 {
    font-size: 0.8rem !important;
}

.layout-microdens .line-height-7 {
    line-height: 1.7 !important;
}

.layout-microdens .line-height-9 {
    line-height: 1.9 !important;
}

.layout-microdens .section {
    position: relative;
    padding: 70px 0;
}

.layout-microdens .bg-color-primary {
    background-color: var(--color-primary) !important;
}

.layout-microdens .bg-color-dark {
    background-color: var(--color-dark) !important;
}

.layout-microdens .bg-color-light {
    background-color: var(--color-light) !important;
}

.layout-microdens .bg-color-white {
    background-color: #ffffff !important;
}

.layout-microdens .section-header {
    margin-bottom: 50px;
}

.layout-microdens .section-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--color-secondary);
    margin-bottom: 0.75rem;
}

.layout-microdens .section-subtitle {
    font-size: 0.95rem;
    color: var(--color-grey);
    max-width: 600px;
    margin: 0 auto;
}

.layout-microdens .usp-section {
    background: #fff;
    padding: 60px 0;
}

.layout-microdens .usp-card {
    background: var(--color-light);
    padding: 30px 25px;
    border-radius: 6px;
    box-shadow: none;
    transition: all 0.25s ease;
    height: 100%;
    text-align: center;
    position: relative;
    border: 1px solid #e9ecef;
}

.layout-microdens .usp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-color: var(--color-primary);
}

.layout-microdens .usp-icon {
    width: 55px;
    height: 55px;
    background: var(--color-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    color: #fff;
    font-size: 1.4rem;
}

.layout-microdens .usp-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: var(--color-secondary);
}

.layout-microdens .usp-card p {
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--color-grey);
    font-size: 0.85rem;
    line-height: 1.6;
}

.layout-microdens .usp-stat {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary);
}

.layout-microdens .tech-section {
    background: #fff;
    color: var(--color-secondary);
    position: relative;
    overflow: hidden;
    padding: 70px 0;
}

.layout-microdens .tech-section h2 {
    color: var(--color-secondary);
}

.layout-microdens .tech-feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.layout-microdens .tech-feature-icon {
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
    color: #fff;
    font-size: 1rem;
}

.layout-microdens .tech-feature h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--color-secondary);
}

.layout-microdens .tech-feature p {
    font-weight: 400;
    color: var(--color-grey);
    font-size: 0.85rem;
    line-height: 1.5;
}

.layout-microdens .tech-image {
    position: relative;
    border-radius: 8px;
    overflow: visible;
    box-shadow: none;
    background: transparent;
    max-width: 320px;
    margin: 0 auto;
}

.layout-microdens .tech-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.layout-microdens .tech-feature-list li {
    padding: 6px 0;
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--color-text);
}

.layout-microdens .sample-steps {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.layout-microdens .sample-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: linear-gradient(135deg, #f0f6f8, #e6f0f3);
    border: 1px solid rgba(0, 77, 102, 0.18);
    border-left: 3px solid var(--color-primary);
    border-radius: 8px;
    padding: 10px 14px;
    transition: box-shadow 0.2s ease;
}

.layout-microdens .sample-step:hover {
    box-shadow: 0 4px 14px rgba(0, 77, 102, 0.12);
}

.layout-microdens .sample-step-num {
    width: 24px;
    height: 24px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 1px;
}

.layout-microdens .sample-step-body strong {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-secondary);
    margin-bottom: 2px;
}

.layout-microdens .sample-step-body span {
    font-size: 0.78rem;
    color: var(--color-grey);
    line-height: 1.4;
}

.layout-microdens .sample-step-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    background: #fff;
    color: var(--color-primary);
    border: 1px solid rgba(0, 77, 102, 0.35);
    border-radius: 4px;
    padding: 1px 6px;
    margin-left: 6px;
    vertical-align: middle;
}

.layout-microdens .sample-steps-title {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin-bottom: 10px;
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.layout-microdens .sample-steps-title::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
}

.layout-microdens .limit-card {
    background: #fff;
    border-radius: 6px;
    padding: 18px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.layout-microdens .limit-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.layout-microdens .limit-card img {
    max-height: 220px;
    object-fit: contain;
}

.layout-microdens .tech-image img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 15px 40px rgba(0,0,0,0.25));
}

.layout-microdens .app-section {
    background: linear-gradient(135deg, #004D66 0%, #003d52 30%, #002d3d 70%, #001f2b 100%);
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.layout-microdens .app-section::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 80px;
    background: #fff;
    clip-path: ellipse(55% 100% at 50% 0%);
}

.layout-microdens .app-section .section-title {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.layout-microdens .app-section .section-subtitle {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    max-width: 500px;
    margin: 0 auto 2.5rem;
}

.layout-microdens .app-cards-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 340px);
    column-gap: 120px;
    row-gap: 80px;
    padding: 10px 0 20px;
    justify-content: center;
}

.layout-microdens .app-card {
    background: transparent;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    transition: all 0.3s ease;
    position: relative;
    border: none;
}

.layout-microdens .app-card::before {
    display: none;
}

.layout-microdens .app-card:hover {
    transform: translateY(-5px);
}

.layout-microdens .app-card:hover .app-card-img {
    transform: scale(1.02);
}

.layout-microdens .app-card-img {
    height: 140px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    transition: transform 0.3s ease;
}

.layout-microdens .app-card-img::after {
    display: none;
}

.layout-microdens .app-card-img .app-card-title {
    display: none;
}

.layout-microdens .app-card-header {
    display: none;
}

.layout-microdens .app-card-body {
    display: block;
    padding: 20px 5px;
    background: transparent;
}

.layout-microdens .app-card-body h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 8px 0;
}

.layout-microdens .app-card-body .app-subtitle {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 12px;
    font-weight: 500;
}

.layout-microdens .app-card-body p {
    font-weight: 400;
    color: rgba(255,255,255,0.9);
    margin-bottom: 15px;
    font-size: 0.85rem;
    line-height: 1.7;
}

.layout-microdens .app-card ul {
    display: none;
}

.layout-microdens .app-card .btn {
    font-size: 0.75rem;
    padding: 10px 20px;
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    transition: all 0.2s;
}

.layout-microdens .app-card .btn:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
}

.layout-microdens .app-nav {
    display: none;
}

.layout-microdens .specs-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.layout-microdens .specs-tab {
    background: rgba(0, 77, 102, 0.08);
    color: var(--color-primary);
    padding: 8px 20px;
    border: 1px solid transparent;
    border-radius: 3px;
    font-weight: 500;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.layout-microdens .specs-tab:hover,
.layout-microdens .specs-tab.active {
    background: rgba(0, 77, 102, 0.15);
    color: var(--color-primary);
    border-color: transparent;
}

.layout-microdens .specs-content {
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

.layout-microdens .specs-content.active {
    display: block;
    animation: md-fadeInUp 0.4s forwards;
}

.layout-microdens .specs-table {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    border: 1px solid #e9ecef;
}

.layout-microdens .specs-table table {
    width: 100%;
    margin: 0;
}

.layout-microdens .specs-table th {
    background: var(--color-primary);
    color: #fff;
    padding: 14px 18px;
    font-weight: 600;
    font-size: 0.85rem;
    text-align: left;
}

.layout-microdens .specs-table td {
    padding: 12px 18px;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 400;
    font-size: 0.85rem;
}

.layout-microdens .specs-table tr:last-child td {
    border-bottom: none;
}

.layout-microdens .specs-table td:first-child {
    font-weight: 500;
    color: var(--color-secondary);
}

.layout-microdens .cta-section {
    background: var(--color-primary);
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 60px 0;
}

.layout-microdens .cta-section .container {
    position: relative;
    z-index: 2;
}

.layout-microdens .cta-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

/* Titoli sulle fasce scure: il colore di base dei titoli (grigio scuro) su Ottanio non si leggerebbe */
.layout-microdens .cta-section h2,
.layout-microdens .workflow-section .section-title,
.layout-microdens .bg-color-primary .section-title,
.layout-microdens .bg-color-dark .section-title {
    color: #fff;
}
.layout-microdens .workflow-section .section-subtitle,
.layout-microdens .bg-color-primary .section-subtitle,
.layout-microdens .bg-color-dark .section-subtitle {
    color: rgba(255, 255, 255, 0.85);
}

.layout-microdens .cta-section p {
    font-size: 0.95rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255,255,255,0.85);
}

.layout-microdens .btn-cta {
    background: #fff;
    color: var(--color-primary);
    padding: 12px 30px;
    border-radius: 3px;
    font-weight: 600;
    font-size: 0.85rem;
    border: 2px solid #fff;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.layout-microdens .btn-cta:hover {
    background: transparent;
    color: #fff;
    transform: none;
}

.layout-microdens #FORM {
    background: var(--color-light);
}

.layout-microdens .py-xl-5 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

.layout-microdens .my-5 {
    margin-top: 3rem !important;
    margin-bottom: 3rem !important;
}

.layout-microdens .mb-5 {
    margin-bottom: 3rem !important;
}

.layout-microdens .mt-5 {
    margin-top: 3rem !important;
}

.layout-microdens .method-section {
    background: var(--color-light);
}

.layout-microdens .method-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.layout-microdens .method-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0, 77, 102, 0.2);
}

.layout-microdens .method-card-header {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #fff;
    padding: 30px;
    text-align: center;
}

.layout-microdens .method-icon {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.5rem;
}

.layout-microdens .method-card-header h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #fff;
}

.layout-microdens .method-card-header .method-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    color: rgba(255,255,255,0.9);
}

.layout-microdens .method-card-body {
    padding: 30px;
}

.layout-microdens .method-card-body p {
    font-weight: 300;
    color: var(--color-grey);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.layout-microdens .method-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.layout-microdens .method-features li {
    padding: 12px 0 12px 40px;
    position: relative;
    font-weight: 300;
    color: var(--color-secondary);
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s;
}

.layout-microdens .method-features li:hover {
    background: rgba(0, 77, 102, 0.05);
    padding-left: 45px;
}

.layout-microdens .method-features li:last-child {
    border-bottom: none;
}

.layout-microdens .method-features li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--color-primary);
    width: 28px;
    height: 28px;
    background: rgba(0, 77, 102, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    line-height: 28px;
    text-align: center;
    padding-left: 7px;
}

.layout-microdens .method-tag {
    display: inline-block;
    background: rgba(0, 77, 102, 0.1);
    color: var(--color-primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-right: 8px;
    margin-bottom: 8px;
    border: 1px solid rgba(0, 77, 102, 0.2);
    transition: all 0.3s;
}

.layout-microdens .method-tag:hover {
    background: var(--color-primary);
    color: #fff;
    transform: translateY(-2px);
}

.layout-microdens .workflow-section {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #fff;
    position: relative;
    overflow: hidden;
    padding: 80px 0 100px;
}

.layout-microdens .workflow-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 70%, rgba(255,255,255,0.05) 0%, transparent 50%),
                        radial-gradient(circle at 70% 30%, rgba(255,255,255,0.05) 0%, transparent 50%);
    animation: md-float 20s ease-in-out infinite;
}

.layout-microdens .workflow-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2.5rem;
    position: relative;
    background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 24px;
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.layout-microdens .workflow-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-primary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
    border-radius: 20px 20px 0 0;
}

.layout-microdens .workflow-step:hover::before {
    transform: scaleX(1);
}

.layout-microdens .workflow-step:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.layout-microdens .workflow-number {
    width: 60px;
    height: 60px;
    background: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 25px;
    flex-shrink: 0;
    color: var(--color-dark);
    font-size: 1.5rem;
    font-weight: 500;
    position: relative;
    z-index: 1;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.layout-microdens .workflow-content h4 {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: #fff;
}

.layout-microdens .workflow-content p {
    font-weight: 300;
    color: rgba(255,255,255,0.7);
    margin: 0;
    line-height: 1.6;
}

.layout-microdens .params-section {
    background: #fff;
}

.layout-microdens .params-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.layout-microdens .params-tab {
    background: rgba(0, 77, 102, 0.08);
    color: var(--color-primary);
    padding: 8px 20px;
    border: 1px solid transparent;
    border-radius: 3px;
    font-weight: 500;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.layout-microdens .params-tab:hover,
.layout-microdens .params-tab.active {
    background: rgba(0, 77, 102, 0.15);
    color: var(--color-primary);
    border-color: transparent;
}

.layout-microdens .params-content {
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

.layout-microdens .params-content.active {
    display: block;
    animation: md-fadeInUp 0.4s forwards;
}

.layout-microdens .params-table {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    border: 1px solid #e9ecef;
    margin-bottom: 2rem;
}

.layout-microdens .params-table table {
    width: 100%;
    margin: 0;
}

.layout-microdens .params-table th {
    background: var(--color-primary);
    color: #fff;
    padding: 14px 18px;
    font-weight: 600;
    text-align: left;
    font-size: 0.85rem;
}

.layout-microdens .params-table td {
    padding: 12px 18px;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 400;
    font-size: 0.85rem;
}

.layout-microdens .params-table tr:last-child td {
    border-bottom: none;
}

.layout-microdens .params-table td:first-child {
    font-weight: 500;
    color: var(--color-secondary);
}

.layout-microdens .params-table .param-value {
    color: var(--color-primary);
    font-weight: 500;
}

.layout-microdens .params-table .param-unit {
    color: var(--color-grey);
    font-size: 0.85rem;
}

.layout-microdens .params-table tbody tr {
    transition: background 0.2s;
}

.layout-microdens .params-table tbody tr:hover {
    background: rgba(0,77,102,0.03);
}

.layout-microdens .standards-section-new {
    background: linear-gradient(135deg, #0a1a1f, #0d2428);
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}

.layout-microdens .standards-section-new::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 60% 40%, rgba(0, 77, 102, 0.15) 0%, transparent 50%), radial-gradient(circle at 40% 60%, rgba(100, 181, 246, 0.06) 0%, transparent 50%);
}

.layout-microdens .standards-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.layout-microdens .standards-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(0,77,102,0.2), rgba(0,77,102,0.1));
    border: 1px solid rgba(0,77,102,0.3);
    padding: 10px 24px;
    border-radius: 50px;
    color: #64b5f6;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.layout-microdens .standards-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1rem;
}

.layout-microdens .standards-title b {
    color: #fff;
    font-weight: 600;
}

.layout-microdens .standards-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

.layout-microdens .standards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
    z-index: 2;
    margin-bottom: 50px;
}

.layout-microdens .standard-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.layout-microdens .standard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), #64b5f6);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
}

.layout-microdens .standard-card:hover::before {
    transform: scaleX(1);
}

.layout-microdens .standard-card:hover {
    transform: translateY(-8px);
    border-color: rgba(100,181,246,0.3);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3), 0 0 30px rgba(100,181,246,0.1);
}

.layout-microdens .standard-card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-primary), #0d47a1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 20px;
    box-shadow: 0 8px 25px rgba(0,77,102,0.4);
}

.layout-microdens .standard-card-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 8px;
}

.layout-microdens .standard-card-desc {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
}

.layout-microdens .usecase-card {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    padding: 35px 30px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    text-align: center;
    border: 1px solid rgba(0, 77, 102, 0.1);
    position: relative;
    overflow: hidden;
}

.layout-microdens .usecase-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-primary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
}

.layout-microdens .usecase-card:hover::before {
    transform: scaleX(1);
}

.layout-microdens .usecase-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 60px rgba(0, 77, 102, 0.18);
    border-color: rgba(0, 77, 102, 0.2);
}

.layout-microdens .usecase-icon {
    width: 80px;
    height: 80px;
    background: var(--color-accent);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: #fff;
    font-size: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s;
}

.layout-microdens .usecase-card:hover .usecase-icon {
    transform: scale(1.1) rotate(-5deg);
}

.layout-microdens .usecase-card h4 {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--color-secondary);
}

.layout-microdens .usecase-card p {
    font-weight: 300;
    color: var(--color-grey);
    margin: 0;
    line-height: 1.7;
}

.layout-microdens .btn-cta-outline {
    background: transparent;
    color: #fff;
    padding: 12px 30px;
    border-radius: 3px;
    font-weight: 600;
    font-size: 0.85rem;
    border: 2px solid #fff;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    margin-left: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.layout-microdens .btn-cta-outline:hover {
    background: #fff;
    color: var(--color-primary);
    transform: none;
}

@media (max-width: 1100px) {
    .layout-microdens .app-cards-wrapper {
        grid-template-columns: repeat(2, 280px);
        column-gap: 50px;
        row-gap: 35px;
    }
}

@media (max-width: 1024px) {
    .layout-microdens .standards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .layout-microdens .section {
        padding: 60px 0;
    }
    .layout-microdens .contact-form {
        padding: 30px 20px;
    }
    .layout-microdens .specs-tabs {
        flex-direction: column;
    }
    .layout-microdens .specs-tab {
        width: 100%;
    }
    .layout-microdens .standards-section-new {
        padding: 60px 0;
    }
    .layout-microdens .standards-grid {
        grid-template-columns: 1fr;
    }
    .layout-microdens .workflow-step::before {
        left: 25px;
    }
    .layout-microdens .workflow-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

@media (max-width: 700px) {
    .layout-microdens .app-cards-wrapper {
        grid-template-columns: 300px;
        column-gap: 0;
        row-gap: 30px;
    }
}

/* ==================== Schede di navigazione (7.4) ==================== */
/* Scheda attiva in Ottanio pieno (la regola estratta la univa al passaggio del mouse) */
.layout-microdens .specs-tab.active,
.layout-microdens .params-tab.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

/* ==================== Titolo principale di pagina, hero (7.1) ==================== */
/* Immagine di sfondo facoltativa: style="--hero-image: url('/media/images/…')" sulla sezione */
.layout-microdens .hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 100px 0 80px;
    background: linear-gradient(135deg, #004D66 0%, #003d52 30%, #002d3d 70%, #001f2b 100%);
}
.layout-microdens .hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--hero-image, none) no-repeat center center;
    background-size: cover;
    opacity: 0.2;
}
.layout-microdens .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    width: 100%;
}
.layout-microdens .hero-badge {
    display: inline-block;
    background: var(--color-accent);
    color: var(--color-dark);
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}
.layout-microdens .hero-subtitle {
    display: block;
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}
.layout-microdens .hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: #fff;
}
.layout-microdens .hero-title b {
    font-weight: 600;
}
.layout-microdens .hero-title .highlight {
    color: var(--color-accent);
}
.layout-microdens .hero-tagline {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    font-weight: 400;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
    max-width: 800px;
    color: rgba(255, 255, 255, 0.85);
}
.layout-microdens .hero-tagline b {
    font-weight: 600;
}
.layout-microdens .hero-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

/* Pulsanti del titolo (6) */
.layout-microdens .btn-primary-hero,
.layout-microdens .btn-secondary-hero {
    padding: 10px 24px;
    border-radius: 3px;
    font-weight: 600;
    font-size: 0.8rem;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.layout-microdens .btn-primary-hero {
    background: #fff;
    color: var(--color-primary);
    border: 2px solid #fff;
}
.layout-microdens .btn-primary-hero:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: transparent;
    color: var(--color-primary-dark);
    transform: translateY(-2px);
}
.layout-microdens .btn-secondary-hero {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
}
.layout-microdens .btn-secondary-hero:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
}

/* Riquadri dei dati tecnici */
.layout-microdens .hero-specs {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}
.layout-microdens .hero-spec-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}
.layout-microdens .hero-spec-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #fff;
}
.layout-microdens .hero-spec-label {
    display: block;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.85);
}
.layout-microdens .scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    text-align: center;
    z-index: 3;
    animation: md-bounce 2s infinite, md-fadeOut 0.5s ease-out 3s forwards;
}
.layout-microdens .scroll-indicator i {
    font-size: 1.5rem;
}

/* Variante a due colonne (testo a sinistra, immagine a destra): class="hero-section hero-split" */
.layout-microdens .hero-split {
    min-height: 85vh;
}
.layout-microdens .hero-split::before {
    inset: 0 0 0 auto;
    width: 55%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.08) 100%);
    clip-path: ellipse(80% 100% at 100% 50%);
    opacity: 1;
}
.layout-microdens .hero-split::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 80px;
    background: #fff;
    clip-path: ellipse(55% 100% at 50% 100%);
}
.layout-microdens .hero-split .hero-content {
    text-align: left;
}
.layout-microdens .hero-split .hero-tagline {
    margin-left: 0;
}
.layout-microdens .hero-split .hero-buttons,
.layout-microdens .hero-split .hero-specs {
    justify-content: flex-start;
}
.layout-microdens .hero-split .hero-specs {
    gap: 25px;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}
/* nella colonna di testo i dati tecnici sono senza riquadro, come nella pagina MicroDens */
.layout-microdens .hero-split .hero-spec-item {
    text-align: left;
    background: none;
    padding: 0;
    border-radius: 0;
    backdrop-filter: none;
}
/* Le misure della sezione 7.1 delle linee guida valgono per l'hero centrato a tutta larghezza:
   nella colonna di testo dell'hero a due colonne si usano quelle della pagina MicroDens */
.layout-microdens .hero-split .hero-subtitle {
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.layout-microdens .hero-split .hero-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
}
.layout-microdens .hero-split .hero-title b {
    font-weight: 700;
}
.layout-microdens .hero-split .hero-tagline {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    max-width: 450px;
}
.layout-microdens .hero-split .hero-spec-value {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
}
.layout-microdens .hero-split .hero-spec-label {
    font-size: 0.65rem;
    letter-spacing: 0.5px;
}
.layout-microdens .hero-density-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}
.layout-microdens .hero-density-bg svg {
    width: 100%;
    height: 100%;
}
.layout-microdens .hero-row {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}
.layout-microdens .hero-text-col {
    flex: 1;
    max-width: 500px;
}
.layout-microdens .hero-image-col {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 20px;
}
.layout-microdens .hero-image-wrapper {
    position: relative;
    display: inline-block;
}
.layout-microdens .hero-image-col img {
    max-width: 280px;
    width: 100%;
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.25));
}
.layout-microdens .hero-bluetooth-badge {
    position: absolute;
    top: 10px;
    right: -120px;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.layout-microdens .hero-bluetooth-badge i {
    color: #fff;
    font-size: 3rem;
}
@media (max-width: 991px) {
    .layout-microdens .hero-row {
        flex-direction: column;
        text-align: center;
    }
    .layout-microdens .hero-text-col {
        max-width: 100%;
    }
    .layout-microdens .hero-split .hero-content {
        text-align: center;
    }
    .layout-microdens .hero-split .hero-tagline {
        margin-left: auto;
    }
    .layout-microdens .hero-split .hero-buttons,
    .layout-microdens .hero-split .hero-specs {
        justify-content: center;
    }
    .layout-microdens .hero-split .hero-spec-item {
        text-align: center;
    }
    .layout-microdens .hero-image-col {
        margin-top: 40px;
        justify-content: center;
        padding-right: 0;
    }
    .layout-microdens .hero-image-col img {
        max-height: 350px;
    }
    .layout-microdens .hero-bluetooth-badge {
        display: none;
    }
}
/* Mobile (8): pulsanti incolonnati, contenuto spostato di 120 px dall'alto */
@media (max-width: 768px) {
    .layout-microdens .hero-section {
        padding-top: 0;
    }
    .layout-microdens .hero-content {
        padding-top: 120px;
    }
    .layout-microdens .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .layout-microdens .hero-specs {
        gap: 15px;
    }
    .layout-microdens .hero-spec-item {
        padding: 15px 20px;
    }
}

/* ==================== Etichette di sezione (7.5) ==================== */
/* Su sfondo chiaro: testo in Ottanio. Su sfondo scuro o in Ottanio: pillola tenue nel colore di settore */
.layout-microdens .section-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
    display: block;
}
.layout-microdens .workflow-section .section-label,
.layout-microdens .app-section .section-label,
.layout-microdens .cta-section .section-label,
.layout-microdens .bg-color-primary .section-label,
.layout-microdens .bg-color-dark .section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    background: color-mix(in srgb, var(--color-accent) 18%, transparent);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-color: color-mix(in srgb, var(--color-accent) 45%, transparent);
    padding: 10px 24px;
    border-radius: 50px;
    margin-bottom: 1rem;
}

/* ==================== Barra ad ancore ==================== */
/* Creata da public/js/microdens.js con le sezioni che hanno l'attributo data-menu */
.md-anchor-bar {
    position: relative;
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}
.md-anchor-bar.is-fixed {
    position: fixed;
    left: 0;
    right: 0;
}
.md-anchor-bar ul {
    display: flex;
    justify-content: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 10px 15px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}
.md-anchor-bar a {
    display: block;
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text);
    border-radius: 3px;
    text-decoration: none;
    transition: var(--transition);
}
.md-anchor-bar a:hover {
    color: var(--color-primary);
    background: rgba(0, 77, 102, 0.08);
}
.md-anchor-bar a.active {
    color: #fff;
    background: var(--color-primary);
}
@media (max-width: 768px) {
    .md-anchor-bar ul {
        justify-content: flex-start;
    }
}

/* ==================== Animazioni ==================== */
@keyframes md-bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes md-fadeOut {
    to { opacity: 0; visibility: hidden; }
}

@keyframes md-fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes md-pulse {
    0% { box-shadow: 0 5px 20px rgba(0,77,102,0.3); }
    50% { box-shadow: 0 5px 30px rgba(0,77,102,0.6); }
    100% { box-shadow: 0 5px 20px rgba(0,77,102,0.3); }
}

@keyframes md-float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-2%, 2%) rotate(1deg); }
}

/* ==================== Componenti .md-* delle pagine di settore ==================== */
/* Schede, elenchi con spunta, passi numerati, miniature, didascalie e note usati dalle nuove pagine di settore (fornite da Gibertini, ottobre 2026) */
.layout-microdens .md-card { background: #fff; border: 1px solid #C5D1DA; border-radius: 12px; padding: 28px 24px; height: 100%; display: flex; flex-direction: column; }
.layout-microdens .md-card h3 { font-size: 1.15rem; font-weight: 600; color: var(--color-primary); margin-bottom: 4px; }
.layout-microdens .md-card-sub { font-size: 0.78rem; font-weight: 600; color: var(--color-grey); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.layout-microdens .md-card p { font-size: 0.92rem; color: #444; line-height: 1.7; margin-bottom: 1rem; }
.layout-microdens .md-icon { width: 52px; height: 52px; background: var(--color-primary); color: #fff; border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; flex-shrink: 0; }
.layout-microdens .md-list { list-style: none; padding: 0; margin: 0; }
.layout-microdens .md-list li { position: relative; padding: 7px 0 7px 22px; border-top: 1px solid #EBF0F4; font-size: 0.88rem; color: #444; line-height: 1.55; }
.layout-microdens .md-list li:first-child { border-top: 0; }
.layout-microdens .md-list li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: 0; top: 8px; font-size: 0.7rem; color: var(--color-primary); }
.layout-microdens .md-steps { list-style: none; padding: 0; margin: 0; counter-reset: md-step; }
.layout-microdens .md-steps li { position: relative; padding: 0 0 20px 50px; counter-increment: md-step; }
.layout-microdens .md-steps li:last-child { padding-bottom: 0; }
.layout-microdens .md-steps li::before { content: counter(md-step); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--color-primary); color: #fff; font-size: 0.85rem; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.layout-microdens .md-steps li strong { display: block; font-size: 1rem; font-weight: 600; color: var(--color-secondary); margin-bottom: 2px; }
.layout-microdens .md-steps li span { display: block; font-size: 0.92rem; color: #444; line-height: 1.65; }
.layout-microdens .md-thumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.layout-microdens .md-thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid #C5D1DA; background: #fff; cursor: zoom-in; transition: border-color 0.2s; }
.layout-microdens .md-thumbs a:hover img { border-color: var(--color-primary); }
.layout-microdens .md-screens { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: auto; padding-top: 8px; }
.layout-microdens .md-screen { width: 150px; max-width: 46%; height: auto; border-radius: 8px; border: 1px solid #C5D1DA; }
.layout-microdens .md-caption { font-size: 0.85rem; color: var(--color-grey); margin-top: 0.75rem; margin-bottom: 0; }
.layout-microdens .md-render { max-width: 100%; max-height: 560px; width: auto; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15)); }
.layout-microdens .md-link { font-size: 0.85rem; font-weight: 600; color: var(--color-primary); text-decoration: none; margin-top: auto; }
.layout-microdens .md-link:hover { color: var(--color-primary-dark); text-decoration: underline; }
.layout-microdens a.md-card-link { display: block; height: 100%; text-decoration: none; color: inherit; }
.layout-microdens a.md-card-link .md-card { transition: border-color 0.2s; }
.layout-microdens a.md-card-link:hover .md-card { border-color: var(--color-primary); }
.layout-microdens .md-note { background: #EBF0F4; border: 0; border-radius: 8px; padding: 14px 18px; margin-top: 18px; font-size: 0.85rem; color: #444; }
.layout-microdens .md-note code { color: var(--color-primary); background: transparent; }
.layout-microdens .btn-primary { background: var(--color-primary); border-color: var(--color-primary); }
.layout-microdens .btn-primary:hover, .layout-microdens .btn-primary:focus { background: var(--color-primary-dark); border-color: var(--color-primary-dark); }
