﻿.grid-bandi-small .gridjs-th {
    font-size: 0.75rem; /* Intestazioni colonna */
    white-space: normal !important; /* Va a capo se serve */
}

.grid-bandi-small .gridjs-td {
    font-size: 0.75rem; /* Celle contenuto */
    padding: 6px 12px
}

.btn.custom-hover:hover { 
    border-left: 1rem solid hsl(210, 80%, 36%); 
}

#sidebar_link_list a {
    padding-left: 0px;
}

#headingFilter {
    padding: .5rem 1.5rem !important;
    --bs-bg-opacity: 1;
    background-color: rgba(var(--bs-primary-rgb), var(--bs-bg-opacity)) !important;
    color: #fff !important;
}

#headingFilter .accordion-button {
    background-color: transparent !important;
    color: #fff !important;
    box-shadow: none !important;
    border-top: none  !important;
    font-size: 1.5rem !important;
}

#headingFilter .accordion-button:hover {
    text-decoration: none;
}

#headingFilter .accordion-button::after {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M12,10.3l4.8,4.8c0.3,0.3,0.8,0.3,1.1,0c0.3-0.3,0.3-0.8,0-1l-4.8-4.8c-0.6-0.6-1.5-0.6-2.1,0L6.2,14c-0.3,0.3-0.3,0.8,0,1c0.3,0.3,0.8,0.3,1.1,0L12,10.3z'/%3E%3C/svg%3E");
    width: 1.5rem;
    height: auto;
    transition: transform .3s ease;
    transform: rotate(0deg);
}

/* Stato espanso: ruota la freccia verso l’alto */
#headingFilter .accordion-button:not(.collapsed)::after {
    transform: rotate(180deg);
}

.label-primary {
    color: var(--bs-primary) !important;
}

#light-nav .nav-link.active {
    background-color: var(--bs-primary);
    color: #fff
}

.Attach_label {
    text-decoration: underline;
    color: #0085ce;
    CURSOR: pointer;
    text-align: center;
}

.Attach_label:hover {
    color: #0072bc;
}

#sezione_suggerimenti {
    border: 1px solid #0dcaf0;
    background-color: #e7f7fc;
    border-radius: 0.5rem;
}

#sezione_suggerimenti .sezione_suggerimenti_info_icon {
    fill: #0dcaf0;
}

#sezione_suggerimenti .sezione_suggerimenti_close_btn {
    top: 0.5rem;
    right: 0.5rem;
}

#sezione_suggerimenti .sezione_suggerimenti_close_icon {
    color: #0a5275;
    fill: #0a5275;
}

#nav_grid_bandi ul {
    margin: 0px;
    padding: 0px;
}

#nav_grid_bandi ul li {
    font-style: normal;
    list-style: none !important;
}

#nav_grid_bandi .nav-pills .nav-link {
  color: #6c757d;
  background-color: transparent; 
  font-weight: 500;
  text-decoration: none;
  font-size: 1.2rem;
}

#nav_grid_bandi .nav-pills .nav-link:hover{
  font-weight: 600;
  color: var(--bs-primary);
  box-shadow: 0 2px 4px rgb(0 0 0 / 0%);
  text-decoration: none;
}

#nav_grid_bandi .nav-pills .nav-link.active {
    background-color: var(--bs-primary);
    color: #fff;
    font-weight: bold;
    border: 1px solid #dee2e6;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

#btnStampa {
    background-color: var(--bs-body-bg);
    color: var(--bs-secondary);
    border: 1px solid var(--bs-border-color);
    padding-top: 0.22rem;
    padding-bottom: 0.22rem;
}

 #btnStampa:hover {
     background-color: var(--bs-tertiary-bg);
     color: var(--bs-body-color);
     border-color: var(--bs-border-color);
     box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
     cursor: pointer;
 }

#collapseFilter input:not([type="submit"]),
#collapseFilter select,
#collapseFilter textarea {
    border: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);
    height: 40px;
    font-size: 1rem;
    font-weight: 100;
}

#collapseFilter label{
    font-size: 1rem
}

