/* Header Section Styles */
.reportistica-header {
    padding: 40px 0;
}

.reportistica-header h1 {
    color:  #1A1A1A;
    font-family: Inter;
    font-size: 56px;
    font-style: normal;
    font-weight: 600;
    line-height: 150%; /* 84px */
    margin-bottom: 20px;
}

.reportistica-header p {
    color:#1A1A1A;
    font-family: Inter;
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%; /* 36px */
}

/* Analysis Results Section Styles */
.reportistica-analysis {
    padding: 40px 0;
    background: linear-gradient(180deg, #F2F7FC 0%, rgba(242, 247, 252, 0.00) 100%);
}

.section-title {
    font-size: 28px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 400;
}
.section-title strong {
    font-weight: 800;
}

.section-description {
    color:  #1A1A1A;
    text-align: center;
    font-family: Inter;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%; /* 27px */
}

.tabs-container {
    margin-top: 30px;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.tab-button {
    background: none;
    border: none;
    padding: 10px 20px;
    margin: 0 0;
    cursor: pointer;
    font-family: Inter;
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: 24px; 
    color: #2F475E;
    position: relative;
    transition: all 0.3s ease;
    border-bottom: 2px solid #C5C7C9;

}

.tab-button.active {
    color: #036;
    font-weight: 600;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #0066cc;
}

.tab-button i {
    margin-right: 8px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.analysis-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.stats-card, .map-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 25px 25px 0 25px;
}

.stats-title {
    color:  #1A1A1A;
    font-family: Inter;
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    line-height: 150%; 
}

.stats-source {
    color: var(--color-text-base, #1A1A1A);
    font-family: Inter;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%; /* 24px */
}

.value-count {
    color: var(--color-white, #FFF);
    text-align: center;
    font-family: Inter;
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    line-height: 160%;
    background-color: #003b7a;
    padding: 5px 15px;
    border-radius: 20px;
}

.stats-section h4 {
    color:  #1A1A1A;
    font-family: Inter;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 150%; /* 27px */
}

.stats-bar {
    height: 30px;
    display: flex;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.stats-segment {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    position: relative;
}

.segment-label, .segment-value, .segment-count {
    position: absolute;
    font-size: 12px;
}

.segment-label {
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    color: #333;
    white-space: nowrap;
}

.segment-value {
    color: white;
}

.segment-count {
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    color: #333;
}

/* FO Segments */
.fo-impresa {
    background-color: #00a884;
}

.fo-regionale {
    background-color: #3498db;
}

.fo-autonoma {
    background-color: #9b59b6;
}

/* BO Segments */
.bo-impresa {
    background-color: #00a884;
}

.bo-regionale {
    background-color: #3498db;
}

.bo-autonoma {
    background-color: #f1c40f;
}

/* Organization Segments */
.org-singolo {
    background-color: #e74c3c;
}

.org-associato {
    background-color: #e57373;
}

.map-title {
    color:  #1A1A1A;
    font-family: Inter;
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    line-height: 150%; /* 36px */
    text-wrap-mode: nowrap;
}

.map-description {
    color: #1A1A1A;
    font-family: Inter;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%; /* 24px */
}

.map-container {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.italy-map {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}


/* Add this to the existing CSS file */

/* Database Construction Section Styles */
.reportistica-database-construction {
    padding: 60px 0;
    background-color: #f0f7ff;
    position: relative;
    overflow: hidden;
}

.reportistica-database-construction::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background-image: url('../images/reportistica/dots-pattern.png');
    background-repeat: repeat;
    opacity: 0.1;
    z-index: 1;
}

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

.database-info {
    flex: 1;
    padding-right: 40px;
}

.database-title {
    font-size: 32px;
    margin-bottom: 20px;
    color: #333;
}

.database-description {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

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

.chart-image {
    max-width: 100%;
    height: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .database-content {
        flex-direction: column;
    }
    
    .database-info {
        padding-right: 0;
        margin-bottom: 30px;
        text-align: center;
    }
}

/* Data Download Section Styles */
.reportistica-data-download {
    padding: 40px 0;
}

.download-section {
    display: flex;
    gap: 30px;
    margin-bottom: 56px;
}

.download-info {
    flex: 1;
    display: flex;
    align-items: center;
}

.download-info p {
    color: var(--color-text-base, #1A1A1A);
    font-family: Inter;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 32px; /* 160% */
}

.download-card {
    flex: 1;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
border: 1px solid var(--color-blue-87, #BFDFFF);
background: var(--color-blue-97, #F2F7FC);
}

.download-header {
    display: flex;
    padding:10px 15px 0px 15px;
    font-weight: bold;
    font-size: 14px;
}

.download-content {
    display: flex;
    padding: 0px 15px;
    border-bottom: 1px solid #dee2e6;
}

.header-item, .content-item {
    flex: 1;
    color: var(--color-text-secondary, #2F475E);
font-family: Inter;
font-size: 14px;
font-style: normal;
font-weight: 400;
line-height: 24px; /* 171.429% */
text-transform: uppercase;
}

.header-item.nome, .content-item.nome {
    flex: 1.2;
    color: var(--color-text-secondary, #2F475E);
font-family: Inter;
font-size: 14px;
font-style: normal;
font-weight: 400;
line-height: 24px; /* 171.429% */
text-transform: uppercase;
}

/* Add this new class for the data di pubblicazione column */
.header-item.data-pubblicazione, .content-item.data-pubblicazione {
    flex: 2.5;
    color: var(--color-text-secondary, #2F475E);
    font-family: Inter;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px; /* 171.429% */
    text-transform: uppercase;
}

.download-link {
    color: #0066cc;
    text-decoration: none;
    font-weight: bold;
}

.download-link:hover {
    text-decoration: underline;
}

.content-item i {
    margin-right: 5px;
    color: #6c757d;
}

.download-action {
    padding: 15px;
    display: flex;
    align-items: end;
    justify-content: space-between;
}

.file-select {
    width: 80%;  /* Added this line to make file-select take 80% of the container */
}

.file-select label {
    color: var(--color-text-secondary, #2F475E);
    font-family: Inter;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px; /* 171.429% */
    text-transform: uppercase;
    display: block;
}

.file-select-dropdown {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    width: 100%;  /* Changed from 200px to 100% to fill the parent */
}

.download-button {
    background-color: #0066cc;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 15px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.download-button:hover {
    background-color: #0056b3;
}

.download-note {
    text-align: center;
    font-size: 14px;
    color: #6c757d;
    margin-top: 20px;
}

.download-note strong {
color:  #1A1A1A;
font-family: Inter;
font-size: 16px;
font-style: normal;
font-weight: 900;
line-height: 24px;
}
.stats-title-sub{
    color:  #1A1A1A;
    font-family: Inter;
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
}
/* Responsive adjustments */
@media (max-width: 768px) {
    .download-section {
        flex-direction: column;
    }
    
    .download-header, .download-content {
        font-size: 12px;
    }
    
    .download-action {
        flex-direction: column;
        gap: 10px;
    }
    
    .file-select-dropdown {
        width: 100%;
    }

    .map-title{
        color: #000;
text-align: center;
font-family: Inter;
font-size: 20px;
font-style: normal;
font-weight: 600;
line-height: 24px; /* 120% */
text-wrap-mode: initial !important;
    }
    .map-description {
        display: none !important;
    }
    
    /* Force mobile styles for reportistica-header */
    .reportistica-header h1 {
        font-size: 24px !important;
        font-weight: 600 !important;
        line-height: 130% !important;
    }
    
    .reportistica-header .header-description {
        width: 100% !important;
        font-size: 16px !important;
        text-align: left !important;
    }
    
    .reportistica-header p {
        font-size: 16px !important;
        line-height: 140% !important;
    }
    
    /* Mobile styles for reportistica-analysis section */
    .reportistica-analysis .section-title {
        font-size: 24px !important;
        text-align: left !important;
    }
    
    .reportistica-analysis .section-description {
        font-size: 18px !important;
        text-align: left !important;
        margin-bottom: 72px;
    }
    
    /* Mobile styles for analysis grid and map card */
    .analysis-grid {
        grid-template-columns: 1fr !important;
    }
    
    .tab-content {
        width: 100% !important;
    }
    
    .map-card {
        border-radius: 16px;
        width: 100% !important;
        margin-top: 20px;
    }
    
    .stats-card, .map-card {
        grid-column: 1 / -1 !important;
    }
    
    /* Mobile styles for tab buttons text */
    .tab-button:nth-of-type(1) {
        font-size: 0;
    }
    
    .tab-button:nth-of-type(1):before {
        content: "Sportelli SUAP";
        font-size: 16px;
    }
    
    .tab-button:nth-of-type(2) {
        font-size: 0;
    }
    
    .tab-button:nth-of-type(2):before {
        content: "Sportelli SUE";
        font-size: 16px;
    }
    
    /* Remove the previous approach that wasn't working */
    .tab-button[data-tab="suap"] .tab-text:after,
    .tab-button[data-tab="sue"] .tab-text:after,
    .tab-button[data-tab="suap"] .tab-text,
    .tab-button[data-tab="sue"] .tab-text {
        content: none;
        font-size: inherit;
    }
}

/* Database Process Section Styles */
.reportistica-database-process {
    padding: 60px 0;
    position: relative;
}

.process-timeline {
    position: relative;
}

.process-step {
    margin-bottom: 80px;
    position: relative;
}

.process-step:last-child {
    margin-bottom: 0;
}

.step-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.process-step.reverse .step-content {
    flex-direction: row-reverse;
}

.step-text, .step-image {
    flex: 1;
}

.step-title {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
    display: flex;
    align-items: center;
}

.step-number {
    color: #0066cc;
    font-weight: bold;
    margin-right: 10px;
}

.step-description {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

.step-description strong {
    font-weight: bold;
}

.step-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.connector-line {
    position: absolute;
    left: 50%;
    top: 100%;
    width: 2px;
    height: 60px;
    background-color: transparent;
    border-left: 2px dashed #0066cc;
    opacity: 0.5;
    z-index: 1;
}

.process-step:last-child .connector-line {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tab-button{
        display: flex !important;
        gap: 5px; 
    }
    .stats-title-sub{
        text-align: center;
    }

    .stats-source{
        color: #000;
        text-align: center;
        font-family: Inter;
        font-size: 12px;
        font-style: normal;
        font-weight: 400;
        line-height: 16px; /* 133.333% */
    }

     /* Hide labels on mobile */
     .stats-labels .label-left,
     .stats-labels .label-center,
     .stats-labels .label-right {
         display: none;
     }
   
    .step-text {
        text-align: center;
    }
    
    .step-title {
        justify-content: center;
    }
    
    .connector-line {
        left: 50%;
        height: 40px;
    }
}

/* Update the Header Section Styles */
.reportistica-header {
    padding: 40px 0;
}

.reportistica-header h1 {
    color:  #1A1A1A;
    font-family: Inter;
    font-size: 56px;
    font-style: normal;
    font-weight: 600;
    line-height: 150%; /* 84px */
}

.header-description-container {
    width: 100%;
    display: flex;
}

.header-description {
    width: 70%;
    font-size: 16px;
    line-height: 1.6;
}


.left-2{
    margin-left: -2px !important;
}

.left-1{
    margin-left: -1px !important;
}
.left-5{
    margin-left: -0.5% !important;
}



/* Hide legend by default */
.mobile-legend {
    display: none;
}

/* Mobile legend styles */
@media (max-width: 768px) {
.value-count{
    color:  #FFF;
    font-family: Inter;
font-size: 14px;
font-style: normal;
font-weight: 500;
line-height: 160%; /* 22.4px */
}
    .value-percent{
color:  #000;
font-family: Inter;
font-size: 14px;
font-style: normal;
font-weight: 500;
line-height: 160%; /* 22.4px */
    }
    .mobile-legend {
        display: none;
        margin-top: 24px;
    }
    
    .mobile-legend.visible {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 52px;
    }
    
    .legend-item {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .legend-color {
        width: 32px;
        border-radius: 16px;
        height: 16px;
        border-radius: 4px;
    }
    
    .legend-color {
        border-radius: 16px;
        background: linear-gradient(270deg, rgba(0, 0, 0, 0.00) 0%, rgba(0, 0, 0, 0.20) 100%), #09AFA9;
    }
    
    .legend-color.regionale {
        background: linear-gradient(270deg, rgba(0, 0, 0, 0.00) 0%, rgba(0, 0, 0, 0.20) 100%), #06C;
    }
    
    .legend-color.autonoma {
        background: linear-gradient(270deg, rgba(0, 0, 0, 0.00) 0%, rgba(0, 0, 0, 0.20) 100%), #F9C823;
    }

    .legend-color.singolo {
        background: linear-gradient(270deg, rgba(0, 0, 0, 0.00) 0%, rgba(0, 0, 0, 0.20) 100%), #B32D43; 
    }

    .legend-color.associato {
        background: linear-gradient(270deg, rgba(0, 0, 0, 0.00) 0%, rgba(0, 0, 0, 0.20) 100%), #EF92A1;    
     }


    .legend-color.nd {
        background: linear-gradient(270deg, rgba(0, 0, 0, 0.00) 0%, rgba(0, 0, 0, 0.20) 100%), #E5E5E5;
       }
    
    
    .legend-text {
        color: #000;
        font-family: Inter;
        font-size: 12px;
        font-style: normal;
        font-weight: 500;
        line-height: 24px; 

    }
}


.title-regione-seclction {
    display: flex;
flex-direction: column;
align-items: left !important;
gap: 56px;
align-self: stretch;
}



   
