/* ==========================================================================
   TEXTURE E OVERLAY GLOBALI
   ========================================================================== */
html::after {
    content: "";
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1200 !important;
    background-image: url('https://2025boselli.iftscnosfapbologna.it/portfolio/wp-content/uploads/2026/03/base-body-overlay.gif');
    opacity: .05;
    pointer-events: none;
}

.contact-modal-container::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background-image: url('https://2025boselli.iftscnosfapbologna.it/portfolio/wp-content/uploads/2026/03/base-body-overlay.gif');
    opacity: .05;
    pointer-events: none;
    border-radius: inherit;
}

body {
    background-color: #1c1b1b;
    color: white;
}

/* ==========================================================================
   NAVBAR ED HEADER
   ========================================================================== */
.navbar {
    background-color: transparent !important;
    padding-top: 40px !important;
    padding-bottom: 100px !important;
}

.navbar-nav .nav-item:last-child .nav-link {
    padding-right: 0 !important;
}

#masthead.site-header {
    pointer-events: none !important;
    position: fixed !important;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 10050 !important;
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0)) !important;
}

#masthead .nav-link,
#masthead .navbar-brand,
#masthead a,
#masthead button {
    pointer-events: auto !important;
}

.navbar-brand .custom-logo-link img,
.navbar-brand svg {
    width: 250px !important;
    height: auto !important;
}

.navbar-nav .nav-link {
    color: #ffffff !important;
    transition: color 0.4s ease, filter 0.4s ease !important;
}

.navbar-nav .nav-link:hover {
    color: #FF00FF !important;
    filter: blur(0.9px) !important;
}

.navbar-nav .nav-item.current-menu-item .nav-link,
.navbar-nav .nav-link.active {
    color: #ff00ff !important;
    filter: blur(0px) !important;
}

/* ==========================================================================
   STRUTTURA DEI PULSANTI D'AZIONE RIGENERATA (PIÙ COMPATTI E RAFFINATI)
   ========================================================================== */

.btn:not(.categoryBtn):not(.resetBtn) {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    
    /* 💡 Proporzioni ridotte per un look più elegante e meno invasivo */
    height: 48px !important;            /* Ridotta l'altezza da 60px a 48px */
    min-width: 220px !important;        /* Ridotta la larghezza minima da 250px a 220px */
    padding: 0 24px !important;         /* Padding interno più proporzionato */
    
    /* 💡 Testo ridimensionato */
    font-size: 10pt !important;         /* Scritta più piccola e raffinata */
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;   /* Leggera spaziatura per aumentare la leggibilità */
    
    border-radius: 0 !important;
    filter: blur(0px);
    transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, filter 0.4s ease !important;
}

/* ==========================================================================
   COLORI ED EFFETTI DEI PULSANTI
   ========================================================================== */
.btn-primary {
    background-color: #ff00ff !important;
    border: 1px solid #ff00ff !important;
    color: #000000 !important;
}

.btn-secondary {
    background-color: transparent !important;
    border: 1px solid #ff00ff !important;
    color: #ff00ff !important;
}

/* Hover con la sfocatura inerziale coerente del brand */
.btn-primary:hover,
.btn-secondary:hover {
    filter: blur(0.9px) !important;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #ff00ff !important;
    color: #000000 !important;
}

.btn-secondary:hover {
    background-color: rgba(255, 0, 255, 0.05) !important;
    color: #ff00ff !important;
}

/* ==========================================================================
   RESPONSIVE: MOBILE ACCATTIVANTE (< 768px)
   ========================================================================== */
@media (max-width: 767.98px) {
    .wp-block-buttons .wp-block-button {
        width: 100% !important;
        display: block !important;
        margin-right: 0 !important;
        margin-bottom: 12px !important;
    }
    
    /* Su mobile tornano a occupare il 100% dello spazio per essere facilmente cliccabili */
    .btn:not(.categoryBtn):not(.resetBtn) {
        width: 100% !important; 
        min-width: 100% !important;
        height: 52px !important; /* Un filo più alti solo su mobile per l'ergonomia del pollice */
        font-size: 11pt !important;
    }
}


/* ==========================================================================
   CONVERSIONE DEFINITIVA DA BLU BOOTSTRAP A MAGENTA
   ========================================================================== */