#collapseFilter {
    border-top: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);
    border-left: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);
    border-right: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);
}

#gridDiv .gridjs-search {
    display: none;
}

/*GRID JS STYLE*/
/* ---- Variabili solo per griglia---- */
.gm-container {
    --gm-font-size: 1rem;
    --gm-header-bg: #f3f4f6;
    --gm-header-txt: #2b2f36;
    --gm-border: #e6e9ef;
}

/* Griglia*/
.gm-container .gm-table {
    width: 100%;
    font-size: var(--gm-font-size);
    border-collapse: separate;
    border-spacing: 0;
}

/* HEADER*/
/* TH*/
.gm-container thead.gm-thead th.gridjs-th.gm-th {
    display: table-cell !important;
    background-color: var(--gm-header-bg) !important;
    color: var(--bs-secondary) !important;
    font-weight: 600;
    font-size: .95rem;
    padding: 1rem .4rem !important;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
    vertical-align: middle;
    text-decoration: none !important;
}

.gm-container thead.gm-thead th.gridjs-th.gm-th:focus {
    border: 0px;
}

/* Contenuto header */
.gm-container thead.gm-thead th.gridjs-th .gridjs-th-content {
    display: inline-flex;
    align-items: center;
    justify-content: space-around;
    gap: .35rem;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    text-decoration: none !important;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0; 
    font-size: 1rem;
    font-weight: 400;
}

/* Ordinamento: nascosto di default, visibile se attivo */
.gm-container thead.gm-thead th.gridjs-th .gridjs-sort {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: .9rem;
    height: .9rem;
    opacity: 0;
    visibility: hidden;
    position: static !important;
    cursor: pointer;
}

.gm-container thead th.gridjs-th .gridjs-sort.gridjs-sort-asc,
.gm-container thead th.gridjs-th .gridjs-sort.gridjs-sort-desc {
    opacity: 1;
    visibility: visible;
}

/* Altezza riga compatta */
.gm-container thead.gm-thead tr.gridjs-tr.gm-tr {
    line-height: 1.2;
}

/* Forzo lo sfondo per "vincere" su altri css*/
.gm-container thead.gridjs-thead tr.gridjs-tr th.gridjs-th,
.gm-container thead.gridjs-thead tr.gridjs-tr .gridjs-th {
    background-color: var(--gm-header-bg) !important;
}

/* tolgo riquadri bianchi del resize */
.gm-container thead.gridjs-thead tr.gridjs-tr th.gridjs-th .gridjs-resizable-handle,
.gm-container thead.gridjs-thead tr.gridjs-tr th.gridjs-th .gridjs-resizable-bar,
.gm-container thead.gridjs-thead tr.gridjs-tr th.gridjs-th .gridjs-th-resize {
    background: transparent !important;
    border: 0 !important;
}

.gm-container thead.gridjs-thead tr.gridjs-tr th.gridjs-th .gridjs-th-content {
    background-color: var(--gm-header-bg) !important;
}
/*FINE HEADER*/

/* Celle e righe */
.gm-container .gm-td {
    padding: .5rem .75rem;
    border-bottom: 1px solid var(--gm-border);
    vertical-align: middle;
    font-size: .85rem;
}

.gm-container .gm-tr:hover .gm-td {
    background: #fafbfc;
}


/* ---- Footer ----*/
.gm-container .gm-footer {
    border-top: 1px solid var(--gm-border);
    padding: .9rem .9rem;
    font-size: var(--gm-font-size);
    display: flex;
    align-items: center;
}

/* Riga di paginazione*/
.gm-container .gm-pagination {
    display: block;
    align-items: center; 
    width: 100%;
    padding-left: .6rem;
    padding-right: .6rem;
}

/* Testo "Mostrando X di Y" */
.gm-container .gm-pagination-summary {
    font-size: var(--gm-font-size);
    margin: 0;
    white-space: nowrap;
}

/* Contenitore dei bottoni di pagina */
.gm-container .gm-pagination .gridjs-pages {
    display: flex;
    align-items: center;
    gap: .4rem;
}

