/* -------------- Editor Styles -------------- */
.editor-content {
    min-height: 200px;
    max-height: 600px;
    overflow-y: auto;
    outline: none;
}

.editor-content.readonly {
    background-color: #f5f5f5;
    cursor: default;
}

.editor-content img.editor-image {
    max-width: 100%;
    height: auto;
    margin: 8px 0;
}

.editor-content[contenteditable=true]:empty:before {
    content: 'Inserisci il testo...';
    color: #999;
}

.editor-content p {
    margin: 0 0 8px 0;
}

.editor-content ul,
.editor-content ol {
    margin: 8px 0;
    padding-left: 24px;
}

.editor-toolbar {
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

/* -------------- Opera Detail Styles -------------- */
.opera-images .v-image,
.additional-images-scroll .v-image {
    cursor: pointer;
    transition: transform 0.2s;
}

.opera-images .v-image:hover,
.additional-images-scroll .v-image:hover {
    transform: scale(1.02);
}

.additional-images-scroll {
    position: relative;
}

.additional-images-scroll .v-image {
    flex: 0 0 auto;
}

.video-container {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.text-content {
    font-size: 1.1rem;
    line-height: 1.6;
}

.formatted-text {
   
    margin: 0 auto;
}

.publication-content {
    text-align: center;
}

/* -------------- Layout & Colors -------------- */
body {
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
}
.cherimus-logo {
    position: absolute;
    left: 50%;
    top: 7px; /* o la posizione verticale desiderata */
    transform: translateX(-50%);
    z-index: 10;
}
/* -------------- Navbar -------------- */
.cherimus-navbar {
    position: fixed!important;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background-color: #000;
    color: #fff;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: relative;
}

.cherimus-navbar .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.cherimus-navbar .logo img {
    max-height: 50px;
    width: auto;
    vertical-align: middle;
}

.cherimus-navbar .logout,
.cherimus-navbar .back-button {
    position: relative;
    z-index: 20;
    background: transparent;
    color: #fff;
    border: 0px solid #fff !important;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 600 !important;
}

.cherimus-navbar .back-button:hover,
.cherimus-navbar .logout:hover {
    background: #000000 !important;
    color: #ffffff !important;
}

.cherimus-container {
    padding-top: 64px;
    min-height: 100vh;
}

/* -------------- App & Vuetify Customization -------------- */
.v-application {
    font-family: Inter, sans-serif!important;
}

.v-application .font-weight-medium {
    font-size: 18px;
    font-weight: 600 !important;
}

.v-application .pt-6 {
    padding-top: 45px !important;
}

.v-application .text-h4 {
    font-weight: 700;
    font-size: 24px !important;
    letter-spacing: 0 !important;
}

.v-application--is-ltr .v-btn__content .v-icon--left {
    display: none !important;
}

.v-card__text,
.v-application .text-body-1 {
    font-size: 20px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    letter-spacing: 0 !important;
    color: #000000 !important;
}

/* Bottoni */
.v-btn {
    border-radius: 0px;
    font-weight: 700;
    letter-spacing: 0;
}

.v-btn:not(.v-btn--round).v-size--default {
    height: 55px;
}

.v-btn--is-elevated {
    box-shadow: none !important;
}

/* Avatar */
.v-avatar {
    border-radius: 0%;
}

/* Dialog */
.v-dialog__content {
    z-index: 2020 !important;
}

/* Container */
.container {
    max-width: 2800px !important;
    padding-left: 20px;
    padding-right: 20px;
}

/* -------------- Transparent Background Overrides -------------- */
.v-application,
.v-main,
.v-card,
.v-sheet,
.v-data-table,
.v-data-table > .v-data-table__wrapper > table,
.v-data-table > .v-data-table__wrapper > table > tbody > tr > td,
.v-application .bg-transparent,
.v-application.bg-transparent,
.theme--light.v-application,
.theme--light.v-data-table,
#cherimus-archive-app .v-card {
    background-color: transparent !important;
}

/* Rimozione bordi dalle card */
.v-card,
.v-card--outlined,
.v-sheet.v-card,
.theme--light.v-card,
.theme--dark.v-card {
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

/* Lista elementi da nascondere */
#wpadminbar,
.wp-site-blocks,
.wp-block-template-part,
.site-header,
.site-footer {
    display: none !important;
}

/* Tabella stilizzazione */
table {
    font-size: 18px;
}

table tr {
    height: 90px !important;
}

.v-data-table > .v-data-table__wrapper > table > tbody > tr > td,
.v-data-table > .v-data-table__wrapper > table > tfoot > tr > td,
.v-data-table > .v-data-table__wrapper > table > thead > tr > td {
    font-size: 18px;
}

.theme--light.v-data-table > .v-data-table__wrapper > table > tbody > tr:hover:not(.v-data-table__expanded__content):not(.v-data-table__empty-wrapper) {
    background: #000000;
}

/* App container */
#cherimus-archive-app {
    background-color: #f5f5f5;
}

/* Sfondo applicazione */
.v-application--wrap {
    background-color: #F5F5F5 !important;
}

/* -------------- Form Elements Larger Size -------------- */
.input-field-large .v-input__slot {
    min-height: 56px !important;
    background-color: white !important;
    border-radius: 0 !important;
}

.input-field-large .v-label {
    font-size: 16px !important;
}

.input-field-large input {
    font-size: 16px !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    background-color: white !important;
}

/* Centra verticalmente l'icona nel campo di ricerca */
.input-field-large .v-input__prepend-inner {
    margin-top: auto !important;
    margin-bottom: auto !important;
    align-self: center !important;
}

.checkbox-large {
    margin-top: 8px !important;
    margin-bottom: 8px !important;
}

.checkbox-large .v-input--selection-controls__input {
    transform: scale(1.2);
}

.checkbox-large .v-label {
    font-size: 16px !important;
}

/* Stili per select più grande */
.select-large {
    font-size: 16px !important;
    height: 56px !important;
    min-height: 56px !important;
}

.select-large .v-btn__content {
    font-size: 16px !important;
}

/* Assicura che tutte le listbox abbiano sfondo bianco */
.v-menu__content .v-list,
.v-select__selections,
.v-select-list,
.v-list,
.v-list-item,
.v-list-item__content,
.v-select__slot,
.v-select .v-input__slot,
.v-autocomplete__content,
.v-select__content,
.v-menu__content {
    background-color: white !important;
    border-radius: 0 !important;
}

/* Assicura che tutti i campi di input abbiano sfondo bianco e nessun border-radius */
.v-text-field .v-input__slot,
.v-select .v-input__slot,
.v-textarea .v-input__slot,
.v-input .v-input__slot,
.v-input__slot,
.v-text-field__slot,
.v-select__slot,
.v-textarea__slot,
.v-input,
.v-text-field,
.v-select,
.v-textarea,
.v-autocomplete {
    background-color: white !important;
    border-radius: 0 !important;
}

/* Assicura che i menu dropdown abbiano sfondo bianco e nessun border-radius */
.v-menu__content,
.v-select__content,
.v-autocomplete__content,
.v-combobox__content,
.v-overflow-btn__content,
.v-list,
.v-list-item {
    background-color: white !important;
    border-radius: 0 !important;
}

/* Sfondo bianco per i campi di ricerca */
.archivio-opere .v-text-field.input-field-large .v-input__slot {
    background-color: white !important;
    height: 56px !important;
    min-height: 56px !important;
    max-height: 56px !important;
}

/* Sfondo bianco per l'area filtri */
.filter-area {
    background-color: white !important;
    border-bottom: 1px solid black !important;
}

/* Tabella archivio opere */
.bg-grey {
    background-color: #f5f5f5;
}

.custom-opere-table .v-data-table__wrapper {
    border-bottom: 0 !important;
}

.custom-opere-table table {
    border-spacing: 0;
}

.custom-opere-table thead tr th {
    cursor: default !important;
    font-weight: 500 !important;
}

.custom-opere-table tbody tr {
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    border-bottom: 1px solid #000000 !important;
}

.custom-opere-table tbody tr:hover {
    background-color: #000 !important;
    color: white !important;
}

.custom-opere-table tbody tr:hover td {
    color: white !important;
}

.opera-preview {
    border-radius: 0px !important;
    overflow: hidden;
}

/* Assicura che le icone del cestino siano nere */
.v-btn.v-btn--icon.small.color-error .v-icon {
    color: black !important;
}

/* Assicura che il pulsante di eliminazione sia nero */
.v-btn.icon.small.color-error {
    color: black !important;
}

/* Cambio colore dell'icona quando si passa sopra la riga */
.custom-opere-table tbody tr:hover .v-icon {
    color: white !important;
}

/* Correzione per l'header delle azioni quando si è loggati */
.v-data-table__wrapper table thead tr th:last-child {
    display: table-cell !important;
}

/* Stili per il menu dei filtri con scrolling globale */
.filter-container {
    width: 100%;
    max-height: 350px;
    overflow-y: auto;
    background-color: white !important;
}

.filter-list {
    display: flex;
    flex-direction: column;
    max-height: none;
    overflow-y: visible;
}

.years-list, .types-list {
    max-height: none;
    background-color: white;
}

.filter-item {
    margin-bottom: 2px;
    border-radius: 0 !important;
    text-transform: none !important;
    min-width: 100% !important;
    height: 32px !important;
    text-align: left !important;
    justify-content: flex-start !important;
    padding-left: 12px !important;
    font-size: 12px !important;
    font-weight: 400 !important;
}

.filter-item.v-btn--active,
.filter-item.black--text {
    background-color: black !important;
    color: white !important;
    font-size: 12px !important;
    font-weight: 400 !important;
}

/* Personalizzazione scrollbar per il contenitore principale */
.filter-container::-webkit-scrollbar {
    width: 6px;
}

.filter-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.filter-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.filter-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Menu dei filtri */
.filter-menu-content {
    background-color: white !important;
    border-radius: 0 !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15) !important;
    min-width: 440px !important;
    width: 440px !important;
}

