
/* Ottimizzazioni specifiche per visualizzazione in iframe */
@media screen {
    /* Rimozione margini extra quando visualizzato in iframe */
    html.in-iframe,
    body.in-iframe {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Prevenire scrollbar interna, lasciare solo quella dell'iframe */
    html.in-iframe {
        overflow: visible;
        height: auto;
    }
    
    body.in-iframe {
        overflow: visible;
        height: auto;
    }
}


/* Presentation Dashboard Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --m5s-yellow: #FFD700;
    --m5s-blue: #003366;
    --m5s-white: #FFFFFF;
    --m5s-black: #000000;
    --m5s-dark-gray: #333333;
    --m5s-light-gray: #F5F5F5;
    --gradient-primary: linear-gradient(135deg, #003366 0%, #004080 100%);
    --gradient-secondary: linear-gradient(135deg, #FFD700 0%, #FFC107 100%);
    --gradient-dark: linear-gradient(135deg, #003366 0%, #002244 100%);
    --shadow-premium: 0 20px 60px rgba(0, 51, 102, 0.15);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.2);
}

body {
    font-family: Helvetica, "Nimbus Sans L", "Liberation Sans", Arial, sans-serif;
    line-height: 1.6;
    color: var(--m5s-black);
    background: var(--m5s-white);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    /* Ottimizzazioni per iframe */
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* Scrollbar personalizzata e ottimizzata per iframe */
html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

* {
    max-width: 100%;
    box-sizing: border-box;
}

/* Scrollbar sottile e discreta */
* {
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: rgba(0, 51, 102, 0.3) transparent; /* Firefox */
}

*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    background: rgba(0, 51, 102, 0.3);
    border-radius: 4px;
    transition: background 0.3s ease;
}

*::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 51, 102, 0.5);
}

/* Specifica per il body principale */
body::-webkit-scrollbar {
    width: 6px;
}

body::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.4);
    border-radius: 3px;
}

body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.6);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
    overflow-x: hidden;
}

/* Presentation Header */
.presentation-header {
    background: var(--m5s-blue);
    color: white;
    padding: 1.5rem 0;
    box-shadow: var(--shadow-premium);
    position: relative;
    overflow: hidden;
}

.presentation-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><circle cx="200" cy="200" r="3" fill="rgba(255,215,0,0.3)"/><circle cx="800" cy="300" r="2" fill="rgba(255,215,0,0.2)"/><circle cx="400" cy="600" r="2" fill="rgba(255,215,0,0.3)"/></svg>');
    opacity: 0.3;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
    gap: 2rem;
}

.header-nav {
    display: flex;
    gap: 1rem;
}

.nav-link-future {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--m5s-yellow);
    color: var(--m5s-blue);
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.nav-link-future:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
    background: #FFC107;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-logo {
    width: 120px;
    height: 120px;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.3));
    animation: logoGlow 3s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    0% { filter: drop-shadow(0 8px 16px rgba(0,0,0,0.3)); }
    100% { filter: drop-shadow(0 8px 20px rgba(255,215,0,0.4)); }
}

.title-section {
    text-align: left;
}

.main-title {
    font-family: 'Roboto', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    text-transform: uppercase;
}

.subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    font-weight: 300;
}



/* Projects Counter Hero */
.projects-counter-hero {
    padding: 3rem 0;
    background: var(--m5s-blue);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.projects-counter-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,215,0,0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

.hero-counter {
    font-family: 'Roboto', sans-serif;
    font-size: 8rem;
    font-weight: 900;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
}

.hero-counter-label {
    font-family: 'Open Sans', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-top: 1rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

/* Portal Definition Section */
.portal-definition {
    padding: 2rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.definition-card {
    background: var(--m5s-white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    border-top: 6px solid var(--m5s-yellow);
}

.definition-card h2 {
    font-size: 2.5rem;
    color: var(--m5s-dark-gray);
    margin-bottom: 2rem;
    font-weight: 600;
}

.definition-card p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--m5s-dark-gray);
    opacity: 0.9;
}

/* Transparent Process Section */
.transparent-process {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--m5s-white) 0%, var(--m5s-light-gray) 100%);
}

