

/* =================================================================================> GLOBAL  */
body,
.bg-primary,
.bg-white
{
    font-family: var(--carchivio-font-family);
    font-weight: 700;
    font-style: normal;
    font-feature-settings: 'dlig' on;
    color: var(--carchivio-font-color);
    background: var(--carchivio-color-background-primary) !important;
}



/* Hedaer */

.it-header-slim-wrapper,
.it-header-center-wrapper
{
    display: none !important;
}

#header-homepage
{
    position: fixed;
    z-index: 100;
    width: 100%;
}

div#header-logged,
div#header-operatori,
#header-homepage
{
    background-color: #fff;
    border-bottom: 1px solid var(--carchivio-color-background-accent);
    height: 68px;
    align-content: center;
    align-items: center;
    padding: 0 56px;
}

div#header-logged a,
#header-homepage a
{
    font-size: 20px;
    font-weight: 400;
    cursor: pointer;
    color: var(--carchivio-font-color);
    text-decoration-color: transparent;
    transition: text-decoration-color .3s ease-in-out;
}

#header-homepage a.button--primary
{
    font-size: 18px !important;
    font-weight: 700 !important;
}

#header-logged--brand a,
#header-operatori p,
#header-homepage--brand a
{
    font-family: Unbounded;
    font-size: 20px !important;
    font-weight: 800 !important;
    line-height: 50.128px; /* 250.641% */
    letter-spacing: 2px;
    margin: 0;
}

div#header-logged a#header-logged-link-settings
{
    font-size: 16px;
    font-weight: 600;
}

div#header-logged a:hover
{
    text-decoration-color: var(--font-color-primary);
}

div#header-logged .header--active-link 
{
    font-weight: bold;
    text-decoration: underline;
}



#header-homepage div#header-homepage--nav .button--primary
{
    color: var(--carchivio-color-button-primary-text);
}