.bg-primary {
    background-color: #ff00ff !important;
    border-radius: 0 !important;
}

h3,
.h3 {
    text-transform: uppercase;
    font-size: 12pt;
}

.card {
    border-radius: 0 !important;
}

.hero-img {
    position: absolute;
    top: 0;
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    left: 0;
    width: 100%;
}

img:not([src]),
img[src=""] {
    opacity: 0;
}

#introprogetti {
    max-width: 900px;
}

p a,
section p a,
.main-content-contatti p a {
    filter: blur(0px);
    transition: filter 0.4s ease, color 0.4s ease !important;
}

p a:hover,
section p a:hover,
.main-content-contatti p a:hover {
    filter: blur(0.9px) !important;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    color: black;
    font-size: 10px;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #FF00FF;
    padding: 4em 0;
}

footer a {
    filter: blur(0px);
    transition: filter 0.4s ease, color 0.4s ease !important;
}

footer a:hover {
    filter: blur(0.9px) !important;
}

footer a,
footer .policy {
    color: #000000 !important;
    text-decoration: none !important;
}

footer .footer_center {
    text-align: left !important;
}

footer .container {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.logo_footer {
    max-width: 250px;
}

.footer_infos {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    align-items: flex-end;
}

.footer_left {
    display: flex;
    flex-direction: column;
}

.footer_right {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 24px;
}

.footer_right img {
    width: 20px;
}



/* ==========================================================================
   PAGINA CONTATTI & FORM DI CONTATTO
   ========================================================================== */
.main-content-contatti {
    /*background-color: #FF00FF !important;*/
    color: #FFFFFF !important;
}

.main-content-contatti h1,
.main-content-contatti h2,
.main-content-contatti p,
.main-content-contatti label {
    color: #FFFFFF !important;
}

.main-content-contatti .form-control {
    background-color: #FFFFFF !important;
    border: 1px solid #000000 !important;
    border-radius: 0 !important;
    color: #000000 !important;
}

.main-content-contatti .form-control::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

#contactform {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 60px;
    margin-bottom: 60px;
}

.wpcf7 form.sent .row:not(.reset-button-wrapper) {
    display: none;
}

.wpcf7 form.sent .reset-button-wrapper {
    display: block !important;
    margin-top: 20px;
}

span.wpcf7-form-control-wrap {
    display: block !important;
    position: relative !important;
}

.wpcf7-not-valid-tip {
    position: absolute !important;
    top: 100% !important;
    margin-top: 5px !important;
    left: 0 !important;
    width: 100% !important;
    font-size: 11px !important;
    color: #00FF00 !important;
}

.wpcf7 form.sent .row {
    display: flex !important;
}

/* Il bottone verde ha un outline/bordo nero da 1px */
#contactform .wpcf7-submit,
.wpcf7 form .wpcf7-submit {
    background-color: #ff00ff !important;
    border: 1px solid #000000 !important;
    color: #000000 !important;
}

#contactform .wpcf7-submit:hover,
.wpcf7 form .wpcf7-submit:hover {
    background-color: #ff00ff !important;
    border: 1px solid #000000 !important;
    color: #000000 !important;
    filter: blur(0.9px) !important;
    cursor: pointer;
}

/* Rimosso lo smussamento nativo (border-radius: 0) anche per le Checkbox */
.wpcf7-form input[type="checkbox"],
#contactform input[type="checkbox"],
input[type="checkbox"] {
    accent-color: #00ff00 !important;
    border-radius: 0 !important;
    -webkit-appearance: checkbox !important;
    appearance: checkbox !important;
}

/* ==========================================================================
   MODALE DI SUCCESSO
   ========================================================================== */
#customSuccessModal {
    z-index: 99999 !important;
}

.wpcf7-response-output {
    display: none !important;
}

.contact-modal-dialog {
    width: 340px !important;
    aspect-ratio: 1 / 1 !important;
    margin: 0 auto !important;
}

.contact-modal-container {
  /*  background-color: #FF00FF !important;*/
    border: 1px solid #000000 !important;
    border-radius: 0 !important;
    padding: 20px !important;
    position: relative !important;
    box-shadow: 0px 0px 25px 8px rgba(0, 0, 0, 0.35) !important;
    width: 340px !important;
    aspect-ratio: 1 / 1 !important;
    display: flex !important;
    align-items: center;
}