.process-card {
    background: var(--m5s-white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    max-width: 1200px;
    margin: 0 auto;
    border-left: 8px solid var(--m5s-red);
}

.process-card h2 {
    font-size: 2.2rem;
    color: var(--m5s-dark-gray);
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 600;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.process-step {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    border: 3px solid var(--m5s-yellow);
    border-left: 6px solid var(--m5s-red);
    transition: all 0.3s ease;
    position: relative;
    animation: slideInLeft 0.6s ease-out forwards;
    opacity: 0;
    transform: translateX(-30px);
}

.process-step:nth-child(odd) {
    animation-delay: 0.2s;
}

.process-step:nth-child(even) {
    animation-delay: 0.4s;
}

.process-step:hover {
    transform: translateX(10px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: var(--m5s-blue);
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.step-number {
    min-width: 50px;
    height: 50px;
    background: var(--m5s-yellow);
    color: var(--m5s-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    box-shadow: var(--shadow-card);
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    font-size: 1.3rem;
    color: var(--m5s-dark-gray);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.step-content p {
    color: var(--m5s-dark-gray);
    opacity: 0.8;
    line-height: 1.6;
    font-size: 1rem;
}

.process-connector {
    height: 2px;
    background: linear-gradient(90deg, var(--m5s-blue) 0%, var(--m5s-yellow) 100%);
    margin: 0.5rem 0;
    margin-left: 2rem;
    width: calc(100% - 4rem);
    opacity: 0.6;
}

/* Executive Dashboard */
.executive-dashboard {
    padding: 4rem 0;
    background: var(--m5s-white);
}

.dashboard-header {
    text-align: center;
    margin-bottom: 3rem;
}

.dashboard-header h2 {
    font-size: 2.5rem;
    color: var(--m5s-dark-gray);
    margin-bottom: 1rem;
    font-weight: 300;
}

.dashboard-header i {
    color: var(--m5s-red);
    margin-right: 1rem;
}

.last-update {
    color: var(--m5s-dark-gray);
    font-size: 1rem;
    opacity: 0.8;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.last-update div:first-child {
    font-weight: 500;
    color: var(--m5s-blue);
}

.last-update strong {
    color: var(--m5s-yellow);
    background: var(--m5s-blue);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.metric-card {
    background: var(--m5s-white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    border-top: 5px solid;
}

.metric-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.total-projects {
    border-top-color: var(--m5s-blue);
    background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
}

.approved-projects {
    border-top-color: #27AE60;
    background: linear-gradient(135deg, #ffffff 0%, #f0fff4 100%);
}

.in-evaluation {
    border-top-color: #F39C12;
    background: linear-gradient(135deg, #ffffff 0%, #fffbf0 100%);
}

.law-proposals {
    border-top-color: var(--m5s-yellow);
    background: linear-gradient(135deg, #ffffff 0%, #fffef0 100%);
}

.metric-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    opacity: 0.1;
    font-size: 4rem;
}

.metric-content {
    position: relative;
    z-index: 2;
}

.metric-number {
    font-size: 4rem;
    font-weight: bold;
    color: var(--m5s-dark-gray);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.metric-label {
    font-size: 1.2rem;
    color: var(--m5s-dark-gray);
    margin-bottom: 1rem;
    font-weight: 500;
}

.metric-trend {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.metric-trend.positive {
    color: #27AE60;
}

.metric-trend.neutral {
    color: #F39C12;
}

/* Visual Analytics */
.visual-analytics {
    padding: 4rem 0;
    background: var(--m5s-light-gray);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--m5s-dark-gray);
    margin-bottom: 3rem;
    font-weight: 300;
}

.section-title i {
    color: var(--m5s-red);
    margin-right: 1rem;
}

.charts-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.chart-card {
    background: var(--m5s-white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease;
}

.chart-card:hover {
    transform: translateY(-5px);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--m5s-light-gray);
}

.chart-header h3 {
    font-size: 1.3rem;
    color: var(--m5s-dark-gray);
    font-weight: 500;
}

.chart-controls {
    display: flex;
    gap: 0.5rem;
}

.chart-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--m5s-yellow);
    background: var(--m5s-yellow);
    color: var(--m5s-blue);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: bold;
}

.chart-btn.active,
.chart-btn:hover {
    background: var(--m5s-blue);
    color: white;
    border-color: var(--m5s-blue);
}

.trend-indicator {
    color: #27AE60;
    font-weight: bold;
    font-size: 0.9rem;
}

.chart-container {
    height: 400px;
    position: relative;
}

/* Examples Section */
.examples-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.examples-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--m5s-red);
    background: transparent;
    color: var(--m5s-red);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--m5s-red);
    color: var(--m5s-yellow);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.example-card {
    background: var(--m5s-white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow-card);
    transition: all 0.4s ease;
    border-left: 6px solid;
    position: relative;
    overflow: hidden;
}

.example-card.law-proposal {
    border-left-color: var(--m5s-red);
}

.example-card.initiative-proposal {
    border-left-color: #2C5282;
}

.example-card.political-proposal {
    border-left-color: #9B59B6;
}

.example-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.example-card.accolta::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-top: 30px solid #27AE60;
}

.example-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.example-type {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--m5s-dark-gray);
    font-weight: 500;
    font-size: 0.9rem;
}

.example-type i {
    color: var(--m5s-red);
}

.example-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.example-status.approved {
    background: rgba(39, 174, 96, 0.1);
    color: #27AE60;
}

.example-status.evaluation {
    background: rgba(243, 156, 18, 0.1);
    color: #F39C12;
}

.example-content h3 {
    color: var(--m5s-dark-gray);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.example-origin {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--m5s-red);
    font-size: 0.9rem;
    font-weight: 500;
}

.example-content p {
    color: var(--m5s-dark-gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.example-committee {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient-secondary);
    color: var(--m5s-black);
    padding: 0.6rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 1rem;
}

.examples-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 2px solid var(--m5s-light-gray);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--m5s-red);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--m5s-dark-gray);
    font-size: 1rem;
    font-weight: 500;
}

/* Project Types Showcase */
.project-types-showcase {
    padding: 4rem 0;
    background: var(--m5s-white);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--m5s-dark-gray);
    margin-bottom: 3rem;
    opacity: 0.8;
}

.types-interactive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.type-showcase-card {
    background: var(--m5s-white);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-card);
    transition: all 0.4s ease;
    border: 3px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.type-showcase-card.law-proposal {
    background: linear-gradient(135deg, #ffffff 0%, #fff0f0 100%);
}

.type-description {
    margin-bottom: 1rem;
}

.type-stats-description {
    background: rgba(44, 62, 80, 0.05);
    padding: 1rem;
    border-radius: 10px;
    border-left: 4px solid var(--m5s-red);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-top: 1rem;
}

.type-stats-description strong {
    color: var(--m5s-red);
    font-weight: 600;
}

.type-showcase-card.law-proposal .type-icon-large {
    background: linear-gradient(135deg, var(--m5s-red) 0%, #C41E3A 100%);
}

.type-showcase-card.national-initiative {
    background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
}

.type-showcase-card.national-initiative .type-icon-large {
    background: linear-gradient(135deg, #2C5282 0%, #3182CE 100%);
}

.type-showcase-card.national-event {
    background: linear-gradient(135deg, #ffffff 0%, #fffef0 100%);
}

.type-showcase-card.national-event .type-icon-large {
    background: linear-gradient(135deg, var(--m5s-yellow) 0%, #FFC107 100%);
    color: var(--m5s-black);
}

.type-showcase-card.disabled-type {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    opacity: 0.6;
}

.type-showcase-card.disabled-type .type-icon-large {
    background: linear-gradient(135deg, #6C757D 0%, #495057 100%);
}

.type-showcase-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--m5s-red);
}

.type-showcase-card.active-type {
    border-color: var(--m5s-yellow);
    background: linear-gradient(135deg, #ffffff 0%, #fffef0 100%);
}

.type-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.type-icon-large {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    box-shadow: var(--shadow-card);
}

.type-stats {
    text-align: right;
}

.type-count {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--m5s-red);
    line-height: 1;
    margin-bottom: 0.2rem;
}

.type-count-label {
    font-size: 1.5rem;
    color: var(--m5s-dark-gray);
    font-weight: 500;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.type-percentage {
    font-size: 1.2rem;
    color: var(--m5s-dark-gray);
    font-weight: 500;
    line-height: 1;
    margin-bottom: 0.2rem;
}

.type-stats-description {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--m5s-dark-gray);
    border-left: 4px solid var(--m5s-red);
}

.stats-explanation-box {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 255, 255, 0.9));
    border: 2px solid var(--m5s-yellow);
    border-radius: 10px;
    padding: 1.2rem;
    margin-top: 0.5rem;
}

.stats-explanation-box h4 {
    color: var(--m5s-blue);
    font-size: 1rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stats-explanation-box h4 i {
    color: var(--m5s-yellow);
}

.explanation-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.explanation-list li {
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(23, 107, 135, 0.1);
    font-size: 0.9rem;
    line-height: 1.4;
}

.explanation-list li:last-child {
    border-bottom: none;
}

.explanation-list li strong {
    color: var(--m5s-blue);
    font-weight: 600;
}

.type-content h3 {
    font-size: 1.5rem;
    color: var(--m5s-dark-gray);
    margin-bottom: 1rem;
    font-weight: 500;
}

.type-content p {
    color: var(--m5s-dark-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    opacity: 0.8;
}

.type-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.feature-tag {
    background: var(--gradient-secondary);
    color: var(--m5s-black);
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}



/* Process Flow */
.process-flow-section {
    padding: 4rem 0;
    background: var(--gradient-dark);
    color: white;
}

.process-flow-section .section-title {
    color: white;
}

.process-flow-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.flow-step {
    text-align: center;
    max-width: 200px;
}

.step-circle {
    width: 100px;
    height: 100px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    position: relative;
    box-shadow: var(--shadow-card);
}

.step-circle i {
    font-size: 2rem;
    color: var(--m5s-black);
}

.step-number {
    position: absolute;
    bottom: -10px;
    right: -10px;
    background: var(--m5s-red);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.step-content h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--m5s-yellow);
}

.step-content p {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.4;
}

.flow-arrow {
    font-size: 2rem;
    color: var(--m5s-yellow);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Footer */
.presentation-footer {
    background: var(--m5s-blue);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo img {
    width: 60px;
    height: 60px;
}

.footer-text h4 {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
    color: var(--m5s-yellow);
}

.footer-contact p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-contact i {
    color: var(--m5s-yellow);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .charts-showcase {
        grid-template-columns: 1fr;
    }

    .types-interactive-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
        letter-spacing: 1px;
    }

    .header-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .definition-card {
        padding: 2rem;
        margin: 0 1rem;
    }

    .definition-card h2 {
        font-size: 2rem;
    }

    .definition-card p {
        font-size: 1.1rem;
    }

    .process-card {
        padding: 2rem;
        margin: 0 1rem;
    }

    .process-card h2 {
        font-size: 1.8rem;
    }

    .process-step {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .process-step:hover {
        transform: translateY(-5px);
    }

    .process-connector {
        margin-left: 0;
        width: 100%;
        height: 30px;
        background: linear-gradient(180deg, var(--m5s-red) 0%, var(--m5s-yellow) 100%);
    }

    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .process-flow-visual {
        flex-direction: column;
    }

    .flow-arrow {
        transform: rotate(90deg);
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    /* Charts mobile fixes */
    .charts-showcase {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .chart-card {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }

    .chart-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .chart-controls {
        align-self: stretch;
        justify-content: center;
    }

    .chart-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        flex: 1;
        max-width: 120px;
    }

    .chart-container {
        height: 350px;
    }

    /* Examples mobile fixes */
    .examples-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 0 0.5rem 3rem;
    }

    .example-card {
        padding: 1.5rem;
        margin: 0;
    }

    .example-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .example-type {
        align-self: flex-start;
    }

    .example-status {
        align-self: flex-end;
    }

    .example-content h3 {
        font-size: 1.2rem;
        line-height: 1.4;
    }

    .example-content p {
        font-size: 0.9rem;
    }

    .examples-filters {
        gap: 0.5rem;
        margin: 0 0.5rem 2rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .examples-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin-top: 2rem;
    }
}

@media (max-width: 480px) {
    .main-logo {
        width: 80px;
        height: 80px;
    }

    .main-title {
        font-size: 2rem;
        word-wrap: break-word;
        hyphens: auto;
    }

    .metric-card {
        padding: 2rem 1.5rem;
    }

    .metric-number {
        font-size: 3rem;
    }

    .container {
        padding: 0 15px;
        margin: 0;
        width: 100vw;
        overflow-x: hidden;
    }

    .presentation-header,
    .portal-definition,
    .project-types-showcase,
    .transparent-process,
    .executive-dashboard,
    .visual-analytics,
    .examples-section,
    .presentation-footer {
        overflow-x: hidden;
        width: 100%;
    }

    /* Additional mobile fixes for very small screens */
    .examples-grid {
        grid-template-columns: 1fr;
        margin: 0 0.5rem 2rem;
        gap: 1rem;
    }

    .example-card {
        padding: 1rem;
        margin: 0;
        border-radius: 12px;
    }

    .example-content h3 {
        font-size: 1.1rem;
        line-height: 1.3;
        margin-bottom: 0.8rem;
    }

    .example-content p {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .example-committee {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
        margin-top: 0.8rem;
    }

    /* Enhanced chart mobile fixes */
    .visual-analytics {
        padding: 3rem 0;
    }

    .charts-showcase {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 0 0.5rem;
    }

    .chart-card {
        padding: 1rem;
        margin: 0;
        border-radius: 15px;
        overflow: hidden;
    }

    .chart-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
        margin-bottom: 1.5rem;
    }

    .chart-header h3 {
        font-size: 1.1rem;
        text-align: center;
    }

    .chart-controls {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .chart-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        min-width: 90px;
        flex: 1;
        max-width: 120px;
    }

    .chart-container {
        height: 280px;
        width: 100%;
        position: relative;
        overflow: hidden;
    }

    .chart-container canvas {
        width: 100% !important;
        height: 100% !important;
        max-width: 100%;
    }

    /* Examples filters mobile fixes */
    .examples-filters {
        flex-wrap: wrap;
        justify-content: center;
        margin: 0 0.5rem 1.5rem;
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        min-width: 85px;
        white-space: nowrap;
    }

    .examples-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        text-align: center;
        margin: 0 0.5rem;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.slide-up {
    transform: translateY(30px);
    opacity: 0;
    animation: slideUp 0.8s ease forwards;
}

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

/* Print Styles */
@media print {
    .chart-controls,
    .footer-contact {
        display: none;
    }

    .presentation-header {
        background: white !important;
        color: black !important;
    }

    * {
        box-shadow: none !important;
    }
}
/* FAQ Section */
.faq {
    padding: 5rem 0;
    background: white;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.faq-item {
    background: var(--m5s-light-gray);
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--m5s-yellow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.faq-item h3 {
    color: var(--m5s-blue);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.faq-item p {
    color: var(--m5s-dark-gray);
    line-height: 1.6;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .objectives-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .objectives-grid {
        grid-template-columns: 1fr;
    }
}

.detail-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--m5s-blue), #004080);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.3);
}

.detail-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 51, 102, 0.4);
    background: linear-gradient(135deg, #004080, #005599);
}

.detail-btn i {
    font-size: 1rem;
}