#header-homepage .navbar
{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

#header-homepage .navbar-nav
{
    margin-left: auto;
}

.navbar-toggler
{
    border: none;
}

button.navbar-toggler[aria-expanded="false"] > .navbar-toggler-icon
{
    background-image: url("/sites/default/files/assets/navbar_collapse.svg");
}

button.navbar-toggler[aria-expanded="true"] > .navbar-toggler-icon
{
    background-image: url("/sites/default/files/assets/navbar_close.svg");
}

/* Navbar collapse - make it expand only downward with white background */
#header-homepage .navbar-collapse
{
    background-color: #fff;
    width: 100%;
    position: absolute;
    top: 68px; /* Height of the navbar */
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--carchivio-color-background-accent);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#header-homepage .navbar-collapse .navbar-nav
{
    padding: 20px 56px;
    margin-left: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

/* On larger screens (xl and above), keep the original layout */
@media (min-width: 1200px)
{
    #header-homepage .navbar-collapse
    {
        position: static;
        width: auto;
        box-shadow: none;
        border-bottom: none;
        background-color: transparent;
    }
    
    #header-homepage .navbar-collapse .navbar-nav
    {
        flex-direction: row;
        align-items: center;
        margin-left: auto;
        padding: 0;
        gap: 24px;
    }
    
    #header-homepage div#header-homepage--nav .button--primary
    {
        margin-left: 8px;
    }
}



/* Footer */
.it-footer-main
{
    background-color: var(--carchivio-color-background-dark);
    /* height: 295px; */
    padding-top: 82px;
    margin-top: 60px;
}

#footer-main--content
{
    border-bottom: 1px solid #FBC00E;
    margin-bottom: 22px;
    padding-bottom: 62px;
}

#footer-main--content--brand p
{
    font-family: Unbounded;
    font-size: 20px;
    font-weight: 800;
    line-height: 50.128px; /* 250.641% */
    letter-spacing: 2px;
}

@media (max-width: 990px)
{
    .it-footer-main
    {
        margin-bottom: 100px;
    }
}

@media (max-width: 880px)
{
    #footer-main--content--brand p
    {
        font-size: 26px;
    }
}


p.footer-main--info-title
{
    font-size: 18px;
    letter-spacing: 2px;
    margin: 0;
}

a.footer-main--info-value
{
    color: #FBC00E;
    font-size: 16px;
    font-weight: 400;
    line-height: 20.1px;
    letter-spacing: 2px;
    text-wrap: nowrap;
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: auto;
    text-decoration-thickness: auto;
    text-underline-offset: auto;
    text-underline-position: from-font;
}

a.footer-main--info-value[href*=https]
{
    text-wrap:initial;
}


#footer-main--credits
{
    max-width: 1064px;
}

#footer-main--credits p
{
    font-size: 14px;
    font-weight: 400;
    line-height: 20.1px;
    letter-spacing: 2px;
}








/* DIALOG */

.ui-dialog h1
{
    font-size: 25px !important;
}




















/* TEXT */
h1
{
    font-size: 45px !important;
    line-height: 50px !important;
}

#it-block-carchivio-theme-page-title h1
{
    margin-bottom: 48px;
}

h2
{
    font-size: 35px !important;
    font-weight: 400 !important;
    line-height: 50px !important;
}

/* The h1 on mobile only pages are slightly different */
.h1-mobile
{
    font-size: 32px !important;
    font-weight: 700 !important;
    line-height: 32px !important;
    text-align: center;
}

.h2-mobile
{
    font-size: 28px !important;
    line-height: 35px !important;
    font-weight: 700 !important;
}


/* BUTTONS */
.button--primary,
.button--accent,
.button--danger,
.button--outlined,
.button--disabled
{
    display: inline-block;
    border-radius: 68px;
    background-color: var(--carchivio-color-button-primary);
    color: var(--carchivio-color-button-primary-text);
    border: 3px solid var(--carchivio-color-button-primary);
    height: 40px;
    padding: 0 16px;
    justify-content: center;
    align-items: center;
    align-content: center;
    text-align: center;
    flex-shrink: 0;
    
    font-size: 18px;
    font-weight: 700;
    line-height: 21px;
    text-decoration: none;
    cursor: pointer;
    
    transition: background-color 0.3s ease-in-out, 
                color 0.3s ease-in-out, 
                border-color 0.3s ease-in-out;
}

.button--accent
{
    background-color: var(--carchivio-color-button-accent);
    color: var(--carchivio-color-button-accent-text);
    border: 3px solid var(--carchivio-color-button-accent);
    height: 32px;

    font-size: 16px;
    line-height: 23px;
}

.button--danger
{
    background-color: transparent;
    color: var(--carchivio-font-color-red);
    border: none;
    height: 29px;
    box-sizing: border-box;

    font-size: 16px;
    line-height: 23px;
    text-decoration: none;
}

.button--outlined
{
    border: 3px solid var(--carchivio-color-button-primary);
    background-color: #fff;
    box-shadow: none;
    color: var(--carchivio-color-button-accent-text);
    height: 32px;
}

.button--disabled
{
    background-color: var(--carchivio-color-button-disabled) !important;
    color: var(--carchivio-color-button-disabled-text) !important;
    border: 3px solid var(--carchivio-color-button-disabled) !important;
    cursor: not-allowed;
}

.button--primary:hover, .button--primary:active,
.button--accent:hover, .button--accent:active,
.button--danger:hover, .button--danger:active,
.button--outlined:hover, .button--outlined:active
{
    border: 3px solid #FBC00F !important;
    color: #fff !important;
    background-color: #FBC00F !important;
    box-shadow: none;
}

div#edit-actions
{
    margin-top: 48px;
}



/* TABLES */
.views-element-container
{
    background: #fff; 
    border-radius: 8px; 
    border: 1px solid #A3BAD1;
    padding: 33px 36px; 
    overflow: hidden;
}

@media screen and (max-width: 1200px)
{
    .views-element-container
    {
        padding: 33px 24px;
    }
}

table
{
    table-layout: fixed;
    border-collapse: separate !important;
    width: 100%;
    background: #fff !important;
    border-spacing: 0;
}

table th
{
    border: none;
}

table td.views-field
{
    border-bottom: 1px solid #A3BAD1;
    padding-top: 20px;
    padding-bottom: 27px;
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 19px;
    font-weight: 400;
    line-height: 23px; 
}

table caption
{
    caption-side: top;
    color: var(--carchivio-font-color);
    font-size: 25px;
    font-weight: 700;
    line-height: 23px;
    padding-bottom: 33px;
}



/* FORM */
.form-group
{
    margin-bottom: 24px;
}

.form-group label,
.form-group label.active,
.form-item label,
fieldset legend,
fieldset legend span
{
    color: var(--carchivio-font-color);
    transform: none;
    position: static;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    margin-bottom: 8px;
}

.form-group input,
.form-item input,
.form-textarea
{
    border-radius: 8px !important;
    border: 1px solid #A3BAD1;
    background: #FFF;
    width: 100%;
    max-width: 500px;
    min-height: 56px;
    anchor-name: --form-input;
}

.select-wrapper select
{
    background-color: #fff;
    border: 1px solid var(--carchivio-color-background-accent);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: var(--carchivio-font-color-dimmed);
    margin-bottom: 24px;
    min-height: 56px;
    /* width: auto; */
    /* min-width: 200px; */
    max-width: 178px;
}

.password-icon
{
    position: absolute;
    position-anchor: --form-input;
    /* position-area: right; */
    background-color: transparent;
    right: anchor(right);
    top: anchor(top);
    bottom: anchor(bottom);
    margin-right: 8px;
}

.password-strength__indicator
{
    background-color: green;
}

#edit-field-accettazione-privacy-value
{
    opacity: 0;
    width: 1px;
    height: 1px;
    cursor: none;
}


/* operatore pin field in every form*/
input.form-item-disabled
{
    background: var(--carchivio-color-form-disabled);
    border: 1px solid var(--carchivio-color-form-disabled);
}

/* Rimuoviamo dai field numerici i pulsanti per aggiungere/togliere */
.input-number span
{
    display: none;
}



/* Table Forms */
.form-check [type=checkbox]
{
    position: static;
    opacity: 100%;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    border: 1px solid #000;
    /* opacity: 1; */
}


















/* =================================================================================> Pages  */


#it-block-carchivio-theme-page-title
{
    margin-top: 64px;
}


/* Registration */
label[for=edit-field-accettazione-privacy-value]
{
    font-size: 14px !important;
    margin-top: 64px;
}


label[for=edit-field-accettazione-privacy-value]::before
{
    top: unset !important;
}


label[for=edit-field-accettazione-privacy-value]::after
{
    margin: 0 !important;
    left: 4px !important;
}



/* === Welcome Page === */

.page-welcome,
.page-email-confirm
{
    align-items: center;
    justify-content: center;
    align-content: center;
    text-align: center;
    padding-top: 97px;
    padding-bottom: 135px;
}

.page-welcome h1
{
    max-width: 563px;
    margin: auto;
    margin-bottom: 29px;
}

.page-welcome h2
{
    width: 100%;
    max-width: 440px;
    margin: auto;
    margin-bottom: 46px;
}

.page-welcome .button-primary
{
    min-width: 171px;
}

#page-cantiere-created .button--primary,
#page-cantiere-created .button--outlined
{
    width: 230px;
    height: 40px;
}

#page-cantiere-created
{
    padding: 130px 0;
}













/* =================================================================================> Viste  */

/* === VISTA I tuoi Operatori === */
.view-i-tuoi-operatori-header h1
{
    margin-top: 49px;
    margin-bottom: 25px;
}

.view-i-tuoi-operatori-header .view-i-tuoi-operatori-header-body
{
    color: var(--font-color-primary);
    font-family: var(--font-family);
    font-feature-settings: 'dlig' on;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 30px;
    margin-bottom: 25px;
}

.view-i-tuoi-operatori-header .button--primary
{
    margin-bottom: 47px;
}

/* Column widths for I tuoi operatori table */
.view-i-tuoi-operatori .views-field-title
{
    width: 25%;
}

.view-i-tuoi-operatori .views-field-field-cognome
{
    width: 25%;
}

.view-i-tuoi-operatori .views-field-field-pin
{
    width: 10%;
}

.view-i-tuoi-operatori .views-field-nothing,
.view-i-tuoi-operatori .views-field-nothing-1
{
    width: 15%;
}


#header-lista-operatori-block
{
    background-color: #DBE9F7;
    border-bottom: 1px solid var(--carchivio-color-background-accent);
    height: 120px;
    width: 100%;
    justify-content: center;
    align-items: center;
    top: 0
}

#header-lista-operatori-block p
{
    font-size: 20px;
    line-height: 50px;
}


/* Vista I tuoi cantieri */

.view-cantieri-attivi .views-field-title
{
    width: 30%;
}


.view-cantieri-attivi .views-field-field-indirizzo
{
    width: 29%;
}

.view-cantieri-attivi .views-field-nothing
{
    width: 15%;
}

.view-cantieri-attivi .views-field-nothing-1
{
    width: 20%;
}

.view-cantieri-attivi .views-field-nothing-2
{
    width: 15%;
}

@media screen and (max-width: 1200px)
{
    .view-cantieri-attivi .views-field-title
    {
        width: 20%;
    }
    
    .view-cantieri-attivi .views-field-field-indirizzo
    {
        width: 25%;
    }

    .view-cantieri-attivi .views-field-nothing
    {
        width: 17%;
    }
    
    .view-cantieri-attivi .views-field-nothing-1
    {
        width: 24%;
    }
    
    .view-cantieri-attivi .views-field-nothing-2
    {
        width: 15%;
    }
}



/* Dashboard */
#header-dashboard-block--title h5
{
    font-size: 17px;
    font-weight: 400;
    line-height: 23px;
}

#header-dashboard-block--title .button--accent
{
    max-width: 100px;
}

#header-dashboard-block--title .button--primary
{
    height: 50px;
}

#header-dashboard-block--info-section
{
    gap: 12px;
    margin: 30px 0px;
}

#header-dashboard-block--info-section .header-dashboard-block--info
{
    background-color: #fff;
    border: 1px solid var(--carchivio-color-background-accent);
    border-radius: 8px;
    padding: 24px;
    width: 370px;
}

#header-dashboard-block--info-section .header-dashboard-block--info .title
{
    font-size: 16px;
    font-style: normal;
    line-height: 24px;
}

#header-dashboard-block--info-section .header-dashboard-block--info .body
{
    font-size: 24px;
    font-style: normal;
    line-height: 30px;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

#header-dashboard-block--info-section .header-dashboard-block--info .list-operatori
{
    text-overflow: ellipsis;
    overflow: hidden;
    margin: 0;
}



/* Filter section of dashboard */
#views-exposed-form-dashboard-cantiere-page-1
{
    display: flex;
    flex-direction: row;
    width: 100%;
    min-height: 200px;
    justify-content: space-evenly;
    align-content: center;
    align-items: center;
    background-color: #fff;
    border: 1px solid var(--carchivio-color-background-accent);
    border-radius: 8px;
    margin-bottom: 26px;
}

#views-exposed-form-dashboard-cantiere-page-1 input
{
    max-width: 235px;
    height: 40px;
}


#views-exposed-form-dashboard-cantiere-page-1 .form-item-field-operatore-target-id-verf
{
    display: flex;
    flex-direction: column;
    width: 250px;
    margin-bottom: 24px;
}


span.select2-selection
{
    border-radius: 8px !important;
    border: 1px solid var(--carchivio-color-background-accent);
    background: #FFF;
    width: 100%;
    max-width: 500px;
    min-height: 56px !important;
    align-content: center;
    position: relative;
    padding-right: 40px;
}


 .select2-selection::after 
{
    content: '';
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230066cc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none; 
}


.select2-search__field
{
    font-family: var(--carchivio-font-family) !important;
    font-size: 18px !important;
    height: 26px !important;
}

.select2-dropdown--below
{
    max-width: 500px;
}

 .select2-results__option
{
    padding-left: 30px !important;
    position: relative;
    max-width: 500px;
}


/* checkbox */
 .select2-results__option:before 
{
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border: 1px solid #aaa;
  border-radius: 3px;
  background-color: #fff;
  transition: all 0.2s;
}

/* checbox tick */
.select2-results__option--selected:before 
{
    background-color: var(--carchivio-color-button-primary, #0066cc);
    border-color: var(--carchivio-color-button-primary, #0066cc);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white' width='18px' height='18px'%3E%3Cpath d='M0 0h24v24H0z' fill='none'/%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
    background-size: cover;
}


.select2-container--default .select2-results__option--highlighted[aria-selected] 
{
    background-color: transparent;
    color: #333;
}

.select2-results__option--selected
{
    background-color: transparent !important;
    font-size: 20px !important;
    line-height: 30px;
}

/* .select2-selection__choice {
    display: none !important;
} */

#views-exposed-form-dashboard-cantiere-page-1 input[id^=edit-field-nota-value]
{
    anchor-name: --filter-nota;
}

#views-exposed-form-dashboard-cantiere-page-1 fieldset[id*=edit-field-giornata-value-wrapper] .fieldset-wrapper
{
    display: flex;
    gap: 1rem;
}

#views-exposed-form-dashboard-cantiere-page-1 fieldset[id*=edit-field-giornata-value-wrapper] .fieldset-wrapper h4
{
    display: none;
}

#views-exposed-form-dashboard-cantiere-page-1 div[id*=edit-actions]
{
    display: flex;
    gap: 1rem;
}

#views-exposed-form-dashboard-cantiere-page-1 input[id^=edit-submit-dashboard-cantiere--]
{
    anchor-name: --filter-submit-button;
}

#views-exposed-form-dashboard-cantiere-page-1 .filter-status-message
{
    position: absolute;
    position-anchor: --filter-submit-button;
    position-area: bottom;
}



.path-dashboard #vbo-action-form-wrapper input[id*=edit]
{
    display: inline-block;
    border-radius: 68px;
    background-color: var(--carchivio-color-button-primary);
    color: var(--carchivio-color-button-primary-text);
    height: 50px;
    padding: 0 32px;
    justify-content: center;
    align-items: center;
    align-content: center;
    text-align: center;
    flex-shrink: 0;
    
    font-size: 18px;
    line-height: 21px;
    text-decoration: none;
    cursor: pointer;
    margin-bottom: 26px;
    opacity: 1;
}


/* Hide the duplicate export button at the bottom of the form (not the one in the header) */
.path-dashboard form.vbo-view-form > .form-actions
{
    display: none;
}


.path-dashboard .views-element-container
{
    border: none;
    background: none;
    padding: 0px;
}

.path-dashboard table.vbo-table
{
    border: 1px solid var(--carchivio-color-background-accent);
    border-radius: 8px;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;

    padding: 0px 41px;
}

.path-dashboard .vbo-table > caption
{
    border: 1px solid var(--carchivio-color-background-accent);
    border-radius: 8px;
    border-bottom: 2px solid var(--carchivio-color-background-accent);
    border-bottom-right-radius: 0px;
    border-bottom-left-radius: 0px;
    background: #fff;

    font-size: 20px;
    font-weight: 500;
    line-height: 21px;

    padding: 32px 41px;
}

.view-dashboard-cantiere img.image-style-dashboard-lavorazione 
{
    border-radius: 100px;
}

.view-dashboard-cantiere .views-field-views-bulk-operations-bulk-form
{
    width: 5%;
    padding-right: 0;
}

/* Hide all the images after the first one */
.dashboard-gallery-images a 
{
    display: none !important;
}

.dashboard-gallery-images a:first-child 
{
    display: inline-block !important;
}


.view-dashboard-cantiere .views-field-nothing-2
{
    width: 13%;
    padding-right: 0;
}

.view-dashboard-cantiere .views-field-field-ore-lavorate
{
    width: 5%;
    padding-right: 0;
}

.view-dashboard-cantiere .views-field-field-nota
{
    width: 20%;
    font-size: 17px;
    padding-right: 0;
}

.view-dashboard-cantiere .views-field-field-nota > div
{
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    width: 100%; 
    max-width: 100%;
    white-space: normal;
}


.view-dashboard-cantiere .views-field-field-photos
{
    width: 10%;
    padding-right: 0;
}

.view-dashboard-cantiere .views-field-nothing
{
    width: 9%;
    padding-right: 0;
}

.view-dashboard-cantiere .views-field-nothing-1
{
    width: 9%;
    padding-right: 0;
}

@media screen and (max-width: 1200px)
{
    

    #views-exposed-form-dashboard-cantiere-page-1
    {
        min-height: 270px;
    }

    #views-exposed-form-dashboard-cantiere-page-1 div[id*=edit-actions]
    {
        position: absolute;
        position-anchor: --filter-nota;
        position-area: bottom;
        margin-top: 20px;
    }
    
    .view-dashboard-cantiere .views-field-nothing-2
    {
        width: 11%;
        padding-right: 0;
    }

    .view-dashboard-cantiere .views-field-field-ore-lavorate
    {
        width: 5%;
        padding-right: 0;
    }

    .view-dashboard-cantiere .views-field-field-nota
    {
        width: 15%;
        font-size: 17px;
        padding-right: 0;
    }

    .view-dashboard-cantiere .views-field-field-photos
    {
        width: 8%;
        padding-right: 0;
    }

    .view-dashboard-cantiere .views-field-nothing
    {
        width: 9%;
        padding-right: 0;
    }

    .view-dashboard-cantiere .views-field-nothing-1
    {
        width: 9%;
        padding-right: 0;
    }

    .path-dashboard table.vbo-table
    {
        padding: 0px 24px;
    }
}

.path-dashboard .views-field-views-bulk-operations-bulk-form input[type=checkbox]
{
    width: 14px;
    height: 14px;
    accent-color: var(--carchivio-color-button-primary);
}

tr.dashboard-row-create-new-lavorazione
{
    height: 80px;
}





















/* =================================================================================> Nodes  */


/* Titolare user page */
#page-default:has(.user-profile--titolare)
{
    background-color: #fff;
}

.user-profile--titolare h1
{
    font-size: 32px;
    font-weight: 700;
    line-height: 40px;
    margin-bottom: 24px;
}

.user-profile--field .title
{
    font-size: 20px;
    font-weight: 700;
    line-height: 46px;
    margin: 0;
}

.user-profile--field .body
{
    font-size: 18px;
    font-weight: 400;
    line-height: 46px;
    margin: 0;
    margin-bottom: 12px;
}

/* Pagina di aggiunta di un cantiere */
small#edit-field-operatori--description
{
    display: none;
}

#inline-entity-form-field_operatori-form div[id^=edit-field-operatori-actions]
{
    display: flex;
    flex-direction: row;
    gap: 1.25rem;
}

#inline-entity-form-field_operatori-form input[id^="edit-field-operatori-actions-ief-add"],
#inline-entity-form-field_operatori-form input[id^=edit-field-operatori-actions-ief-add-existing],
#inline-entity-form-field_operatori-form input[id*=edit-field-operatori-form-0-actions-ief-reference-save],
#inline-entity-form-field_operatori-form input[id*=edit-field-operatori-form-0-actions-ief-reference-cancel]
{
    display: inline-block;
    border-radius: 68px !important;
    background-color: var(--carchivio-color-button-accent);
    color: var(--carchivio-color-button-accent-text);
    height: 40px;
    width: auto;
    padding: 0 16px;
    margin: 8px 0px;
    justify-content: center;
    align-items: center;
    align-content: center;
    text-align: center;
    flex-shrink: 0;
    
    font-size: 18px;
    line-height: 21px;
    text-decoration: none;
    cursor: pointer;
}

#inline-entity-form-field_operatori-form input[id*=edit-field-operatori-form-0-actions-ief-reference-cancel]
{
    background-color: transparent;
    color: var(--carchivio-font-color-red);
    height: 29px;
    box-sizing: border-box;
    border: none;
}


table[id*=ief-entity-table-edit-field-operatori-entities] 
{
    border-radius: 8px; 
    border: 1px solid #A3BAD1;
    padding: 33px 36px; 
    overflow: hidden;
}

table[id*=ief-entity-table-edit-field-operatori-entities] input[id^=edit-field-operatori-entities-][id$=-actions-ief-entity-remove]
{
    background-color: transparent;
    color: var(--carchivio-font-color-red);
    height: 29px;
    box-sizing: border-box;
    border: none;  
}

.tabledrag-toggle-weight-wrapper,
table[id*=ief-entity-table-edit-field-operatori-entities] thead
{
    display: none;
}

input[id^=edit-field-operatori-form-][id*=add-save],
input[id^=edit-field-operatori-form-][id*=reference-save]
{
    border-radius: 68px !important;
    background-color: var(--carchivio-color-button-primary);
    color: var(--carchivio-color-button-primary-text);
    padding: 8px 24px;
    min-height: unset;
    width: auto;
    justify-content: center;
    align-items: center;
    align-content: center;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    line-height: 21px;
}

input[id^=edit-field-operatori-form-][id*=add-cancel],
input[id^=edit-field-operatori-form-][id*=reference-cancel]
{
    border-radius: 68px !important;
    background-color: #fff;
    color: var(--carchivio-font-color-red);
    padding: 8px 24px;
    min-height: unset;
    width: auto;
    justify-content: center;
    align-items: center;
    align-content: center;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    line-height: 21px;
}

label[for=edit-field-richiesta-pin-value]
{
    margin-top: 64px;
}



input#edit-field-richiesta-pin-value
{
    display: none;
}


td.ief-tabledrag-handle
{
    display: none;
}


.vertical-tabs
{
    display: none;
}




/* Lavorazione: Visualization page */
#page-lavorazione-visualization
{
    background-color: #fff !important;
}

#it-block-carchivio-theme-primary-local-tasks ul.nav
{
    background-color: var(--carchivio-color-background-primary);
    height: 140px;
    align-items: center;
    justify-content: left;
    padding-left: 48px;
}

#it-block-carchivio-theme-primary-local-tasks li a
{
    text-decoration: none;
    border: none;
    background-color: transparent;
}

#it-block-carchivio-theme-primary-local-tasks li a[href*='delete']
{
    color: var(--carchivio-font-color-red);
}


#page-lavorazione-visualization #lavorazione-visualization-header-modify
{
    color: var(--carchivio-font-color);
    text-decoration: none;
    margin-right: 2rem;
}

#page-lavorazione-visualization #lavorazione-visualization-header-delete
{
    color: var(--carchivio-font-color-red);
    text-decoration: none;
}

#page-lavorazione-visualization .node-field-visualization-title
{
    font-size: 16px;
    line-height: 23px;
}

#page-lavorazione-visualization .node-field-visualization-value
{
    font-size: 19px;
    font-weight: 400;
    line-height: 23px;
}

.imagefield_slideshow-wrapper
{
    display: block;
    border: none;
}

.imagefield_slideshow-wrapper .cycle-sentinel
{
    display: none !important;
}

.imagefield_slideshow-wrapper .cycle-slide-active
{
    position: relative !important;
    margin: auto;
}

.imagefield_slideshow-wrapper #image-pager
{
    margin-bottom: 24px;
}

.imagefield_slideshow-wrapper #image-pager img
{
    width: 80px;
    height: 100px;
}

.prev-next
{
    display: flex;
    justify-content: space-around;
    position: relative;
    bottom: 384px;
}

.prev-next a
{
    text-decoration: none;
    font-size: 32px;
    color: var(--carchivio-font-color);
}














/* =================================================================================> Mobile Pages  */
.mobile-form-container
{
    text-align: center;
    padding-top: 70px;
}

.form-pin-submission
{
    padding-top: 0;
}

.mobile-form-container.text-align-left
{
    text-align: left;
}

/* === Page: Scelta operatore === */
.page-scelta-operatore h1
{
    margin-bottom: 72px;
}

.page-scelta-operatore h2
{
    margin-bottom: 24px;
}

.page-scelta-operatore .dropdown-scelta-operatore-title
{
    font-size: 16px;
    font-weight: 400 ;
    line-height: 24px !important;
    margin-bottom: 32px !important;
}

.page-scelta-operatore #dropdown-scelta-operatore
{
    background-color: #fff;
    border: 1px solid var(--carchivio-color-background-accent);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: var(--carchivio-font-color-dimmed);
    padding: 0 16px;
    min-height: 56px;
    max-width: unset;
}


/* Pagina di creazione di una lavorazione */
img[data-drupal-selector^=edit-field-photos-][data-drupal-selector$=-preview]
{
    height: 130px;
}


/* LOADING OVERLAY */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.loading-spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid var(--carchivio-color-button-primary);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loading-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--carchivio-font-color);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}



/* Pagina di scelta di modifica di una Lavorazione */
#lavorazione-existing-modify h1
{
    margin-bottom: 80px;
}

#lavorazione-existing-modify .card-body
{
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--carchivio-color-background-accent);
    border-radius: 8px;
    box-shadow: none;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
}

#lavorazione-existing-modify .field--value
{
    color: var(--carchivio-font-color-dimmed);
    font-weight: 400;
    margin-bottom: 18px;
}

#lavorazione-existing-modify .button--primary
{
    align-self: center;
    margin-bottom: 1.5rem;
}

#lavorazione-existing-modify .card::after
{
    display: none;
}

label[for^=edit-field-photos-][for$=-upload]
{
    padding: 8px 16px !important;
    position: relative;
    top: 8px !important;

}









/* =================================================================================> Homepage */

/* Blocco: intestazione */
.white-container
{
    width: 100%;
    background-color: #fff;
}

#it-block-carchivio-theme-homepageintestazione
{
    background-color: #fff;
    background-image: url("/sites/default/files/assets/background_helmet_left.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-clip: content-box;
    min-height: 690px;
    align-content: space-evenly;
}

#homepage--intestazione--text
{
    opacity: 0;
}


#homepage--intestazione--text .pre-title
{
    font-size: 20px;
    font-weight: 400;
    line-height: 48px;
    margin-top: 16px;
    margin-bottom: 8px;
}

#homepage--intestazione--text .title
{
    font-size: 60px !important;
    font-weight: 700;
    line-height: 62px;
    margin-bottom: 24px;
}

@media (max-width: 990px)
{
    #homepage--intestazione--text .title
    {
        font-size: 40px !important;
    }
}

#homepage--intestazione--text .body
{
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    max-width: 520px;
    margin-bottom: 24px;
}

#homepage--intestazione--text .button--primary,
#homepage--intestazione--text .button--outlined
{
    height: 50px;
    min-width: 10rem;
}

#homepage--intestazione--text .button--outlined
{
    height: 50px;
    min-width: 10rem;
    width: 250px;
}



#homepage--intestazione .img-desktop
{
    width: 100%;
}

#homepage--intestazione .img-mobile
{
    display: none;
}

@media (max-width: 991px)
{
    #homepage--intestazione--actions a.button--primary
    {
        display: none;
    }

    #homepage--intestazione .img-mobile
    {
        display: block;
        width: 100%;
        margin-top: 66px;
        margin-bottom: 20px;
    }

    #homepage--intestazione .img-desktop
    {
        display: none;
    }

    #homepage--intestazione--text
    {
        margin-top: 46px;
    }

    #it-block-carchivio-theme-homepageintestazione
    {
        position: relative;
        width: 100%;
        z-index: 1;
    }   

    #it-block-carchivio-theme-homepageintestazione
    {
        background-image: none;
        background: radial-gradient(
            circle at 50% -20%,
            rgba(4, 19, 183, 0.02) 0%,
            rgba(4, 19, 183, 0.02) 65%,
            transparent 65.1%
        )
    }

}






/* Blocco: come funziona carchivio */
#homepage--come-funziona
{
    background-color: #fff;
    padding-top: 105px;
    padding-bottom: 105px;
}


#homepage--come-funziona--text--pre-title
{
    font-size: 20px;
    font-weight: 400;
    line-height: 48px;
    text-transform: uppercase;
}

#homepage--come-funziona--text--title
{
    font-size: 40px;
    font-weight: 700;
    line-height: 48px;
}

@media (max-width: 991px)
{
    #homepage--come-funziona--text--title
    {
        font-size: 33px;
    }
}

#homepage--come-funziona--text--body
{
    font-size: 20px;
    font-weight: 400;
    line-height: 30px;
    max-width: 620px;
    margin-bottom: 90px;
    padding: 0 32px;
}

#homepage--come-funziona--sections
{
    width: 100%;
}

#homepage--come-funziona--sections div.info-card
{
    border: 1px solid var(--carchivio-color-background-accent);
    background: var(--carchivio-color-background-primary);
    border-radius: 30px;
    min-width: 310px;
    height: 220px;
    padding: 30px 30px;
}

#homepage--come-funziona--sections div.info-card img
{
    margin-bottom: 23px;
}

#homepage--come-funziona--sections div.info-card .title
{
    font-size: 20px;
    font-weight: 700;
    line-height: 28px;
}

#homepage--come-funziona--sections div.info-card .body
{
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
}


/* Blocco: provalo gratis */
#homepage--provalo
{
    padding: 86px 55px;
}

#homepage--provalo .body
{
    font-size: 35px;
    font-weight: 400;
    line-height: 45px;
    max-width: 738px;
    margin-top: 35px;
    margin-bottom: 40px;
}

#homepage--provalo .button--primary
{
    height: 50px;
    min-width: 220px;
}


/* Blocco: parallax */
#homepage--parallax
{
    background-image: url("/sites/default/files/assets/image-parallax.jpg");
    min-height: 445px;
    background-attachment: scroll;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

@media (min-width: 990px)
{
    #homepage--parallax
    {
        background-attachment: fixed;
    }
}



/* Blocco: benefici */
#homepage--benefici
{
    background-color: #fff;
    padding-top: 50px;
    padding-bottom: 142px;
}

#homepage--benefici--text .pre-title
{
    font-size: 20px;
    font-weight: 400;
    line-height: 48px;
    text-transform: uppercase;
}

#homepage--benefici--text .title
{
    font-size: 40px;
    font-weight: 700;
    line-height: 48px;
    margin-bottom: 46px;
}

#homepage-benefici--sections
{
    width: 100%;
}

#homepage--benefici--sections div
{
    border: 1px solid var(--carchivio-color-background-accent);
    background: var(--carchivio-color-background-primary);
    border-radius: 8px;
    min-width: 255px;
    max-width: 382px;
    /* height: 270px; */
    padding-top: 28px;
    padding-left: 16px;
    padding-right: 12px;
    padding-bottom: auto;
}

#homepage--benefici--sections div .title
{
    font-size: 18px;
    line-height: 20px;
    margin-top: 14px;
    margin-bottom: 8px;
}

#homepage--benefici--sections div .body
{
    font-size: 15px;
    font-weight: 400;
    line-height: 20px;
}


/* Blocco: semplificare */
#homepage--semplificare
{
    background-color: #fff;
    position: relative;
    padding-top: 120px;
    padding-bottom: 210px;
    overflow-y: unset;
    overflow-x: clip;
}

#homepage--semplificare--text p
{
    font-size: 48px;
    font-weight: 700;
    line-height: 56px;
    max-width: 682px;
}


#homepage--semplificare--text::before
{
    background-image: url("/sites/default/files/assets/carchivio-mobile@2x.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    content: "";
    position: absolute;
    bottom: 30px;
    left: -20px;
    width: 40vw;
    height: 600px;
}

#homepage--semplificare--text::after
{
    background-image: url("/sites/default/files/assets/carchivio-desktop@2x.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    content: "";
    position: absolute;
    top: 150px;
    right: -80px;
    /* width: 700px; */
    width: 50vw;;
    height: 550px;
}

@media (min-width: 1826px)
{
    #homepage--semplificare--text::before
    {
        top: -20px;
        height: 800px;
    }
}


@media (min-width: 1711px) and (max-width: 1825px)
{
    #homepage--semplificare--text::before
    {
        top: -20px;
        height: 750px;
    }
}


@media (min-width: 1586px) and (max-width: 1710px)
{
    #homepage--semplificare--text::before
    {
        top: -20px;
        height: 700px;
    }
}

@media (min-width: 1460px) and (max-width: 1585px)
{
    #homepage--semplificare--text::before
    {
        top: -20px;
        height: 650px;
    }
}



@media (max-width: 1201px)
{
    #homepage--semplificare
    {
        padding-top: 28px;
        padding-bottom: 400px;
    }

    #homepage--semplificare--text::before
    {
        top: 220px;
        left: -20px;
        height: 500px;
    }

    #homepage--semplificare--text::after
    {
        top: 220px;
        right: -40px;
        height: 400px;
    }
}

@media (max-width: 769px)
{
    #homepage--semplificare--text::before
    {
        top: 220px;
        left: -20px;
        height: 400px;
    }

    #homepage--semplificare--text::after
    {
        top: 220px;
        right: -40px;
        height: 325px;
    }
}


@media (max-width: 600px)
{
    #homepage--semplificare--text::before
    {
        top: 420px;
        left: -102px;
        height: 402px;
        width: 85%;
    }

    #homepage--semplificare--text::after
    {
        top: 383px;
        right: -117px;
        height: 327px;
        width: 100%;
    }
}




/* Blocco: testimonianze */
#it-testimonianze
{
    padding: 94px 55px;
    background-color: var(--carchivio-color-background-primary);
    border: none;
    background-image: url("/sites/default/files/assets/background_helmet_right.jpg");   
    background-repeat: no-repeat;
    background-size: cover;
}

/* Hide the default block title */
#it-testimonianze > h2
{
    display: none;
}

/* Testimonials container - use Flexbox for responsive two-column layout */
#it-testimonianze .view-vista-blocco-testimonianze-homepage
{
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
    row-gap: 40px;
}

@media (max-width: 1100px) 
{
    #it-testimonianze
    {
        padding-top: 40px;
        padding-bottom: 52px;
    }
    #it-testimonianze .view-vista-blocco-testimonianze-homepage
    {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    #it-testimonianze .views-row
    {
        max-width:  378px !important;
    }
}

/* Footer goes in the right column */
#it-testimonianze header
{
    grid-column-start: 2;
    grid-column-end: 2;
    grid-row-start: 2;
    grid-row-end: 2;
}

#it-testimonianze header .pre-title
{
    font-size: 20px;
    font-weight: 400;
    line-height: 48px; /* 240% */
    text-transform: uppercase;
}

#it-testimonianze header .title
{
    font-size: 38px;
    font-weight: 700;
    line-height: 48px;
}


/* All testimonial rows stack in the left column */
#it-testimonianze .views-row
{
    grid-column-start: 1;
    border-radius: 6px;
    border: 1px solid var(--carchivio-color-background-accent);
    background: #FFF;
    padding: 16px;
    min-width: 378px;
    max-width: 547px;
    height: 120px;
    text-align: start;
}

#it-testimonianze .views-field-field-corpo-testimonianza
{
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
}

#it-testimonianze .testimonianze-utente
{
   font-size: 14px;
   font-weight: 500;
   line-height: 20px;
   margin-bottom: 16px;
}




/* Blocco:FAQ */
#it-faq
{
    display: flex;
    flex-direction: column;
    padding: 103px 32px;
    max-width: 838px;
    margin: auto;
}

/* Target only the main block title h2, not accordion headers */
#it-faq > .field h2:not(.accordion-header),
#it-faq h2:not(.accordion-header)
{
    font-size: 28px !important;
    font-weight: 700 !important;
    line-height: 28px !important;
    margin-bottom: 48px;
}

@media (max-width: 880px)
{
    #it-faq > .field h2:not(.accordion-header),
    #it-faq h2:not(.accordion-header)
    {
        align-self: center;
    }
}



#it-faq .field.field--type-entity-reference
{
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#it-faq .accordion-item
{
    background: #fff;
    border-radius: 8px;
    border: 1px solid var(--carchivio-color-form-disabled);
}

#it-faq .accordion-header .accordion-button
{
    border: none;
}

#it-faq .accordion-header .accordion-button:after
{
    content: url("/sites/default/files/assets/toggle_tendina.svg");
}

#it-faq .accordion-header span
{
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 21px !important;
    color: var(--carchivio-font-color-primary) !important;
}

#it-faq .accordion-body .field--name-field-corpo-faq
{
    font-size: 14px;
    font-weight: 500;
    line-height: 21px;
}



#homepage--sticky-action
{
    display: none;
}

#homepage--sticky-action .button--primary
{
    min-width: 366px;
    height: 50px;
}


@media (max-width: 991px)
{
    #homepage--sticky-action
    {
        display: flex;
        position: fixed;
        bottom: 0;
        z-index: 100;
        width: 100%;
        height: 94px;
        background: rgba(244, 249, 255, 1);
    }
}





/* Gallery Container */
.lavorazione-gallery-container 
{
    width: 350px;
    margin-bottom: 30px;
}

.swiper-custom-container
{
    position: relative;
    left: 50%;
}

/* Main Slider */
.swiper-lavorazione
{
    position: static !important;
    width: 100%;
    left: 100px
}

.swiper-lavorazione .swiper-slide img
{
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.swiper-button-next
{
    left: 361px !important;
}

.swiper-button-prev
{
    position: absolute !important;
    left: -55px !important;
}

/* Thumbs Slider */
.swiper-thumbs
{
    height: 100px;
    box-sizing: border-box;
    padding: 10px 0;
    margin-bottom: 10px;
    left: 50%
}

.swiper-thumbs .swiper-slide
{
    width: 25%;
    height: 100%;
    opacity: 0.4;
    cursor: pointer;
    overflow: hidden;
    border-radius: 4px;
}

.swiper-thumbs .swiper-slide-thumb-active
{
    opacity: 1;
    border: 2px solid #3498db;
}

.swiper-thumbs .swiper-slide img
{
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crop thumbs to fill */
    display: block;
}