.v-card.v-sheet {
    background-color: #f5f5f5 !important;
}

.v-menu__content .v-card {
    background-color: white !important;
}

/* Rimuovere la larghezza dinamica e impostare quella fissa */
.v-menu__content.filter-menu-content {
    width: 440px !important;
}

/* Assicura che il contenuto del menu abbia lo sfondo corretto */
.filter-container {
    background-color: white !important;
}

.v-card__text {
    background-color: #f5f5f5 !important;
}

/* Contenuto delle card nei menu deve avere sfondo bianco */
.v-menu__content .v-card__text {
    background-color: white !important;
}

/* Stili per le chips dei filtri */
.selected-filters-chips {
    max-width: calc(100% - 40px); /* Spazio per l'icona */
    overflow: hidden;
}

.filter-chip {
    height: 24px !important;
    font-size: 12px !important;
    border-radius: 0 !important;
}

/* Per assicurarsi che il pulsante filtri si espanda verticalmente per contenere le chips */
.filter-btn {
    align-items: flex-start !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    height: auto !important;
    min-height: 56px !important;
}

.filter-btn .v-btn__content {
    height: auto !important;
    min-height: 40px !important;
    flex-wrap: wrap !important;
}

/* Stile per il testo del riassunto filtri */
.filter-summary {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}

