/* 
Theme Name: Antonini & Ghidossi Services.
Theme URI: https://audex.pro
Author: Audex
Author URI: https://audex.pro
Description: Tema WordPress semplice e responsive per Impresa Generale Antonini & Ghidossi SA, compatibile con Gutenberg e Elementor.
Version: 1.0.7
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: services
Tags: custom-logo, custom-menu, editor-style, block-styles, theme-options
*/

/* ========== VARIABILI ========== */
:root {
  --primary-color: #ffcf30;
  --secondary-color: #000;
  --accent-color: #e8b818;
  --text-color: #222;
  --error-color: #dc3545;
  --footer-height: 80px;
  --header-height: 80px;
  --scrollbar-width: 0px;

--scrollbar-width: 0px; /* Sarà calcolato via JavaScript */
}

html {
  scroll-behavior: smooth;
  box-sizing: border-box;
  height: 100%;
  margin-right: calc(-1 * var(--scrollbar-width)); /* Compensa lo scrollbar nascosto */
}

*,
*::before,
*::after {
  box-sizing: inherit;
}
/* Nascondi scrollbar ma mantieni la funzionalità */
body::-webkit-scrollbar {
  width: 0 !important;
  display: none;
}

body {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */

  display: flex;
  flex-direction: column;
  margin: 0;
  padding-bottom: var(--footer-height);
  background: var(--primary-color);
  font-family: 'Mukta', sans-serif;
  overflow-x: hidden;
  color: var(--text-color);
  position: relative;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  margin-top: 0;
  line-height: 1.2;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.85;
}

/* Normale focus */
body input:focus,
body select:focus,
body textarea:focus {
  background-color: #f5f5f5 !important;
  outline: none !important;
  box-shadow: none !important;
  border-color: #222 !important;
  color: #000 !important;
}

/* Chrome autofill fix */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #f5f5f5 inset !important;
  box-shadow: 0 0 0 1000px #f5f5f5 inset !important;
  background-color: #f5f5f5 !important;
  -webkit-text-fill-color: #000 !important;
  color: #000 !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* Password input in modal: override tutto */
#passwordInput,
#passwordInput:focus {
  background-color: #f5f5f5 !important;
  color: #000 !important;
  border-color: #222 !important;
  box-shadow: none !important;
  -webkit-text-fill-color: #000 !important;
}

input#passwordInput:-webkit-autofill,
input#passwordInput:-webkit-autofill:hover,
input#passwordInput:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px #f5f5f5 inset !important;
  box-shadow: 0 0 0px 1000px #f5f5f5 inset !important;
  -webkit-text-fill-color: #000 !important;
}


/* ========== LAYOUT ========== */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0;
  min-height: 50px;
  position: relative;
}

/* ========== HEADER ========== */
header {
  background: var(--primary-color);
  padding: 20px 0;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--accent-color);
  position: relative;
  z-index: 100;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: nowrap;
}

.slogan {
  text-align: center;
  font-size: 1rem;
  font-weight: normal;
  line-height: 1.3;
  padding: 0 10px;
  white-space: nowrap;
  flex: 1 1 auto;
}

.mobile-break {
  display: none;
}

.logo img {
  max-width: 160px;
  height: auto;
  width: auto;
}

.services-link {
  text-align: right;
}

.services-link a {
  font-size: 2.425rem;
  font-weight: 600;
}