.contact-modal-close {
    position: absolute !important;
    background: transparent !important;
    border: none !important;
    font-size: 24px !important;
    line-height: 1 !important;
    color: #000000 !important;
    cursor: pointer;
    padding: 0 !important;
    margin: 0 !important;
}

.contact-modal-body {
    padding: 0 !important;
    background: transparent !important;
}

.contact-modal-message {
    color: #000000 !important;
    font-size: 13pt !important;
    font-weight: 700 !important;
    text-align: center !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    letter-spacing: 0.5px !important;
    text-transform: none !important;
}

.modal-backdrop.show {
    opacity: 0.4 !important;
    background-color: #000000 !important;
}

/* ==========================================================================
   ACCORDION (LOGICA COLORI SENZA CONTORNI E OMBRE IN FOCUS)
   ========================================================================== */
.accordion-item {
    border: none !important;
    /* 💡 AGGIORNATO: Rimosso completamente il contorno esterno */
    background-color: transparent !important;

    border-bottom: 1px solid rgba(255, 0, 255, 0.5) !important; 
    border-radius: 0 !important;
}

.accordion-button {
    color: #ff00ff !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    /* Elimina l'effetto ombra iniziale di Bootstrap */
}

.accordion-button.collapsed {
    color: #ff00ff !important;
    border: none !important;
}

.accordion-button::after {
    display: none !important;
}

.accordion-button.collapsed::before {
    content: "+";
}

.accordion-button::before {
    content: "-";
    color: #ff00ff !important;
}

.main-content-contatti a,
section a,
.accordion-body a {
    color: #ff00ff !important;
}

/* 💡 AGGIORNATO: rimosso l'anello di focus azzurro/magenta che compariva al click sul pulsante */
.accordion-button:focus,
.accordion-button:active,
.accordion-button:focus-visible {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    background-color: transparent !important;
}

/* ==========================================================================
   CAROSELLO PROGETTI (SWIPER HOME)
   ========================================================================== */
.mySwiperProgetti {
    width: 100%;
    padding-bottom: 50px;
}

.mySwiperProgetti .swiper-slide {
    display: flex;
    justify-content: center;
    height: auto;
}

.mySwiperProgetti .card {
    transition: transform 0.3s ease;
}

.projectsCarousel,
.projectsCarousel.swiper-grab,
.projectsCarousel.swiper-free-mode {
    cursor: default !important;
}

.projectsCarousel:active,
.projectsCarousel.swiper-grabbing {
    cursor: default !important;
}

.projectsCarousel .swiper-slide {
    cursor: default !important;
}

.projectsCarousel .card {
    filter: blur(0px);
    opacity: 1;
    cursor: pointer !important;
    transition: filter 0.4s ease;
}

.projectsCarousel .swiper-slide:hover .card {
    filter: blur(0.9px) brightness(0.85) !important;
    opacity: 1 !important;
}

.swiper-pagination-bullet {
    pointer-events: none !important;
    cursor: default;
    width: 10px !important;
    height: 10px !important;
    border-radius: 0 !important;
    background: #FF00FF !important;
    opacity: 0.5 !important;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: #00FF00 !important;
}

.swiper-pagination {
    position: static !important;
    width: auto !important;
}

.swiper-button-prev-custom svg,
.swiper-button-next-custom svg {
    stroke: #FF00FF !important;
}

.swiper-button-prev-custom:hover,
.swiper-button-next-custom:hover {
    filter: blur(0.9px);
    transition: filter 0.3s ease;
}

/* ==========================================================================
   ARCHIVIO PORTFOLIO (FILTRI E GRIGLIA)
   ========================================================================== */
.portfolio-archive .portfolio-filter-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
    width: 100%;
}