/* Debug per visualizzare i filtri attivi */
.filter-debug {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background: white;
    padding: 10px;
    border: 1px solid #ccc;
    z-index: 9999;
}

/* Uniformare altezza degli elementi dell'intestazione */
.archivio-opere .v-input.v-text-field.input-field-large,
.archivio-opere .filter-btn,
.archivio-opere .v-btn {
    height: 56px !important;
    min-height: 56px !important;
    max-height: 56px !important;
}

/* Assicura che il campo di ricerca abbia la giusta altezza */
.archivio-opere .v-text-field.input-field-large .v-input__slot {
    height: 56px !important;
    min-height: 56px !important;
    max-height: 56px !important;
}

/* Rimuovi padding aggiuntivi che potrebbero alterare l'altezza */
.archivio-opere .filter-btn {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Centra il contenuto del pulsante verticalmente */
.archivio-opere .filter-btn .v-btn__content {
    height: 56px !important;
    min-height: 56px !important;
    align-items: center !important;
}

/* Uniforma l'altezza del pulsante aggiungi opera */
.archivio-opere .v-btn.v-size--default:not(.v-btn--icon):not(.v-btn--fab) {
    height: 56px !important;
}

/* Uniforma gli elementi di riga */
.archivio-opere .v-row .v-col {
    display: flex;
    align-items: center;
}

/* Contenitore per le chip dei filtri */
.filter-chips-container {
    max-width: calc(100% - 30px);
    overflow: hidden;
    flex-wrap: wrap;
    min-height: 40px;
}

/* Stile per le chip dei filtri */
.filter-chip {
    height: 24px !important;
    font-size: 12px !important;
    margin-bottom: 2px !important;
    margin-top: 2px !important;
}

/* Assicurati che le chip siano mostrate correttamente */
.archivio-opere .filter-btn .v-btn__content {
    height: auto !important;
    min-height: 40px !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
}

/* Uniforma altezza elementi nell'interfaccia di ricerca */
.archivio-opere .v-text-field.v-text-field--enclosed .v-text-field__details,
.archivio-opere .v-text-field.v-text-field--enclosed > .v-input__control > .v-input__slot {
    margin-bottom: 0 !important;
    min-height: 56px !important;
}

.archivio-opere .v-input--dense .v-input__slot, 
.archivio-opere .v-input--dense .v-input__prepend-outer, 
.archivio-opere .v-input--dense .v-input__append-outer,
.archivio-opere .v-input--dense .v-input__prepend-inner,
.archivio-opere .v-input--dense .v-input__append-inner {
    margin-top: 0 !important;
}

.archivio-opere .v-text-field input {
    margin-top: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    height: 24px !important;
}

.archivio-opere .v-input__prepend-inner {
    padding-right: 8px !important;
}

.archivio-opere .v-text-field.input-field-large input {
    margin-top: 0 !important;
}

.archivio-opere .v-text-field .v-input__slot {
    display: flex !important;
    align-items: center !important;
}

/* Assicurati che il v-text-field non abbia altezza extra */
.archivio-opere .v-text-field.v-input--has-state .v-input__control .v-input__slot,
.archivio-opere .v-text-field.v-input--is-focused .v-input__control .v-input__slot {
    min-height: 56px !important;
    height: 56px !important;
}

/* Rimuovi margini extra */
.archivio-opere .v-text-field .v-input__control {
    min-height: 56px !important;
}

/* Sovrascrivi stile del campo di ricerca per assicurare l'altezza esatta */
.archivio-opere .v-text-field.input-field-large.v-input--is-readonly > .v-input__control > .v-input__slot, 
.archivio-opere .v-text-field.input-field-large.v-input--is-disabled > .v-input__control > .v-input__slot,
.archivio-opere .v-text-field.input-field-large > .v-input__control > .v-input__slot {
    min-height: 56px !important;
    height: 56px !important;
}

/* -------------- Footer Styles -------------- */
footer {
    background-color: #f5f5f5 !important; /* Stesso colore di sfondo della pagina */
    padding: 20px 0;
    text-align: center;
    margin-top: 30px;
    border-top: 1px solid #ddd;
}

footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

footer .logo {
    margin-top: 20px; /* Aggiungo più spazio sopra il logo */
    margin-bottom: 15px;
}

footer .copyright {
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
}

footer .funding {
    font-size: 12px;
    color: #666;
}

/* Aggiungi regole globali per rimuovere border-radius da tutti gli elementi di input */
.v-input,
.v-text-field,
.v-select,
.v-textarea,
.v-autocomplete,
.v-combobox,
.v-overflow-btn,
.v-file-input,
.v-radio,
.v-checkbox,
.v-switch,
.v-slider,
.v-range-slider,
.v-rating,
.v-chip,
.v-btn:not(.v-btn--round),
.v-card,
.v-sheet,
.v-menu__content,
.v-dialog,
.v-expansion-panel,
.v-tabs,
.v-tab,
.v-tab-item,
.v-window,
.v-window-item,
.v-stepper,
.v-stepper-step,
.v-stepper-content,
.v-pagination__item,
.v-data-table,
.v-data-footer,
.v-data-iterator,
.v-treeview,
.v-timeline,
.v-timeline-item,
.v-badge,
.v-tooltip,
.v-snackbar,
.v-alert,
.v-banner,
.v-bottom-navigation,
.v-bottom-sheet,
.v-calendar,
.v-color-picker,
.v-date-picker,
.v-time-picker,
.v-otp-input,
.v-virtual-scroll,
.v-skeleton-loader,
.v-responsive,
.v-img,
.v-parallax,
.v-progress-circular,
.v-progress-linear {
    border-radius: 0 !important;
}

/* Assicura che tutti i menu e dropdown abbiano sfondo bianco */
.v-menu__content,
.v-select__content,
.v-autocomplete__content,
.v-combobox__content,
.v-overflow-btn__content,
.v-list,
.v-list-item,
.v-list-group,
.v-list-group__items,
.v-list-item__content,
.v-list-item__title,
.v-list-item__subtitle,
.v-subheader {
    background-color: white !important;
}

/* Assicura che il menu dei filtri abbia sfondo bianco */
.filter-menu-content,
.filter-menu-content .v-card,
.filter-menu-content .v-card__text,
.filter-menu-content .filter-container,
.filter-menu-content .filter-list,
.filter-menu-content .years-list,
.filter-menu-content .types-list {
    background-color: white !important;
}

/* Correggi lo stile per i pulsanti nel menu dei filtri */
.filter-menu-content .filter-item {
    background-color: white !important;
}

.filter-menu-content .filter-item.v-btn--active,
.filter-menu-content .filter-item.black--text {
    background-color: black !important;
    color: white !important;
}

/* Assicura che il bordo sia visibile anche quando il menu è aperto */
.v-menu--active .filter-area {
    border-bottom: 1px solid black !important;
}

/* -------------- Fixed Save Button -------------- */
.fixed-save-button {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
}

.fixed-save-button .v-btn {
    border-radius: 0 !important;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Aggiungiamo del padding al fondo del contenuto per evitare che il pulsante fisso nasconda elementi */
#opera-dialog-form {
    padding-bottom: 70px;
}


.v-image:hover{
    transform: scale(1.0)!important;
}

.v-carousel .v-window-item {
    background-color: #101010 !important;
}

.v-dialog{
    overflow: hidden !important;
}

.quill-editor-container {
    background-color: white !important;
    height: 300px !important;
}

.quill-editor-container .quill-editor {
    height: 255px !important;
}

.admin-info .v-input__slot,  .admin-info .v-input {
    background-color: #FFF !important;
}
.admin-info .sfondo-transparente .v-input__slot,  .admin-info .sfondo-transparente {
    background-color: #F5F5F5 !important;
}


footer{
    margin-bottom: 70px;
}

html{
    margin-top: 0px !important;
}

h1,h2,h3,h4,h5,h6{
    font-family: Inter, sans-serif!important;
    margin-bottom: 10px !important;
}
.v-application .text-h5, .v-application .text-h6{
    font-family: Inter, sans-serif!important;
}

.theme--light.v-data-table > .v-data-table__wrapper > table > tbody > tr:not(:last-child) > td:not(.v-data-table__mobile-row) {
border-bottom: thin solid #000;
}

.theme--light.v-data-table > .v-data-table__wrapper > table > thead > th  {
border-bottom: thin solid #000;
}

table{
   border-bottom: 1px solid #000;

}

.v-application .subtitle-1{
    font-size:12px!important;
        font-weight: 400 !important;
}

.dettaglio-title{
   font-size:18px ;
   font-weight:600 ; 
   margin-top:90px!important;
}

.v-application .text-caption, .v-application .text-overline {
    font-size: 16px !important;
    font-family: Inter, sans-serif!important;
}

.dettaglio-title-image{
   font-size:16px ;

}

.v-btn__content{
    font-size:16px!important;
    font-weight: 500 !important;
    text-transform : capitalize ;
}


footer{
    padding: 60px 0 0px 0;
  text-align: center;
  border-top: 0px solid #ddd;
}


#opera-dialog-form {
  padding-bottom: 0px;
}

.aggiungi-opera span{
    font-size: 20px !important;  font-weight: 700 !important; padding: 0px 15px;
}

.v-select.v-text-field:not(.v-text-field--single-line) input {
   
    background-color: transparent !important;
}

th{

    border-bottom: 1px solid #000!important;
}

.v-dialog{
    background-color: #f5f5f5!important ;
}

.admin-info{
    max-width: 500px;
    margin: 20px auto;
}

.admin-info h4{
    font-family: Inter, sans-serif!important;
    font-size: 18px!important;
    text-align: left!important;
    font-weight: 600!important;
}
.admin-info p{
    font-family: Inter, sans-serif!important;
    
    text-align: left!important;
}

.cherimus-footerbar{
    background-color: #000!important;    
    padding: 3px 0;
    z-index: 1000000!important;
}