/* ========== IMPRESSUM ========== */

    
    .impressum-container {
        font-family: 'Muli', Arial, sans-serif;
        line-height: 1.6;
        color: #333;
        padding: 20px;
        max-width: 880px;
        margin: 0 auto;
    }
    
    .impressum-title {
        font-size: 22px;
        line-height: 26px;
        font-weight: 400;
        margin: 28px 0;
    }
    
    .impressum-subtitle {
        font-size: 18px;
        font-weight: 600;
        margin: 20px 0 15px;
        padding-left: 20px;
    }
    
    .impressum-contact {
        line-height: 1.8;
        margin: 22px 0;
    }
    
    .impressum-contact a, .impressum-legal a {
        color: #a76500;
        text-decoration: none;
        transition: color 0.3s ease;
    }
    
    .impressum-contact a:hover, .impressum-legal a:hover {
        color: #004499;
        text-decoration: underline;
    }
    
    .impressum-spacer {
        height: 0px;
    }
    
    .impressum-section {
        margin-bottom: 22px;
    }
    
    .impressum-legal, .impressum-section p {
        text-align: justify;
        margin-bottom: 15px;
    }
    
    .impressum-list {
        padding-left: 40px;
        margin: 15px 0;
    }
    
    .impressum-list li {
        margin-bottom: 10px;
        text-align: justify;
    }
    
    .impressum-footer {
        text-align: center;
        margin-top: 30px;
        font-style: italic;
    }
    
    @media (max-width: 600px) {
        .impressum-container {
            padding: 15px;
        }
        
        .impressum-title {
            font-size: 20px;
        }
        
        .impressum-subtitle {
            font-size: 16px;
            padding-left: 10px;
        }
        
        .impressum-list {
            padding-left: 20px;
        }
    }
/* ========== MODAL IMPRESSUM ========== */

/* ANIMAZIONI KEYFRAMES */
@keyframes fadeInModal {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOutModal {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(20px);
  }
}

/* STILE MODAL RESPONSIVE */
/* Contenitore principale del modal */
.custom-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgb(0 0 0 / 84%);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.custom-modal-overlay.show {
  opacity: 1;
  visibility: visible;
}
.custom-modal-overlay.show .custom-modal-outer-container {
  transform: translateY(0);
  opacity: 1;
}