@media (min-width: 992px) {
    .portfolio-archive .portfolio-filter-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

.portfolio-archive .portfolio-filter-grid li {
    display: flex !important;
    width: 100% !important;
}

.portfolio-archive .btn-portfolio-filter {
    width: 100% !important;
    padding: 10px 20px !important;
    font-size: clamp(0.8rem, 1.2vw, 0.95rem) !important;
    line-height: 1.2 !important;
    text-decoration: none !important; 
}

.btn-portfolio-filter {
    background-color: transparent !important;
    border: 1px solid #ff00ff !important;
    color: #ff00ff !important;
    border-radius: 0 !important;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.btn-portfolio-filter:hover {
    filter: blur(0.9px);
    -webkit-filter: blur(0.9px);
    background-color: rgba(255, 0, 255, 0.1) !important;
    color: #ff00ff !important;
    cursor: pointer;
}

/* Stato evidenziato per il filtro attivo in JS */
.categoryBtn.is-active,
.resetBtn.is-active {
    background-color: #ff00ff !important;
    color: #000000 !important;
    border-color: #ff00ff !important;
    filter: blur(0px) !important;
}

.categoryBtn.is-active:hover,
.resetBtn.is-active:hover {
    background-color: #ff00ff !important;
    color: #000000 !important;
    filter: blur(0.9px) !important;
}

/* Struttura Card Progetti Archivio (NATIVAMENTE NITIDE - SENZA BLUR EREDITATI) */
.project-card .project-overlay {
    background-color: rgba(0, 0, 0, 0.9);
    transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.project-card .project-cover-media {
    display: block !important;
    width: 100% !important;
    min-width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    transition: transform 1s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.project-card:hover .project-overlay {
    opacity: 0;
}

.project-card:hover .project-cover-media {
    transform: scale(1.01);
}

/* ==========================================================================
   MENU MOBILE FULL SCREEN
   ========================================================================== */
@media (max-width: 767.98px) {
    .navbar-collapse {
        position: fixed !important;
        top: 0 !important;
        left: 0;
        width: 100vw;
        background-color: #222222 !important;
        z-index: 9999;
        transition: height 0.1s ease-in-out, opacity 0.3s ease-in-out !important;
        opacity: 0;
    }

    .navbar-collapse::after {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 10010;
        background-image: url('https://2025boselli.iftscnosfapbologna.it/portfolio/wp-content/uploads/2026/03/base-body-overlay.gif');
        opacity: .05;
        pointer-events: none;
    }

    .navbar-collapse::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 200px;
        background-image: linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0)) !important;
        z-index: 10000;
        pointer-events: none;
    }

    .navbar-collapse.collapsing,
    .navbar-collapse.collapse.show {
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: center;
        padding-top: 140px !important;
    }

    .navbar-collapse.collapse.show {
        height: 100vh !important;
        opacity: 1 !important;
    }

    .navbar-collapse .navbar-nav {
        width: 100%;
        text-align: center !important;
        position: relative;
        z-index: 10020;
    }

    .navbar-brand,
    .navbar-toggler {
        position: relative;
        z-index: 10060;
        padding: 0 !important;
    }

    .navbar-toggler,
    .navbar-toggler:focus,
    .navbar-toggler:active {
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
    }

    .navbar-toggler {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 44px !important;
        height: 44px !important;
        background: transparent !important;
    }

    .custom-burger-icon {
        width: 24px !important;
        height: 16px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        cursor: pointer;
        position: relative;
        flex-shrink: 0 !important;
    }

/* =======================================================================
    EFFETTO  X BURGER 
       ======================================================================= */
    
    /* 1. La linea in alto ruota sul proprio centro e scende leggermente */
    .navbar-toggler:not(.collapsed) .custom-burger-icon span:nth-child(1) {
        transform: translateY(7px) rotate(45deg) !important;
    }

    /* 2. La linea in mezzo si dissolve e si contrae al centro */
    .navbar-toggler:not(.collapsed) .custom-burger-icon span:nth-child(2) {
        opacity: 0 !important;
        transform: scale(0) !important;
    }

    /* 3. La linea in basso ruota sul proprio centro e sale leggermente */
    .navbar-toggler:not(.collapsed) .custom-burger-icon span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg) !important;
    }
    
    .custom-burger-icon span {
        display: block !important;
        width: 100% !important;
        height: 2px !important;
        background-color: #ff00ff !important;
        border-radius: 2px !important;
        transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out !important;
        transform-origin: center center !important;
    }

.navbar-toggler {
    width: auto !important;  
    height: auto !important;
    border: none !important;
    box-shadow: none !important;
    display: inline-flex !important;
    
    padding-top: 15px !important;
    padding-bottom: 15px !important;
    padding-left: 25px !important;
    padding-right: 0 !important; 
    
    margin: 0 !important;
    background: transparent !important;
}
}



