/* IMMAGINE UOMO — restyling navy / oro. SOLO presentazione: caricato DOPO tema-turchese.css.
   Per tornare al turchese basta togliere il <link> a questo file. */
:root{--iu-gold:#d4b16a;--iu-gold-bright:#f3dda3;--g:#d4b16a;--e:#c9a45c;--bg:#0b1a33;--p:#13264a;--m:#b6c3da;
 --iu-card:linear-gradient(160deg,#1a3263 0%,#0f2147 100%);--iu-line:#8e7340;--iu-gold-grad:linear-gradient(135deg,#f3dda3,#c9a45c 55%,#9c7a35)}
html{background:radial-gradient(120% 60% at 50% 0%,#1d3a74 0%,#0b1a33 62%) fixed #0b1a33!important}
body,body.iu-unified-home,body.iu-theme-online,body.iu-theme-auth{background:transparent!important;color:#f3eee2}
body::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:url('./barber-pattern.svg') center top/470px 680px repeat;opacity:.2}
/* Card e pannelli */
body.iu-theme-online :is(.card,.person,.appt,.client-card,.catalog-item,.iu-detail,.iu-news-item,.iu-social-brand,.iu-contact-compact,.iu-modal,.iu-profile-premium,.iu-settings-panel,.iu-settings-tile,.iu-history-row,#iuProfile .iu-profile-notifications){
 background:var(--iu-card)!important;border:1px solid var(--iu-line)!important;border-radius:18px!important;box-shadow:0 8px 24px rgba(0,0,0,.35)!important}
body.iu-theme-online :is(h1,h2,h3,.iu-screen-title,.iu-profile-name,.iu-news-content h3){color:#f3dda3!important;font-family:'Playfair Display',Georgia,serif}
body.iu-theme-online .iu-screen-title{font-size:clamp(17px,5vw,21px)!important}
body.iu-theme-online :is(.muted,.meta,.secondary,.miniinfo){color:#b6c3da!important}
/* Pulsanti blu navy con bordo oro */
body.iu-theme-online :is(.iu-menu-btn,.iu-back,.iu-date-arrow,.btn,.slotchip,.iu-settings-tile,.manual-suggestion){
 background:var(--iu-card)!important;border:1px solid var(--iu-line)!important;color:#f3dda3!important;box-shadow:0 6px 16px rgba(0,0,0,.35)!important}
body.iu-theme-online .iu-menu-btn{border-radius:18px;min-height:64px}
body.iu-theme-online .iu-menu-btn :is(span,strong,small,svg){color:#f3dda3}
/* Pulsante principale oro */
body.iu-theme-online :is(.btn.gold,.btn.primary,#iuGoldConfirm .btn,.slotchip.selected,.slotchip.active,.slotchip[aria-pressed=true]){
 background:var(--iu-gold-grad)!important;color:#0b1a33!important;border:1px solid #f3dda3!important;font-weight:700;box-shadow:0 6px 18px rgba(212,177,106,.35)!important}
/* Campi */
body.iu-theme-online :is(input,select,textarea),body.iu-theme-auth :is(input,select,textarea){background:rgba(10,22,46,.75)!important;border:1px solid var(--iu-line)!important;color:#fff!important;border-radius:12px!important}
body.iu-theme-online :is(input,select,textarea):focus,body.iu-theme-auth input:focus{border-color:#f3dda3!important;outline:2px solid rgba(243,221,163,.35)!important}
/* Logo */
body.iu-theme-online .iu-brand-header,body.iu-theme-online.iu-unified-home .iu-brand-header{background:transparent!important;min-height:0!important;padding:18px 14px 4px!important;border:0!important;box-shadow:none!important}
body.iu-theme-online .iu-brand-header img{display:block!important;width:min(34vw,130px)!important;height:auto!important;max-height:none!important;border:0!important;border-radius:0!important;margin:0 auto!important;box-shadow:none!important;filter:drop-shadow(0 4px 10px rgba(0,0,0,.45))!important}
body.iu-theme-online.iu-unified-home .iu-brand-header img{width:min(40vw,150px)!important}
body.iu-theme-auth .auth-brand img{width:min(58vw,230px)!important;height:auto!important;filter:drop-shadow(0 4px 10px rgba(0,0,0,.45))}
/* Barra inferiore */
body.iu-theme-online .iu-bottom-nav{background:linear-gradient(180deg,#12234a,#0a162e)!important;border-top:1px solid var(--iu-line)!important;box-shadow:0 -6px 20px rgba(0,0,0,.4)!important}
body.iu-theme-online .iu-bottom-nav button{color:#b9c6dc!important;font-weight:600}
body.iu-theme-online .iu-bottom-nav button[aria-current='page']{background:var(--iu-gold-grad)!important;border:1px solid #f3dda3!important;box-shadow:0 4px 12px rgba(212,177,106,.35)!important}
/* Il contenuto non finisce sotto la barra */
body.iu-theme-online main,body.iu-theme-online.iu-unified-home main{padding-bottom:120px!important}
body.iu-theme-online #iuBootStatus{background:radial-gradient(120% 60% at 50% 0%,#1d3a74 0%,#0b1a33 62%)!important}
body.iu-theme-online #iuBootStatus strong{color:#f3dda3!important}
/* La fantasia di sfondo sostituisce il decoro sotto i pulsanti della Home */
body.iu-theme-online #iuHome .iu-home-footer-tools{display:none!important}

/* HOME: pulsante principale oro a tutta larghezza + riquadri a 2 colonne */
body.iu-theme-online #iuMenu{display:grid!important;grid-template-columns:1fr 1fr!important;gap:12px!important}
body.iu-theme-online #iuMenu .iu-menu-btn{flex-direction:column!important;align-items:flex-start!important;justify-content:flex-start!important;gap:10px!important;min-height:112px!important;padding:16px 14px!important;border-radius:18px!important;text-align:left}
body.iu-theme-online #iuMenu .iu-menu-btn>span:last-child{display:none!important}
body.iu-theme-online #iuMenu .iu-menu-btn>span:first-child{width:42px;height:42px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:rgba(10,22,46,.6)!important;border:1px solid var(--iu-line)!important}
body.iu-theme-online #iuMenu .iu-menu-btn strong{flex:none!important;font:600 17px 'Playfair Display',Georgia,serif;color:#f3dda3!important}
body.iu-theme-online #iuMenu :is([data-sec=clientAvailability],[data-sec=staffManualBooking]){grid-column:1/-1;order:-2;flex-direction:row!important;align-items:center!important;min-height:64px!important;gap:14px!important;background:var(--iu-gold-grad)!important;border:1px solid #f3dda3!important;box-shadow:0 6px 18px rgba(212,177,106,.35)!important}
body.iu-theme-online #iuMenu :is([data-sec=clientAvailability],[data-sec=staffManualBooking]) strong{color:#0b1a33!important;font:700 19px Inter,sans-serif;text-align:left}
body.iu-theme-online #iuMenu :is([data-sec=clientAvailability],[data-sec=staffManualBooking])>span:first-child{background:rgba(11,26,51,.12)!important;border-color:rgba(11,26,51,.35)!important}
body.iu-theme-online #iuMenu :is([data-sec=clientAvailability],[data-sec=staffManualBooking]) .iu-menu-svg{stroke:#0b1a33!important;color:#0b1a33!important;filter:none!important}
body.iu-theme-online #iuMenu [data-sec=calendarBlock]{grid-column:1/-1;order:-1;flex-direction:row!important;align-items:center!important;min-height:64px!important;gap:14px!important}
body.iu-theme-online #iuMenu :is([data-sec=clientAvailability],[data-sec=staffManualBooking]) strong{-webkit-text-fill-color:#0b1a33!important;background-image:none!important;text-shadow:none!important;filter:none!important}

/* Test 101 — iOS Safari: date picker constrained to the client editor */
body.iu-theme-online #clientEditBox,
body.iu-theme-online #clientEditBox .field {min-width:0;max-width:100%;box-sizing:border-box}
body.iu-theme-online #clientEditBox #shopDob {
 display:block!important;width:100%!important;max-width:100%!important;
 min-width:0!important;box-sizing:border-box!important;
 -webkit-appearance:none;appearance:none;
}
body.iu-theme-online #clientEditBox #shopDob::-webkit-date-and-time-value {min-width:0;max-width:100%;}

/* ===== Impostazioni staff: correzioni da test iPhone ===== */
/* Barra titolo: il tasto indietro non si sovrappone più al titolo */
body.iu-theme-online .iu-topline{grid-template-columns:auto minmax(0,1fr) auto!important;gap:12px!important}
body.iu-theme-online .iu-topline .iu-screen-title{font-size:clamp(16px,4.6vw,20px)!important;line-height:1.2!important;overflow-wrap:anywhere}
/* Testata duplicata dentro il riquadro (indietro + titolo già presenti in alto) */
body.iu-theme-online .iu-settings-page-head{display:none!important}
/* Campi data/ora dentro il riquadro, mai oltre il bordo */
body.iu-theme-online :is(.field,.formgrid,.iu-absence-box,#adminSettings){min-width:0;max-width:100%}
body.iu-theme-online input:is([type=date],[type=time],[type=datetime-local],[type=month]){display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;min-height:52px;-webkit-appearance:none;appearance:none;text-align:left}
body.iu-theme-online input:is([type=date],[type=time])::-webkit-date-and-time-value{text-align:left;min-width:0}
/* Caselle di spunta: oro invece di nere */
body.iu-theme-online input:is([type=checkbox],[type=radio]){-webkit-appearance:auto!important;appearance:auto!important;accent-color:#d4b16a;background:transparent!important;border:0!important;box-shadow:none!important;width:24px!important;height:24px!important;min-height:0!important;flex:none;border-radius:0!important}
/* Card collaboratori e editor: navy, non marrone */
body.iu-theme-online :is(.iu-teamrow,.iu-teameditor,.iu-absence-box){background:var(--iu-card)!important;border:1px solid var(--iu-line)!important;border-radius:16px!important;box-shadow:0 6px 18px rgba(0,0,0,.3)!important}
body.iu-theme-online .iu-teamrow strong{color:#f3dda3!important}
/* Pulsanti dei moduli a tutta larghezza su telefono */
@media(max-width:540px){body.iu-theme-online .iu-absence-box .controls>.btn{flex:1 1 100%;min-height:52px}}

/* ===== Caselle di spunta personalizzate (uguali su iPhone, niente nero) ===== */
body.iu-theme-online input:is([type=checkbox],[type=radio]),body.iu-theme-auth input:is([type=checkbox],[type=radio]){-webkit-appearance:none!important;appearance:none!important;width:24px!important;height:24px!important;min-width:24px!important;min-height:24px!important;flex:none;margin:0;padding:0!important;display:inline-grid!important;place-content:center;border:2px solid #d4b16a!important;border-radius:7px!important;background:rgba(10,22,46,.7)!important;box-shadow:none!important;color-scheme:light}
body.iu-theme-online input[type=radio]{border-radius:50%!important}
body.iu-theme-online input[type=checkbox]:checked,body.iu-theme-auth input[type=checkbox]:checked,body.iu-theme-online input[type=radio]:checked{background:var(--iu-gold-grad)!important}
body.iu-theme-online input[type=checkbox]:checked::after,body.iu-theme-auth input[type=checkbox]:checked::after{content:"";width:6px;height:12px;border:solid #0b1a33;border-width:0 3px 3px 0;transform:translate(0,-1px) rotate(45deg)}
body.iu-theme-online input[type=radio]:checked::after{content:"";width:8px;height:8px;border-radius:50%;background:#0b1a33}
/* Barbieri selezionabili (nuovo servizio, listino): chip navy */
body.iu-theme-online .catalog-barbers label{background:rgba(10,22,46,.55)!important;border:1px solid var(--iu-line)!important;border-radius:12px!important;padding:12px 14px!important;gap:12px!important;color:#f3eee2!important}

/* ===== Scelta file (es. immagine delle Notizie) ===== */
body.iu-theme-online input[type=file]{display:flex!important;align-items:center;min-height:48px!important;padding:6px 10px!important;font:500 13px Inter,sans-serif!important;color:#b6c3da!important}
body.iu-theme-online input[type=file]::file-selector-button{background:var(--iu-gold-grad);color:#0b1a33;border:1px solid #f3dda3;border-radius:9px;padding:7px 13px;margin-right:10px;font:700 13px Inter,sans-serif;cursor:pointer}
body.iu-theme-online input[type=file]::-webkit-file-upload-button{background:linear-gradient(135deg,#f3dda3,#c9a45c 55%,#9c7a35);color:#0b1a33;border:1px solid #f3dda3;border-radius:9px;padding:7px 13px;margin-right:10px;font:700 13px Inter,sans-serif;cursor:pointer}

/* ===== Login: il messaggio neutro non si vede, errori e conferme sì ===== */
body.iu-theme-auth #status.iu-quiet{display:none!important}
body.iu-theme-auth #status.iu-error{border-color:#e08a8a!important;background:rgba(120,30,40,.35)!important;color:#ffe3e3!important}
/* ===== Titoli doppi: resta solo quello nella barra in alto ===== */
body.iu-theme-online :is(#apptTitle,#iuNewsTitle,#iuContactsTitle){display:none!important}
body.iu-theme-online :is(#iuNews,#iuContacts) .iu-contact-eyebrow{display:none!important}
body.iu-theme-online :is(#iuServices,#incomeBlock,#clientAvailability,#staffCustomers,#staffAbsences,#staffManualBooking)>h2:first-of-type{display:none!important}