.custom-modal-outer-container {
  background: white;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-modal-scroll-container {
    max-height: 90vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #585252 #ffffff;
    padding-top: 0;
    margin-top: 0;
}
.custom-modal-scroll-container::-webkit-scrollbar {
  width: 8px;
}

.custom-modal-scroll-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

.custom-modal-scroll-container::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.custom-modal-scroll-container::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Contenuto interno (padding e margini) */
.custom-modal-content-container {
  padding: 0 40px 40px;
  position: relative;
}
.custom-modal-scroll-lock {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.custom-modal-content {
  font-family: 'Mukta', sans-serif;
  line-height: 1.6;
  color: #333;
}

.custom-modal-content h2 {
  font-size: 22px;
  margin: 28px 0;
  font-weight: 400;
}

.custom-modal-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 20px 0 15px;
}

.custom-modal-content p, 
.custom-modal-content ul {
  margin-bottom: 15px;
  text-align: justify;
}

.custom-modal-content ul {
  padding-left: 40px;
}

.custom-modal-close {
    font-family: 'Arial', sans-serif;
    opacity: 0.7;
    transition: opacity 0.2s;
    position: fixed;
    top: 15px;
    right: 20px;
    font-size: 50px;
    cursor: pointer;
    color: #181818;
    transition: all 0.2s ease;
}

.custom-modal-close:hover {
  color: #000;
  transform: scale(1.1);opacity: 1;
}
.custom-modal-scroll-lock {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

html.modal-open,
body.modal-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;  
  padding-right: var(--scrollbar-width);

}

/* MEDIA QUERIES PER MOBILE */
@media (max-width: 768px) {
  .custom-modal-container {
    max-width: 95%;
    padding: 20px;
    margin: 10px auto;
    max-height: 85vh;
  }
  
  .custom-modal-close {
    top: 50px;
    right: 11px;
    font-size: 40px;
  }
}

/* ========== MODAL ========== */
.modal {
    display: none; 
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0 0 0 / 34%);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.modal.show {
    display: flex; 
    opacity: 1;
}

.modal-content {
    background: #fff;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    border-radius: 1px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    position: relative;
    margin: 0;
    transform: translateY(-30px);
    opacity: 0;
    animation: modalSlideIn 0.4s ease forwards;
}

.modal.show .modal-content {
    animation: modalSlideIn 0.4s ease forwards;
}

.modal-content h2 {
  margin-top: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.modal-content input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  margin-top: 15px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 1px;
}

.modal-content button {
    margin-top: 26px;
    padding: 14px 44px;
    background-color: #000;
    color: #fff;
    border: none;
    font-weight: bold;
    border-radius: 1px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 16px;
}

.modal-content button:hover {
  background-color: #444;
}

.modal .close {
    position: absolute;
    top: 0px;
    right: 15px;
    font-size: 54px;
    font-weight: 300;
    color: #000000;
    cursor: pointer;
    line-height: 50px;
}

.modal .close:hover {
  color: #000;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

.modal.fade-out {
  animation: fadeOut 0.4s ease forwards;
}

.hero {
  position: relative;
  width: 100%;
  max-width: 1400px;
  height: 500px;
  margin: 0 auto;
  background-color: var(--primary-color);
  background-image: url('assets/images/ChiesadiMogno.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
}

.hero-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: calc(100vh - var(--header-height) - var(--footer-height));
  width: 100%;
}

.hero-home {
  display: block;
  width: 100%;
  min-height: auto;
  margin: 0;
  padding: 0;
}

.contacts {
  width: 100%;
  margin: 0;
  padding: 0;
}

.hero-container {
  display: flex;    padding: 0 20px;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - var(--header-height) - var(--footer-height));
  width: 100%;
}

.hero-container .hero-home {
  width: 100%;
  margin: 0;
  padding: 0;
}
.hero-container .contacts {
  width: 100%;
  margin: 30px auto;
  padding: 0;
}

.hero-overlay {
  position: absolute;
  bottom: 30px;
  left: 30px;
  z-index: 2;
  margin-right: 30px;
}

.hero h1 {
  font-size: 2.8rem;
  margin: 0;
  text-transform: uppercase;
  text-shadow: -3px 4px 1px #000;
  font-weight: 900;
  font-family: 'Oswald', sans-serif;
}

/* ========== CONTACTS SECTION ========== */
.contacts {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 60px 0px;
}

.r-left {
  flex: 0 0 30%;
  max-width: 20%;
  text-align: left;
}

.r-right {
  flex: 0 0 70%;
  max-width: 80%;
  text-align: right;
  font-size: 30px;
  font-weight: 600;
}

.hero-button {
  display: inline-block;
  padding: 20px;
  width: 260px;
  background: var(--secondary-color);
  color: #fff;
  text-align: center;
  font-weight: 600;
  font-size: 1.3rem;
  transition: background 0.3s ease;
}

.hero-button:hover {
  background: #222;
}

/* ========== MAIN CONTENT ========== */
main {
  flex: 1;
  padding: 40px 20px;
  text-align: center;
}

/* ========== FOOTER ========== */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: var(--footer-height);
  background: var(--primary-color);
  padding: 10px 0;
  border-top: 1px solid var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
}

.footer-left {
  flex: 0 0 80%;
  max-width: 80%;
  text-align: left;
}

.footer-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  flex: 0 0 auto;
}

.footer-right .footer-logo {
  height: 55px;
  width: auto;
  object-fit: contain;
}

.footer-content-mobile {
  display: none;
  text-align: center;
  padding: 15px;
    font-size: 17px;
    line-height: 1.2;
}