/* ==========================================================================
   DOPPIO CURSORE MAGENTA ULTRA-COMPATIBILE
   ========================================================================== */
.custom-pointer {
    position: fixed !important;
    top: 0;
    left: 0;
    pointer-events: none !important;
    z-index: 999999 !important;
    display: block;
}

.custom-pointer img {
    display: block !important;
    filter: brightness(0) saturate(100%) invert(11%) sepia(100%) saturate(7484%) hue-rotate(299deg) brightness(103%) contrast(114%) !important;
}

#follower-main {
    opacity: 0.5 !important;
}

#follower-sub {
    opacity: 0.4 !important;
}


/* ==========================================================================
   STRUTTURA GRIGLIA PROGETTI CORRETTA (SINCRO CON JAVASCRIPT GEOMETRICO)
   ========================================================================== */
#js-project-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    justify-content: center !important; /* Centra automaticamente qualsiasi contenuto singolo o orfano */
}

/* Le colonne md-6 (coppie verticali/quadrate o immagine + video) si affiancano perfettamente su desktop */
@media (min-width: 768px) {
    #js-project-grid .col-md-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        display: flex !important;
        flex-direction: column !important;
        align-self: stretch !important;
        justify-content: flex-start !important;
    }
}

/* Gestione dei media orizzontali o singoli orfani (col-12) per tenerli bloccati al centro della riga */
#js-project-grid .col-12 {
    width: 100% !important;
}

#js-project-grid img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
}

#js-project-grid video {
    width: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
    padding: 40px !important; /* Padding maggiorato per dare più respiro al video */
    box-sizing: border-box !important;
}

@media (min-width: 768px) {
    #js-project-grid .col-md-6 video {
        height: auto !important; /* Modificato da 0 a auto */
    }
}

@media (max-width: 767px) {
    #js-project-grid video {
        height: auto !important;
        width: 100% !important;
    }
}

/* ==========================================================================
   SFONDO BLOB DINAMICO - STRUTTURA BASE CSS
   ========================================================================== */

.blob-canvas {
    position: absolute;
    left: 0;
    width: 100%;
    height: 100vh; 
    z-index: -1;   
    pointer-events: none; 
    overflow: visible !important;
    transform: translateY(-15%); 
}

/* Assicurati che il contenitore principale della pagina non tagli lo strabordo */
body {
    position: relative;
    overflow-x: hidden; 
}

/* ======================================================== */
/* DISATTIVAZIONE CURSOR FOLLOWER SU DISPOSITIVI MOBILE    */
/* ======================================================== */
@media (max-width: 767.98px) {
    
    .logo-follower,
    [class*="cursor-follower"], 
    [class*="logo-follower"],
    .custom-pointer,
    #follower-main,
    #follower-sub {
        display: none !important; 
        pointer-events: none !important; 
        opacity: 0 !important; 
        visibility: hidden !important; 
    }
    
}

/* REGOLA DIAGNOSTICA: Evidenzia i contorni di tutti i blocchi 
* {
    outline: 1px solid red !important;
}
    */


    /* ==========================================================================
   chiusura modale
   ========================================================================== */
.contact-modal-close {
    position: static !important; /* Rimuove il posizionamento assoluto */
    display: block !important;
    margin: 24px auto 0 auto !important; /* Lo centra sotto il testo e dà aria */
    background: transparent !important;
    border: 1px solid #000000 !important;
    color: #000000 !important;
    padding: 8px 16px !important;
    font-size: 10pt !important;
    text-transform: uppercase;
    font-weight: bold;
    cursor: pointer !important;
    border-radius: 0 !important;
    width: fit-content;
    transition: filter 0.4s ease !important;
}

.contact-modal-close:hover {
    filter: blur(0.9px) !important;
}

/* ==========================================================================
   FIX DEFINITIVO CHECKBOX PRIVACY BIANCA/VERDE SU MOBILE
   ========================================================================== */

/* 1. Forza i browser moderni (Desktop e Mobile) a usare il verde del brand per la spunta standard */
input[type="checkbox"] {
    accent-color: #00FF00 !important; /* Metti qui il tuo verde esatto se diverso (es: #00FF00 o il codice esadecimale del verde che usi) */
}

