.parchment {
    background: linear-gradient(135deg, #f4e7d7 0%, #f0dcc9 50%, #e8d5bf 100%);
    background-image: 
        radial-gradient(circle at 25px 25px, rgba(139, 69, 19, 0.1) 2px, transparent 3px),
        radial-gradient(circle at 50px 75px, rgba(160, 82, 45, 0.1) 1px, transparent 2px);
    border: 3px solid #d4a574;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 
        inset 0 0 20px rgba(139, 69, 19, 0.1),
        0 8px 25px rgba(0,0,0,0.15);
    position: relative;
    margin: 20px 0;
}

.parchment::before,
.parchment::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: #d4a574;
    border-radius: 50%;
    top: -10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.parchment::before {
    left: 30px;
}

.parchment::after {
    right: 30px;
}

/* Page Menu */
.page-menu {
display: none;
}
.page-menu.active {
    display: block;
}


/* Page Tabs */
.page-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    margin: 2rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.tab-button {
    flex: 1;
    max-width: none;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: none;
    color: #043160;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-button:not(:last-child) {
    border-right: 1px solid #dee2e6;
}

.tab-button:hover {
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    transform: translateY(-2px);
}

.tab-button.active {
    background: linear-gradient(135deg, #043160, #1e5289);
    color: white;
    box-shadow: 0 4px 12px rgba(4, 49, 96, 0.3);
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: white;
}

/* Page Content */
.page-content {
    display: none;
    animation: fadeIn 0.4s ease-in;
}

.page-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Quote Blocks */
.quote-block {
    background: linear-gradient(180deg, rgba(255,248,225,1), rgba(255,243,224,0.9));
    border-left: 4px solid rgba(255,167,38,0.9);
    padding: 20px 28px;
    margin: 28px 0;
    font-style: italic;
    font-size: 1.05rem;
    color: #6b4b00;
}

.quote-block cite {
    display: block;
    margin-top: 10px;
    font-style: normal;
    font-weight: 600;
    font-size: 0.95em;
    color: #4a4a4a;
}

/* Figure Captions */
.figure-container {
    margin: 24px 0 34px;
    text-align: center;
}

.figure-container img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(2,33,65,0.06);
}

.figure-caption {
    margin-top: 12px;
    font-size: 0.9em;
    color: var(--muted);
    text-align: center;
    line-height: 1.5;
}

/* Professor Cards - Simple Style */
.professor-card-simple {
    width: 160px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(2,33,65,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.professor-card-simple:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(2,33,65,0.15);
}

.prof-photo-container {
    width: 160px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    padding: 10px;
}

.prof-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #1e5289;
}

.prof-info {
    padding: 12px;
    text-align: center;
}

.prof-info h4 {
    margin: 0 0 6px 0;
    font-size: 0.95rem;
    color: #022141;
    font-weight: 600;
    line-height: 1.2;
}

.prof-title {
    margin: 0;
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.3;
}

/* Row container for multiple professor cards */
.professors-row {
    display: flex;
    gap: 25px;
    justify-content: center;
    margin: 30px 0;
    flex-wrap: wrap;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .professor-card-simple[style*="float"] {
        float: none !important;
        margin: 0 auto 20px !important;
    }
    
    .professors-row {
        flex-direction: column;
        align-items: center;
    }
    
    .professor-card-simple {
        width: 160px;
    }
    
    .prof-photo-container {
        width: 160px;
        height: 160px;
    }
}

/* Project navigation & cards */
.project-navigation { margin: 36px 0; text-align: center; }

.project-cards {
    display: flex;
    gap: 18px;
    margin: 28px 0;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
}

.project-card {
    flex: 1 1 280px;
    min-width: 260px;
    max-width: 340px;
    min-height: 180px;
    border-radius: var(--card-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    cursor: pointer;
    transition: transform var(--transition-medium) ease, box-shadow var(--transition-medium) ease;
    box-shadow: 0 6px 14px rgba(12, 30, 47, 0.06);
    position: relative;
    overflow: hidden;
    padding: 20px;
}

.project-card:hover { transform: translateY(-6px); box-shadow: 0 14px 30px rgba(2,33,65,0.08); }

.project-card .card-title { display:block; font-size: 1.2rem; line-height:1.1; }
.project-card .card-content { display: none; color: #fff; text-align: left; }

.project-card.expanded {
    flex: 1 1 100%;
    max-width: none;
    min-height: 420px;
    align-items: flex-start;
    padding: 28px;
    font-size: 1rem;
}

.project-card.expanded .card-content { display:block; animation: fadeIn 300ms ease both; }
.project-card.shrink { flex: 0 1 90px; max-width: 90px; writing-mode: vertical-rl; text-orientation: mixed; font-size: 0.9rem; padding: 12px; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(8px);} to { opacity:1; transform: translateY(0);} }

/* Color variants - softened gradients */
.hero-card { background: linear-gradient(135deg, var(--accent-hero-start), var(--accent-hero-end)); color: rgba(10,10,10,0.9); }
.hero-card.expanded { color: #08304a; }
.cape-card { background: linear-gradient(135deg, var(--accent-cape-start), var(--accent-cape-end)); }
.cape-card.expanded { color: #2c0b0b; }
.helmet-card { background: linear-gradient(135deg, var(--accent-helmet-start), var(--accent-helmet-end)); }
.helmet-card.expanded { color: #072f4f; }

/* Toolkit sections - static style like description page */
.toolkit-section {
    margin: 40px 0;
}

.toolkit-card {
    border-radius: 15px;
    padding: 35px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.hero-card-static {
    border-top: 8px solid #87bcdb;
}

.cape-card-static {
    border-top: 8px solid #6c5ce7;
}

.helmet-card-static {
    border-top: 8px solid #b80000;
}

.toolkit-header {
display: flex;
align-items: center;
gap: 20px;
margin-bottom: 30px;
flex-wrap: wrap;
}

.toolkit-title {
    font-size: 2rem;
    font-weight: 700;
    color: #022141;
    margin: 0;
    flex-shrink: 0;
}

.toolkit-subtitle {
    font-size: 1.1rem;
    color: #555;
    margin: 0;
    font-style: italic;
    flex: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .toolkit-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .toolkit-subtitle {
        text-align: left;
    }
}

/* Expert cards - equal distribution */
.expert-cards { 
    display: flex; 
    gap: 20px; 
    margin-top: 18px; 
    flex-wrap: wrap;
    justify-content: stretch;
}

.expert-card {
    background: rgba(255, 255, 255, 0.9);
    color: #222;
    padding: 20px;
    border-radius: 18px;
    flex: 1 1 0;
    min-width: 250px;
    box-shadow: 0 8px 20px rgba(4, 49, 96, 0.12);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.expert-card:hover { 
    transform: translateY(-4px); 
    box-shadow: 0 12px 26px rgba(2, 33, 65, 0.15);
    border-color: #3a88db;
}

.expert-card-image {
    max-width: 100%;
    max-height: 150px;
    object-fit: contain;
    margin: 0 auto 15px auto;
    display: block;
    border: 3px solid #1e5289;    
    padding: 5px;
    background: white;
    box-shadow: 0 4px 12px rgba(30, 82, 137, 0.15);
    border-radius: 8px;
}

.expert-card h4 { 
    margin: 0 0 8px 0; 
    color: #162b44;
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
}

.expert-card .subtitle { 
    color: #3a88db; 
    margin-bottom: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    border-bottom: 2px solid #e9ecef;
    text-align: center;
}

.expert-card .summary { 
    font-size: 0.95rem; 
    color: #334155;
}

.icon {
    margin-right: 8px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

/* Responsive */
@media (max-width: 768px) {
    .expert-cards {
        flex-direction: column;
    }
    
    .expert-card {
        flex: 1 1 auto;
        min-width: 100%;
    }
}


/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2200;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(3,12,27,0.55);
    align-items: center;
    justify-content: center;
    padding: 28px;
    overflow-y: auto;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
.modal.active { display: flex; animation: fadeIn 200ms ease both; }
.modal-content {
    background: #fff;
    padding: 26px;
    border-radius: 12px;
    max-width: 820px;
    width: 100%;
    max-height: 75vh;
    overflow-y: auto;
    box-shadow: 0 18px 40px rgba(2,33,65,0.12);
    position: relative;
}
.modal-close, .modal-close[data-close] { position:absolute; right:18px; top:14px; font-size:1.6rem; background:none; border:none; cursor:pointer; color:#6b7280; }
.modal-close:hover { color:#111827; }

.expert-photo { width:120px; height:120px; border-radius:50%; object-fit:cover; margin: 14px auto; display:block; }

/* Q&A Sections */
.qa-section { margin: 20px 0; }
.question { font-weight:700; color:#0f172a; margin-bottom:8px; padding-left:28px; position:relative; }
.question:before { content:"❓"; position:absolute; left:0; top:0; }
.answer { padding-left:28px; margin-bottom:12px; position:relative; color:#334155; }
.answer:before { content:"💡"; position:absolute; left:0; top:0; }
.action { background:#e8f4ff; padding:14px 14px 14px 44px; border-left: 3px solid #2196f3; margin:12px 0; position:relative; border-radius:6px; }
.action:before { content:"🔧"; position:absolute; left:12px; top:12px; }

/* Future cards */
.future-cards { display:flex; gap:18px; margin: 28px 0; justify-content:center; align-items:stretch; flex-wrap:wrap; }
.future-card { flex:1 1 280px; min-width:240px; border-radius: 12px; padding:18px; color:white; font-weight:700; cursor:pointer; transition: transform var(--transition-medium) ease; min-height:160px; display:flex; align-items:center; justify-content:center; text-align:center; }
.future-card:hover { transform: translateY(-6px); }
.future-card.expanded { min-height:460px; align-items:flex-start; padding:26px; }

.implementation-card { background: linear-gradient(135deg,#42A5F5 0%, #1565c0 100%); }
.ethical-card { background: linear-gradient(135deg,#4caf50 0%, #2e7d32 100%); }
.market-card { background: linear-gradient(135deg,#ffd54f 0%, #ffb300 100%); color:#111827; }

.future-content { display:none; color: #fff; }
.future-card.expanded .future-content { display:block; animation: fadeIn 300ms ease both; }

/* Future sections - static style */
.future-implementation-static {
    border-top: 8px solid #10411a;
}

.future-ethical-static {
    border-top: 8px solid #66BB6A;
}

.future-market-static {
    border-top: 8px solid #FFD54F;
}

/* References */
.references-section { margin-top: 2.6rem; }
.references-toggle { background: linear-gradient(135deg, #043160, #1e5289); color: white; padding: 12px 16px; border-radius: 10px; cursor:pointer; display:flex; align-items:center; justify-content:space-between; box-shadow: 0 6px 16px rgba(4,49,96,0.12); }
.references-title { font-weight:700; margin:0; font-size:1rem; }
.references-arrow { font-size:1.3rem; margin-left:12px; transition: transform 240ms ease; }
.references-content { max-height:0; overflow:hidden; transition: max-height 360ms ease; background:#fff; border-radius: 0 0 10px 10px; border: 1px solid #e6edf3; }
.references-content.expanded { max-height: 2200px; padding: 18px; overflow-y:auto; }
.references-list { list-style:none; padding:0; margin:0; display:block; }
.references-list li { margin-bottom: 12px; padding: 12px; background:#fbfdff; border-left:4px solid var(--primary); border-radius:6px; color:#334155; }

/* Utility */
.card-title { font-size:1.1rem; font-weight:700; }
.subtitle { font-size: .95rem; color: var(--muted); }
.icon { margin-right:8px; }
.company-logo { max-width:320px; display:block; margin:12px 0; }

/* Responsive behavior */
@media (max-width: 980px) {
    .project-card { min-height: 160px; }
    .project-card.expanded { min-height: 380px; }
    .expert-cards { flex-direction: column; }
    .future-cards { flex-direction: column; }
    .project-cards { gap: 12px; }
}

@media (max-width: 600px) {
    main { padding: 18px 14px 60px; }
    .project-card, .future-card { min-height: 140px; padding:14px; }
    .project-card.shrink { max-width: 100%; writing-mode: horizontal-tb; }
    .project-card.expanded, .future-card.expanded { min-height: auto; padding:16px; }
    .modal-content { max-width: 96%; padding:16px; max-height: 88vh; }
}

/* ============================================
   MOBILE RESPONSIVE - HUMAN PRACTICES
   ============================================ */

/* Tablets e schermi medi (max 992px) */
@media (max-width: 992px) {
    /* Typography */
    h1 {
        font-size: 2.2rem !important;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.4rem;
    }
    
    h4 {
        font-size: 1.2rem;
    }
    
    /* Page tabs */
    .page-tabs {
        flex-wrap: wrap;
    }
    
    .tab-button {
        flex: 1 1 50%;
        max-width: 50%;
        font-size: 1rem;
        padding: 0.9rem 1rem;
    }
    
    .tab-button:nth-child(2n) {
        border-right: none !important;
    }
    
    .tab-button:nth-child(n+3) {
        border-top: 1px solid #dee2e6;
    }
    
    /* Parchment */
    .parchment {
        padding: 30px 25px;
    }
    
    /* Quote blocks */
    .quote-block {
        padding: 18px 22px;
        font-size: 1rem;
    }
    
    /* Professor cards */
    .professors-row {
        gap: 20px;
    }
    
    /* Expert cards */
    .expert-cards {
        gap: 18px;
    }
    
    .expert-card {
        min-width: 200px;
    }
    
    /* Toolkit sections */
    .toolkit-card {
        padding: 28px;
    }
    
    .toolkit-title {
        font-size: 1.7rem;
    }
    
    .toolkit-subtitle {
        font-size: 1rem;
    }
    
    /* Modal */
    .modal-content {
        max-width: 90%;
        padding: 22px;
    }

    /* FUTURE SECTION */
    #implementation ul,
    #ethical ul,
    #market ul {
        padding-left: 25px;
        font-size: 0.95rem;
    }
    
    #implementation li,
    #ethical li,
    #market li {
        margin-bottom: 10px;
    }
    
    .figure-container img {
        max-width: 100%;
        height: auto;
    }
}

/* Tablets piccoli e mobile landscape (max 768px) */
@media (max-width: 768px) {
    /* Typography */
    h1 {
        font-size: 1.9rem !important;
        margin-bottom: 30px !important;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    h4 {
        font-size: 1.15rem;
    }
    
    p {
        font-size: 0.95rem;
    }
    
    /* Page tabs - 2 colonne */
    .tab-button {
        font-size: 0.95rem;
        padding: 0.85rem 0.8rem;
    }
    
    /* Parchment */
    .parchment {
        padding: 25px 20px;
        margin: 15px 0;
    }
    
    .parchment::before,
    .parchment::after {
        width: 16px;
        height: 16px;
        top: -8px;
    }
    
    /* Quote blocks */
    .quote-block {
        padding: 16px 20px;
        font-size: 0.95rem;
        margin: 22px 0;
    }
    
    .quote-block cite {
        font-size: 0.9em;
    }
    
    /* Professor cards - remove float on mobile */
    .professor-card-simple[style*="float"] {
        float: none !important;
        margin: 0 auto 20px !important;
        display: block;
    }
    
    .professors-row {
        flex-direction: column;
        align-items: center;
        gap: 18px;
    }
    
    .professor-card-simple {
        width: 180px;
        margin: 0 auto;
    }
    
    .prof-photo-container {
        width: 180px;
        height: 140px;
    }
    
    .prof-photo {
        width: 110px;
        height: 110px;
    }
    
    /* Expert cards - stack vertically */
    .expert-cards {
        flex-direction: column;
        gap: 16px;
    }
    
    .expert-card {
        flex: 1 1 auto;
        min-width: 100%;
        padding: 18px;
    }
    
    .expert-card-image {
        max-height: 130px;
    }
    
    .expert-card h4 {
        font-size: 1.15rem;
    }
    
    .expert-card .subtitle {
        font-size: 0.9rem;
    }
    
    .expert-card .summary {
        font-size: 0.9rem;
    }
    
    /* Toolkit sections */
    .toolkit-card {
        padding: 22px;
        margin-bottom: 25px;
    }
    
    .toolkit-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 25px;
    }
    
    .toolkit-title {
        font-size: 1.5rem;
    }
    
    .toolkit-subtitle {
        font-size: 0.95rem;
    }
    
    /* Q&A sections */
    .qa-section {
        margin: 18px 0;
    }
    
    .question {
        font-size: 0.95rem;
        padding-left: 26px;
    }
    
    .answer {
        font-size: 0.9rem;
        padding-left: 26px;
    }
    
    .action {
        padding: 12px 12px 12px 40px;
        font-size: 0.9rem;
    }
    
    /* Modal */
    .modal {
        padding: 20px;
    }
    
    .modal-content {
        max-width: 95%;
        max-height: 85vh;
        padding: 20px;
    }
    
    .modal-close {
        right: 15px;
        top: 12px;
        font-size: 1.5rem;
    }
    
    .expert-photo {
        width: 100px;
        height: 100px;
    }
    
    /* Figure containers */
    .figure-container {
        margin: 20px 0 28px;
    }
    
    .figure-caption {
        font-size: 0.85em;
        margin-top: 10px;
    }
    
    /* References */
    .references-section {
        margin-top: 2rem;
    }
    
    .references-toggle {
        padding: 10px 14px;
    }
    
    .references-title {
        font-size: 0.95rem;
    }
    
    .references-arrow {
        font-size: 1.2rem;
    }
    
    .references-content.expanded {
        max-height: 2000px;
        padding: 16px;
    }
    
    .references-list li {
        font-size: 0.9rem;
        padding: 10px;
        margin-bottom: 10px;
    }
    /* FUTURE SECTION */
    #implementation ul,
    #ethical ul,
    #market ul {
        padding-left: 20px;
        font-size: 0.9rem;
        margin: 15px 0;
    }
    
    #implementation li,
    #ethical li,
    #market li {
        margin-bottom: 8px;
        line-height: 1.5;
    }
    
    #implementation p,
    #ethical p,
    #market p {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 12px;
    }
    
    #implementation p[style*="italic"],
    #ethical p[style*="italic"],
    #market p[style*="italic"] {
        font-size: 0.95rem;
        padding: 15px;
        line-height: 1.6;
    }
    
    #implementation h4,
    #ethical h4,
    #market h4 {
        font-size: 1.15rem;
        margin-top: 20px;
        margin-bottom: 12px;
    }
    
    .figure-container {
        margin: 20px 0;
    }
    
    .figure-container img {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
    }
    
    #implementation strong,
    #ethical strong,
    #market strong {
        font-size: inherit;
    }
}

/* Mobile (max 576px) */
@media (max-width: 576px) {
    /* Typography */
    h1 {
        font-size: 1.6rem !important;
        margin-bottom: 25px !important;
        line-height: 1.3;
    }
    
    h2 {
        font-size: 1.4rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    
    h4 {
        font-size: 1.1rem;
    }
    
    p {
        font-size: 0.9rem;
    }
    
    /* Page tabs - colonna singola */
    .page-tabs {
        flex-direction: column;
    }
    
    .tab-button {
        flex: 1 1 100%;
        max-width: 100%;
        padding: 0.9rem;
        font-size: 0.9rem;
        border-right: none !important;
    }
    
    .tab-button:not(:last-child) {
        border-bottom: 1px solid #dee2e6;
        border-top: none !important;
    }
    
    /* Parchment */
    .parchment {
        padding: 20px 15px;
        margin: 12px 0;
    }
    
    .parchment::before {
        left: 20px;
    }
    
    .parchment::after {
        right: 20px;
    }
    
    /* Quote blocks */
    .quote-block {
        padding: 14px 18px;
        font-size: 0.9rem;
        margin: 18px 0;
    }
    
    .quote-block cite {
        font-size: 0.85em;
        margin-top: 8px;
    }
    
    /* Professor cards */
    .professor-card-simple {
        width: 160px;
    }
    
    .prof-photo-container {
        width: 160px;
        height: 130px;
    }
    
    .prof-photo {
        width: 100px;
        height: 100px;
    }
    
    .prof-info h4 {
        font-size: 0.9rem;
    }
    
    .prof-title {
        font-size: 0.75rem;
    }
    
    /* Expert cards */
    .expert-card {
        padding: 16px;
    }
    
    .expert-card-image {
        max-height: 120px;
        border: 2px solid #1e5289;
    }
    
    .expert-card h4 {
        font-size: 1.05rem;
        margin-bottom: 6px;
    }
    
    .expert-card .subtitle {
        font-size: 0.85rem;
        margin-bottom: 8px;
    }
    
    .expert-card .summary {
        font-size: 0.85rem;
    }
    
    .expert-card .summary p {
        font-size: 0.85rem;
    }
    
    /* Toolkit sections */
    .toolkit-card {
        padding: 18px;
        margin-bottom: 20px;
    }
    
    .toolkit-header {
        margin-bottom: 20px;
    }
    
    .toolkit-title {
        font-size: 1.3rem;
    }
    
    .toolkit-subtitle {
        font-size: 0.9rem;
    }
    
    /* Q&A sections */
    .qa-section {
        margin: 15px 0;
    }
    
    .question {
        font-size: 0.9rem;
        padding-left: 24px;
        margin-bottom: 6px;
    }
    
    .question:before {
        font-size: 0.9rem;
    }
    
    .answer {
        font-size: 0.85rem;
        padding-left: 24px;
        margin-bottom: 10px;
    }
    
    .answer:before {
        font-size: 0.9rem;
    }
    
    .action {
        padding: 10px 10px 10px 38px;
        font-size: 0.85rem;
        margin: 10px 0;
    }
    
    .action:before {
        left: 10px;
        top: 10px;
        font-size: 0.9rem;
    }
    
    /* Modal - full screen su mobile */
    .modal {
        padding: 15px;
    }
    
    .modal-content {
        max-width: 100%;
        max-height: 92vh;
        padding: 18px;
        border-radius: 8px;
    }
    
    .modal-close {
        width: 32px;
        height: 32px;
        right: 12px;
        top: 10px;
        font-size: 1.4rem;
        line-height: 32px;
        text-align: center;
    }
    
    .modal-content h3 {
        font-size: 1.3rem;
        margin-bottom: 12px;
        padding-right: 30px;
    }
    
    .modal-content h4 {
        font-size: 1.1rem;
        margin-top: 15px;
        margin-bottom: 10px;
    }
    
    .modal-content p {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }
    
    .modal-content ul {
        padding-left: 20px;
        font-size: 0.9rem;
    }
    
    .modal-content ul li {
        margin-bottom: 8px;
    }
    
    .expert-photo {
        width: 90px;
        height: 90px;
        margin: 10px auto;
    }
    
    /* Figure containers */
    .figure-container {
        margin: 18px 0 24px;
    }
    
    .figure-container img {
        border-radius: 4px;
    }
    
    .figure-caption {
        font-size: 0.8em;
        margin-top: 8px;
        padding: 0 5px;
    }
    
    /* References */
    .references-section {
        margin-top: 1.5rem;
    }
    
    .references-toggle {
        padding: 10px 12px;
        border-radius: 8px;
    }
    
    .references-title {
        font-size: 0.9rem;
    }
    
    .references-arrow {
        font-size: 1.1rem;
        margin-left: 8px;
    }
    
    .references-content.expanded {
        max-height: 1800px;
        padding: 14px;
    }
    
    .references-list li {
        font-size: 0.85rem;
        padding: 8px;
        margin-bottom: 8px;
        border-left: 3px solid var(--primary);
    }
    
    /* Lists */
    ul {
        padding-left: 20px;
    }
    
    li {
        margin-bottom: 8px;
        font-size: 0.9rem;
    }
    
    /* Icons */
    .icon {
        margin-right: 6px;
    }
    
    /* Clear floats */
    div[style*="clear"] {
        clear: both;
        height: 0;
    }

    /* FUTURE SECTION */
    #implementation ul,
    #ethical ul,
    #market ul {
        padding-left: 18px;
        font-size: 0.85rem;
        margin: 12px 0;
    }
    
    #implementation li,
    #ethical li,
    #market li {
        margin-bottom: 10px;
        line-height: 1.6;
    }
    
    #implementation p,
    #ethical p,
    #market p {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 10px;
    }
    
    #implementation p[style*="italic"],
    #ethical p[style*="italic"],
    #market p[style*="italic"] {
        font-size: 0.9rem;
        padding: 12px;
        line-height: 1.5;
        border-left-width: 4px !important;
        border-right-width: 4px !important;
    }
    
    #implementation h4,
    #ethical h4,
    #market h4 {
        font-size: 1.1rem;
        margin-top: 18px;
        margin-bottom: 10px;
    }
    
    .figure-container {
        margin: 15px 0;
    }
    
    .figure-caption {
        font-size: 0.8rem;
        padding: 0 5px;
    }
    
    #implementation .qa-section,
    #ethical .qa-section,
    #market .qa-section {
        margin: 12px 0;
    }
    
    #implementation .question,
    #ethical .question,
    #market .question {
        font-size: 0.9rem;
    }
    
    #implementation .answer,
    #ethical .answer,
    #market .answer {
        font-size: 0.85rem;
    }
    
    #implementation .action,
    #ethical .action,
    #market .action {
        font-size: 0.85rem;
        padding: 10px 10px 10px 36px;
    }
}

/* Mobile molto piccoli (max 400px) */
@media (max-width: 400px) {
    h1 {
        font-size: 1.4rem !important;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    .tab-button {
        padding: 0.8rem;
        font-size: 0.85rem;
    }
    
    .parchment {
        padding: 18px 12px;
    }
    
    .quote-block {
        padding: 12px 15px;
        font-size: 0.85rem;
    }
    
    .professor-card-simple {
        width: 150px;
    }
    
    .prof-photo-container {
        width: 150px;
        height: 120px;
    }
    
    .prof-photo {
        width: 90px;
        height: 90px;
    }
    
    .expert-card {
        padding: 14px;
    }
    
    .toolkit-card {
        padding: 15px;
    }
    
    .toolkit-title {
        font-size: 1.2rem;
    }
    
    .modal-content {
        padding: 15px;
    }
    
    .modal-content h3 {
        font-size: 1.2rem;
    }

    /* FUTURE SECTION */
    #implementation ul,
    #ethical ul,
    #market ul {
        padding-left: 15px;
        font-size: 0.8rem;
    }
    
    #implementation li,
    #ethical li,
    #market li {
        margin-bottom: 8px;
    }
    
    #implementation p,
    #ethical p,
    #market p {
        font-size: 0.8rem;
    }
    
    #implementation h4,
    #ethical h4,
    #market h4 {
        font-size: 1.05rem;
    }

}

/* Touch device improvements */
@media (hover: none) and (pointer: coarse) {
    /* Aumenta le aree touch */
    .tab-button {
        min-height: 48px;
    }
    
    .expert-card {
        min-height: 48px;
    }
    
    .references-toggle {
        min-height: 48px;
    }
    
    .modal-close {
        min-width: 44px;
        min-height: 44px;
    }
    
    /* Rimuovi hover effects su touch */
    .tab-button:hover,
    .expert-card:hover,
    .professor-card-simple:hover {
        transform: none;
    }
    
    /* Feedback visivo al tap */
    .tab-button:active,
    .expert-card:active {
        opacity: 0.9;
        transform: scale(0.98);
    }
}

/* Landscape orientation su mobile */
@media (max-width: 896px) and (orientation: landscape) {
    .modal-content {
        max-height: 88vh;
    }
    
    h1 {
        font-size: 1.8rem !important;
        margin-bottom: 20px !important;
    }
}

/* Print styles */
@media print {
    .page-tabs,
    .modal-close,
    .references-arrow {
        display: none !important;
    }
    
    .page-content {
        display: block !important;
    }
    
    .modal {
        position: relative !important;
        display: none !important;
    }
    
    .references-content {
        max-height: none !important;
        display: block !important;
    }
}

/* ============================================
   FIX SCROLL ORIZZONTALE - FUTURE PERSPECTIVES
   ============================================ */

/* Previeni overflow globale */
body {
    overflow-x: hidden;
}

main {
    overflow-x: hidden;
}

/* Fix contenitori globali */
.row,
.col {
    overflow-x: hidden;
}

/* === MOBILE LARGE (577px - 767px) === */
@media (max-width: 767px) {
    /* Forza contenimento immagini */
    img {
        max-width: 100% !important;
        height: auto !important;
        display: block;
    }
    
    /* Figure container */
    .figure-container {
        max-width: 100%;
        overflow: hidden;
        margin-left: 0;
        margin-right: 0;
    }
    
    .figure-container img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto;
    }
    
    /* Parchment - riduci padding laterale */
    .parchment {
        padding: 20px 12px;
        margin: 12px 0;
        box-sizing: border-box;
        max-width: 100%;
    }
    
    /* Quote blocks - riduci padding */
    .quote-block {
        padding: 14px 15px;
        margin: 18px 0;
        box-sizing: border-box;
        max-width: 100%;
    }
    
    /* Toolkit cards */
    .toolkit-card {
        padding: 20px 15px;
        margin-bottom: 20px;
        box-sizing: border-box;
        max-width: 100%;
    }
    
    /* Future cards */
    .future-cards {
        margin: 20px 0;
        gap: 15px;
        max-width: 100%;
    }
    
    .future-card {
        margin: 0;
        box-sizing: border-box;
        max-width: 100%;
    }
    
    /* Project cards */
    .project-cards {
        margin: 20px 0;
        gap: 15px;
        max-width: 100%;
    }
    
    .project-card {
        margin: 0;
        box-sizing: border-box;
        max-width: 100%;
    }
    
    /* Expert cards container */
    .expert-cards {
        margin: 20px 0;
        gap: 15px;
        max-width: 100%;
    }
    
    .expert-card {
        margin: 0;
        box-sizing: border-box;
        max-width: 100%;
    }
    
    /* Paragrafi con bordi laterali */
    p[style*="border-left"],
    p[style*="border-right"] {
        padding-left: 12px !important;
        padding-right: 12px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box;
        max-width: 100%;
    }
    
    /* Liste */
    ul, ol {
        padding-left: 20px;
        padding-right: 10px;
        margin-left: 0;
        margin-right: 0;
        box-sizing: border-box;
        max-width: 100%;
    }
    
    /* Q&A sections */
    .qa-section {
        max-width: 100%;
        overflow: hidden;
    }
    
    .question,
    .answer,
    .action {
        max-width: 100%;
        box-sizing: border-box;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* References */
    .references-section {
        max-width: 100%;
        overflow: hidden;
    }
    
    .references-content {
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .references-list li {
        max-width: 100%;
        box-sizing: border-box;
        word-wrap: break-word;
    }
    
    /* Previeni overflow di testo lungo */
    p, li, div {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    /* Link lunghi */
    a {
        word-break: break-all;
        overflow-wrap: break-word;
    }
    
    /* Tabelle (se presenti) */
    table {
        max-width: 100%;
        overflow-x: auto;
        display: block;
    }
}

/* === MOBILE MEDIUM (400px - 576px) === */
@media (max-width: 576px) {
    /* Riduci ulteriormente padding */
    .parchment {
        padding: 18px 10px;
        margin: 10px 0;
    }
    
    .quote-block {
        padding: 12px 12px;
        margin: 15px 0;
    }
    
    .toolkit-card {
        padding: 18px 12px;
    }
    
    /* Future sections - contenuto */
    #implementation,
    #ethical,
    #market {
        max-width: 100%;
        overflow: hidden;
        padding: 0;
    }
    
    #implementation ul,
    #ethical ul,
    #market ul {
        padding-left: 18px;
        padding-right: 8px;
        margin-left: 0;
        margin-right: 0;
    }
    
    #implementation p,
    #ethical p,
    #market p {
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
    }
    
    #implementation p[style*="italic"],
    #ethical p[style*="italic"],
    #market p[style*="italic"] {
        padding: 12px 10px !important;
        margin: 15px 0 !important;
    }
    
    /* Immagini in future sections */
    #implementation .figure-container,
    #ethical .figure-container,
    #market .figure-container {
        margin: 15px 0;
        padding: 0;
    }
    
    #implementation img,
    #ethical img,
    #market img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto;
        margin: 0;
    }
    
    /* Modal content */
    .modal-content {
        margin: 0 !important;
        padding: 15px !important;
        box-sizing: border-box;
        max-width: 100% !important;
    }
    
    /* Professor cards */
    .professor-card-simple,
    .professors-row {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
}

/* === MOBILE SMALL (< 400px) === */
@media (max-width: 400px) {
    .parchment {
        padding: 15px 8px;
        margin: 8px 0;
    }
    
    .quote-block {
        padding: 10px 10px;
        margin: 12px 0;
    }
    
    .toolkit-card {
        padding: 15px 10px;
    }
    
    #implementation ul,
    #ethical ul,
    #market ul {
        padding-left: 15px;
        padding-right: 5px;
    }
    
    #implementation p[style*="italic"],
    #ethical p[style*="italic"],
    #market p[style*="italic"] {
        padding: 10px 8px !important;
        margin: 12px 0 !important;
        border-left-width: 3px !important;
        border-right-width: 3px !important;
    }
}

/* === FIX PER ELEMENTI INLINE CON MARGINI/PADDING === */
@media (max-width: 767px) {
    /* Rimuovi margini negativi problematici */
    * {
        max-width: 100%;
    }
    
    /* Container con padding laterale fisso */
    .container,
    .row > div,
    [class*="col-"] {
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box;
    }
    
    /* Previeni pre e code overflow */
    pre, code {
        max-width: 100%;
        overflow-x: auto;
        word-wrap: break-word;
        white-space: pre-wrap;
    }
}