.footer-mobile-logos {
  margin-top: 26px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.footer-mobile-logos .footer-logo {
  height: 45px;
  width: auto;
  object-fit: contain;
}
.fmobile{
    display: block;
    margin-top: 12px;
}
/* ========== RESPONSIVE: FOOTER MOBILE ========== */
@media (max-width: 868px) {
  :root {
    --footer-height: auto;
  }

  body {
    padding-bottom: 0;
  }
.hero h1 {
    font-size: 2rem;
}
  footer {
    position: relative;
    height: auto;
    padding: 20px 15px;
    flex-direction: column;
    text-align: center;
  }

  .footer-content {
    display: none;
  }

  .footer-content-mobile {
    display: block;
  }
}

@media (max-width: 648px) {
	
main {
    flex: 1;
    padding: 36px 0px;
    text-align: center;
}

.custom-modal-outer-container,
.custom-modal-scroll-container {
    max-height: 100vh;
}
.custom-modal-overlay {
    background: rgb(255 255 255);
    padding: 0;
}
.custom-modal-content-container {
    padding: 0px 24px 26px 10px;
}



.hero h1 {
    font-size: 1.3rem;
}
.hero-container {
    padding: 0px 10px;
}
  footer {
    position: relative;
    height: auto;
    padding: 20px 15px;
    flex-direction: column;
    text-align: center;
  }

  .footer-content {
    display: none;
  }

  .footer-content-mobile {
    display: block;
  }

  .contacts {
    padding: 30px 10px;
  }

  .r-right {
    font-size: 24px;
  }

  .header-top {
    flex-wrap: wrap;
  }

  .logo,
  .services-link {
    flex: 0 0 auto;
  }

  .logo img {
    max-width: 140px;
  }

  .services-link a {
    font-size: 32px;
  }

  .slogan {
    display: none;
  }
}

/* ========== RESPONSIVE: ALTRE SEZIONI ========== */
@media (max-width: 1028px) {
  .slogan {
    white-space: normal;
  }

  .mobile-break {
    display: inline;
  }

  .contacts {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 60px 0px;
    flex-direction: column;
    align-content: center;
    justify-content: center;
  }

  .r-right {
    margin-top: 40px;
    max-width: 100%;
    text-align: center;
  }

  .r-left {
    flex: 0 0 30%;
    max-width: 100%;
    text-align: center;
  }
}

@media (max-width: 1499px) {
  .contacts {
    padding: 60px 30px;
  }
  
 .container {
  padding: 0 20px;
} 
}

/* ========== LOGOUT BUTTON ========== */
.hero-button.logout {
  background-color: #c0392b;
  color: #fff !important;
}

.hero-button.logout:hover {
  background-color: #e74c3c;
}



/* Stile per campo nome utente */
#usernameInput {
  background-color: #f9f9f9 !important;
  color: #000;
  width: 100%;
  padding: 10px 12px;
  margin-top: 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Chrome autofill fix */
input#usernameInput:-webkit-autofill,
input#usernameInput:-webkit-autofill:focus,
input#usernameInput:-webkit-autofill:hover {
  -webkit-box-shadow: 0 0 0px 1000px #f9f9f9 inset !important;
  box-shadow: 0 0 0px 1000px #f9f9f9 inset !important;
  -webkit-text-fill-color: #000 !important;
  transition: background-color 5000s ease-in-out 0s;
}

.logout-link a {
    color: aliceblue;
    background: #000000;
    padding: 12px 32px;
    margin-top: 30px;
    position: relative;
    display: inline-block;
}

/* ========== GF PLACEHOLDER COMPATIBILE COL TUO JS (.fake-ph + .hide) ========== */

/* Nascondi del tutto il placeholder nativo (evita doppioni) */
::-webkit-input-placeholder,
::-webkit-textarea-placeholder,
:-ms-input-placeholder,
::-ms-input-placeholder,
::placeholder {
  color: transparent !important;
  opacity: 0 !important;
}