/* 2. Reset totale e riscrittura geometrica per Chrome e Safari Mobile */
#contactform input[type="checkbox"],
.wpcf7-form input[type="checkbox"] {
    -webkit-appearance: none !important; /* Rimuove lo stile nativo di iOS e Android */
    -moz-appearance: none !important;
    appearance: none !important;
    
    /* Configurazione iniziale: quadratino bianco vuoto con bordo nero */
    width: 16px !important;
    height: 16px !important;
    border: 1px solid #000000 !important;
    background-color: #FFFFFF !important; /* Sfondo inizialmente bianco */
    border-radius: 0 !important; /* Angoli vivi a 90° brutalisti */
    
    display: inline-block;
    vertical-align: middle;
    position: relative;
    cursor: pointer;
    margin-right: 8px !important;
}

/* 3. Stato Cliccato (Checked): Il quadratino diventa Verde */
#contactform input[type="checkbox"]:checked,
.wpcf7-form input[type="checkbox"]:checked {
    background-color: #00FF00 !important; /* Diventa VERDE quando selezionato (adatta l'esadecimale se necessario) */
    border-color: #000000 !important;
}

/* 4. Disegna la spunta interna (il baffo) di colore NERO sopra lo sfondo verde */
#contactform input[type="checkbox"]:checked::after,
.wpcf7-form input[type="checkbox"]:checked::after {
    content: '' !important;
    position: absolute !important;
    left: 5px !important;   /* Posizionamento orizzontale della spunta */
    top: 1px !important;    /* Posizionamento verticale della spunta */
    width: 5px !important;
    height: 9px !important;
    border: solid #000000 !important; /* La spunta interna diventa nera */
    border-width: 0 2px 2px 0 !important; /* Spessore del baffo */
    transform: rotate(45deg) !important; /* Inclinazione geometrica della spunta */
}


/* ==========================================================================
   BLOCCO EXTRA: FIX OVERLAY SEMPRE ATTIVO E PIÙ CHIARO SOLO SU MOBILE
   ========================================================================== */
@media (max-width: 991.98px) {
    /* Si applica sia alla griglia del portfolio (.projectItem) che ad altre varianti (.project-card) */
    .projectItem .project-overlay,
    .project-card .project-overlay {
        opacity: 1 !important;
        visibility: visible !important;
        
        /* Blocca lo sfondo scuro rendendolo fisso ma più chiaro (40% di opacità) */
        background-color: rgba(0, 0, 0, 0.75) !important; 
        
        /* Disattiva le animazioni per evitare sbalzi visivi al tocco del dito */
        transition: none !important;
    }

    /* Assicura che i testi informativi siano subito visibili sopra l'overlay chiaro */
    .projectItem .project-cat-text,
    .projectItem h3,
    .project-card h3 {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }
}


/* ==========================================================================
   PULSANTE BACK SINGOLO PROGETTO (MINUSCOLO, FUCSIA, CENTRATO CON FRECCIA)
   ========================================================================== */
.portfolio-back-wrapper {
    display: flex !important;
    justify-content: center !important; /* Centratura orizzontale perfetta */
    align-items: center !important;
    width: 100% !important;
}

.portfolio-back-link {
    color: grey !important;          /* Colore fucsia puro del brand */
    font-size: 11pt !important;
    text-transform: lowercase !important; /* Forza la scritta in minuscolo */
    font-weight: 500 !important;
    text-decoration: none !important;
    letter-spacing: 0.5px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;                /* Spazio rigido tra freccia e parola */
    
    /* Transizione fluida e nitidezza di partenza */
    filter: blur(0px);
    transition: color 0.4s ease, filter 0.4s ease !important;
}

/* Hover inerziale con sfocatura coerente */
.portfolio-back-link:hover {
    color: #ff00ff !important;
    filter: blur(0.9px) !important;
    cursor: pointer;
}

/* Stile specifico per la freccia per renderla più geometrica */
.portfolio-back-link .back-arrow {
    font-family: monospace !important;  /* Font rigido per allineare perfettamente la freccia */
    font-size: 13pt !important;
    line-height: 1 !important;
}


    