/* Bottoni pagina */
.gm-container .gm-page-btn {
    border: 1px solid var(--gm-border) !important;
    background: #fff;
    border-radius: .375rem;
    margin: 0;
    transition-property: background-color, box-shadow; /* niente border-color */
    transition-duration: .15s;
    transition-timing-function: ease;
}

.gm-container .gm-page-btn-current {
    background: #e9eef6;
    border-color: #cfd8e6;
    font-weight: 600;
}

/* Search */
.gm-container .gm-search input {
    font-size: var(--gm-font-size);
    height: 2rem;
    padding: .25rem .5rem;
}

/* Stati interattivi */
.gm-container .gm-page-btn:hover,
.gm-container .gm-page-btn:focus,
.gm-container .gm-page-btn:active {
    border-color: var(--gm-border) !important;
    outline: none !important;
    box-shadow: none !important;
}
.gm-container .gm-pagination .gridjs-pages {
    border-color: var(--gm-border) !important;
}

.gm-container .gm-page-btn[disabled] {
    border-color: var(--gm-border) !important;
    opacity: .6;
}


span.italia-it-button-text {
    color: #fff !important;
    width: 70%;
}

button.button-link {
    background: none;
    border: none;
    color: #ffffff;
    text-decoration: underline;
    cursor: pointer;
    font: inherit;
    padding: 0;
}

#static-content-main {
    color: #212529;
    /*font-family: system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans","Liberation Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji";*/
    line-height: 1.5;
    font-size: 1rem;
}

/* colonna contenuti */
#static-content-main .row .col-lg-9.col-xl-8 {
    padding-left: .75rem;
    padding-right: .75rem;
    max-width: 76ch;
}

/* header pagina */
#static-content-main .page-header {
    margin: 1.5rem 0;
    padding-bottom: .5rem;
    border-bottom: 1px solid #dee2e6; /* .border-bottom */
    background: transparent; /* niente barra grigia pesante */
}

#static-content-main .page-header h2,
#static-content-main h2[itemprop="headline"] {
        margin: 0;
        font-weight: 600; 
        line-height: 1.2;
        font-size: clamp(1.375rem,1.6vw + 1rem,1.875rem);
        color: #212529;
        text-transform: none;
    }

#static-content-main p {
    margin: 0 0 1rem;
    font-size: 1rem;
    text-align: left;
}

#static-content-main p span {
    color: inherit !important;
    font-family: inherit !important;
    font-size: inherit !important;
    letter-spacing: inherit !important;
    text-align: inherit !important;
}

#static-content-main strong {
    font-weight: 600;
}

#static-content-main em {
    font-style: italic;
}

#static-content-main a {
    color: #0d6efd;
    text-decoration: underline;
}

#static-content-main a:hover {
    color: #0a58ca;
}

/* i sottotitoli*/
#static-content-main p > strong {
    display: inline-block;
    margin-top: 1rem; 
    margin-bottom: .25rem; 
    line-height: 1.25;
}

/* tabelle */
#static-content-main table {
    display: block;
    width: 100%;
    margin: 1.25rem 0; 
    overflow-x: auto; 
    -webkit-overflow-scrolling: touch;
    border-collapse: collapse;
    border: 1px solid #dee2e6; 
    background: #fff;
    border-radius: .375rem; 
}

#static-content-main table th,
#static-content-main table td {
    padding: .75rem 1rem; 
    vertical-align: top;
    border-top: 1px solid #dee2e6;
    color: #212529 !important;
    font-size: .95rem;
    min-width: 220px; 
}

#static-content-main table tbody tr:first-child td {
    font-weight: 600;
    background: #f8f9fa; /* .table-light */
    border-bottom: 2px solid #dee2e6;
    border-top: 0;
}
#static-content-main table tbody tr:nth-child(n + 3):nth-child(odd) {
    background: #f9fbfd;
}

@media (max-width:576px) {
    #static-content-main .row .col-lg-9.col-xl-8 {
        max-width: 100%;
    }

    #static-content-main p[style*="text-align: justify"],
    #static-content-main span[style*="text-align: justify"] {
        text-align: left !important;
    }
}