/* Stile base coerente con il tema + più aria verticale */
.gform-theme--framework input[type="text"],
.gform-theme--framework input[type="email"],
.gform-theme--framework input[type="tel"],
.gform-theme--framework input[type="password"],
.gform-theme--framework input[type="url"],
.gform-theme--framework input[type="search"],
.gform-theme--framework input[type="number"],
.gform-theme--framework input[type="date"],
.gform-theme--framework textarea {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  background: transparent !important;
  color: #000000;
  border: none;
  border-bottom: 1px solid #000000;
  box-shadow: none;
  font-size: 20px;
  border-radius: 0;
  text-align: left !important;
  line-height: 1.35;
  transition: border-color .2s ease;

  /* ↑ margine verticale per non “toccare” il bordo */
  padding-top: 14px;
  padding-bottom: 14px;
}

/* INPUT singola riga: evita overflow del testo reale */
.ginput_container input[type="text"],
.ginput_container input[type="email"],
.ginput_container input[type="tel"],
.ginput_container input[type="password"],
.ginput_container input[type="url"],
.ginput_container input[type="search"],
.ginput_container input[type="number"] {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Contenitore posizionato per l’overlay */
.ginput_container { position: relative; }

/* Placeholder finto creato dal JS + animazioni morbide */
.ginput_container .fake-ph {
    position: absolute;
    left: 12px;
    right: 12px;
    top: 6px;
    pointer-events: none;
    z-index: 2;
    font-family: 'Mukta', sans-serif;
    font-size: 20px;
    line-height: 1;
    color: #000 !important;
    background: transparent !important;
    text-align: left !important;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity .18s ease, transform .18s ease, visibility .18s linear;
    will-change: opacity, transform;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-wrap: nowrap;
    align-items: flex-start;
    align-content: center;
}

/* Stato nascosto: niente display:none -> così può animare */
.ginput_container .fake-ph.hide{
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
}

/* Anche al focus scompare con animazione (oltre allo switch JS) */
.ginput_container input:focus ~ .fake-ph,
.ginput_container textarea:focus ~ .fake-ph{
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
}

/* Se usi hidden_label/sublabel, nascondile pulito */
.gfield.hidden_label .gfield_label,
.gfield.hidden_label legend.gfield_label,
.gfield.hidden_label .gform-field-label,
.gform-field-label--type-sub.hidden_sub_label,
.hidden_sub_label.screen-reader-text {
  display: none !important;
}


/* ---- FILE UPLOAD GF: CAMPO #INPUT_2_88 ---- */

/* ===== CAMPO COMBINATO TESTO + UPLOAD ===== */
#gform_wrapper_2 #field_2_88 {
  position: relative;
  margin-bottom: 25px;
  padding-top: 10px;
}

/* Container principale */
#gform_wrapper_2 #field_2_88 .combined-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
}

/* Riga input testo */
#gform_wrapper_2 #field_2_88 .text-input-row {
  display: flex;
  width: 100%;
  position: relative;
}

/* Stile dell'input di testo */
#gform_wrapper_2 #field_2_88 .text-input {
  flex: 1;
  border: none;
  border-bottom: 1px solid #000;
  padding: 8px 0;
  font-size: 20px;
  background: transparent;
  color: #000;
  font-family: 'Mukta', sans-serif;
  min-width: 0;
  outline: none;
  transition: border-color 0.3s ease;
}

#gform_wrapper_2 #field_2_88 .text-input:focus {
  border-bottom-color: #333;
}

/* Riga upload */
#gform_wrapper_2 #field_2_88 .upload-row {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

/* Pulsante upload */
#gform_wrapper_2 #field_2_88 .file-btn {
  background: #000;
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 0;
  white-space: nowrap;
}

#gform_wrapper_2 #field_2_88 .file-btn:hover {
  background: #333;
  transform: translateY(-1px);
}

/* Informazioni file */
#gform_wrapper_2 #field_2_88 .file-info {
  font-size: 14px;
  color: #666;
  font-style: italic;
  flex: 1;
  min-width: 200px;
}

/* Input file nascosto */
#gform_wrapper_2 #input_2_88 {
  position: absolute;
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
}

/* Label del campo */
#gform_wrapper_2 #field_2_88 .gfield_label {
  font-size: 20px;
  margin-bottom: 10px;
  display: block;
  color: #000;
  font-weight: 600;
}

/* Nascondi elementi non necessari */
#gform_wrapper_2 #field_2_88 .gfield_description,
#gform_wrapper_2 #field_2_88 .gform_fileupload_rules,
#gform_wrapper_2 #field_2_88 .file-ph {
  display: none !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  #gform_wrapper_2 #field_2_88 .text-input {
    font-size: 18px;
    padding: 6px 0;
  }
  
  #gform_wrapper_2 #field_2_88 .file-btn {
    padding: 8px 15px;
    font-size: 15px;
    width: 100%;
  }
  
  #gform_wrapper_2 #field_2_88 .upload-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  #gform_wrapper_2 #field_2_88 .file-info {
    min-width: 100%;
    font-size: 13px;
  }
}

/* ===== STILI PER PDF ===== */
@media print {
  #gform_wrapper_2 #field_2_88 .text-input,
  #gform_wrapper_2 #field_2_88 .file-info {
    color: #000 !important;
    font-family: Arial, sans-serif !important;
    font-size: 12pt !important;
    border-bottom: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  
  #gform_wrapper_2 #field_2_88 .file-btn {
    display: none !important;
  }
}

/* Contenitore unificato per i due campi */
.gf-field-combo {
    grid-column: span 12 !important;
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    align-items: flex-end;
}

/* Campo "Eventuali notifiche" (testo) */
#field_2_92 {
    flex: 3;
    margin: 0 !important;
}

/* Stile input di testo */
#input_2_92 {
    width: 100%;
    padding: 10px;
    border: transparent;
    border-bottom: 1px solid #000000;
    margin-bottom: 10px;
}

/* Campo "File upload" */
#field_2_93 {
    flex: 1;
    margin: 0 0 32px 0!important;
}

/* Stile file upload */
#input_2_93 {
    width: 100%;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Stile per tutti i browser */
#input_2_93::file-selector-button {
    background: #000000 !important;  /* Colore arancione di esempio */
    color: white !important;
    border: none !important;
    padding: 8px 12px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: background 0.3s ease !important;
}

/* Stile specifico per Chrome/Safari */
#input_2_93::-webkit-file-upload-button {
    background: #000000 !important;
    color: white !important;
    border: none !important;
    padding: 8px 12px !important;
    border-radius: 2px !important;
    cursor: pointer !important;
    transition: background 0.3s ease !important;
}

/* Effetto hover */
#input_2_93::file-selector-button:hover,
#input_2_93::-webkit-file-upload-button:hover {
    background: #000000 !important;  /* Colore più scuro al passaggio del mouse */
}

/* Stile quando disabilitato */
#input_2_93:disabled::file-selector-button,
#input_2_93:disabled::-webkit-file-upload-button {
    background: #CCCCCC !important;
    cursor: not-allowed !important;
}

/* Testo accanto al pulsante */

#field_2_93.has-file .ginput_container_fileupload::after {
    content: "File pronto per l'invio" !important;
    color: #000000;
    font-style: normal;
    font-size: 14px !important;
    order: 1;
	position: absolute;
}
/* Nascondi etichette originali */
#field_2_93 .gfield_label {
    display: none;
}

/* Nascondi nota dimensione file */
#gfield_upload_rules_2_93 {
    display: none !important;
}

/* Versione corretta con allineamento in alto a destra */
#field_2_93.has-file .ginput_container_fileupload {
    position: relative;
    display: flex;
    flex-direction: column;
}

@media (max-width: 839px) {
#field_2_93.has-file .ginput_container_fileupload::after {
    content: "File pronto per l'invio" !important;
    color: #000000;
    font-style: normal;
    font-size: 14px !important;
    order: 1;
        margin-left: 104px;
        top: -10px;
        position: relative;
}
}