/*
Theme Name: Kostelia Theme
Author: Kostelia
Version: 1.2
*/

/* =============================
   RESET + BASE
============================= */
*{ box-sizing: border-box; }

html, body{ overflow-x: hidden; }

body{
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #0b1c2c;
  color: #ffffff;
  -webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; height: auto; display: block; }

a{ color: inherit; text-decoration: none; }

:root{
  --k-blue: #0b1c2c;
  --k-blue-2: #081624;
  --k-gold: #c9a34a;
  --k-gold-2: #ad8537;
  --k-text: rgba(255,255,255,.92);
  --k-text-dim: rgba(255,255,255,.72);

  --radius: 16px;
  --radius-lg: 18px;
}

/* TIPOGRAFIA */
h1, h2, h3{
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}

p{ margin: 0; }

/* Container */
.container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* Section colors */
.dark-section{ background: var(--k-blue); color: #fff; }
.light-section{ background: #ffffff; color: var(--k-blue); }

/* Offset anchor per header fixed (es. #servizi) */
:target{ scroll-margin-top: 96px; }

/* =============================
   HEADER + NAV
============================= */
.site-header{
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 9999;
  padding: 18px 0;
  transition: all .3s ease;
}

.site-header.transparent{ background: transparent; }

.site-header.scrolled{
  background: rgba(8, 18, 29, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.header-inner{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.logo{
  font-weight: 700;
  letter-spacing: .5px;
  color: #fff;
  font-size: 22px;
  line-height: 1.1;
  white-space: nowrap;
  font-style: normal;
  text-transform: none;
}

.logo span{
  font-style: italic;
  font-weight: 400;
  opacity: .85;
}

.nav a{
  color: #fff;
  margin-left: 22px;
  font-size: 14px;
}

.nav .cta{
  background: #d4af37;
  color: #0b1c2c;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 700;
}

.menu-toggle{
  display: none;
  font-size: 26px;
  color: #fff;
  cursor: pointer;
}

@media (max-width: 768px){
  .logo{ font-size: 18px; }
  .menu-toggle{ display: block; }

  .nav{
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #08121d;
    display: none;
    flex-direction: column;
    text-align: center;
    padding: 18px 0;
  }

  .nav a{
    margin: 12px 0;
    display: block;
  }

  .nav.active{ display: flex; }
}

/* =============================
   BUTTONS (UNIFICATI)
============================= */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 14px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  will-change: transform;
}

.btn:hover{ transform: translateY(-1px); }

.btn:focus-visible{
  outline: 2px solid rgba(201,163,74,.65);
  outline-offset: 3px;
}

.btn-primary{
  background: #d4af37;
  color: #0b1c2c !important;
}
.btn-primary:hover{ background: #c49b2f; }

.btn-gold{
  background: linear-gradient(180deg, rgba(201,163,74,1) 0%, rgba(173,133,55,1) 100%);
  color: #0b1c2c !important;
  box-shadow: 0 12px 28px rgba(0,0,0,.28);
}
.btn-gold:hover{ box-shadow: 0 16px 36px rgba(0,0,0,.35); }

.btn-ghost{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.92) !important;
  backdrop-filter: blur(6px);
}
.btn-ghost:hover{
  border-color: rgba(201,163,74,.45);
  background: rgba(255,255,255,.08);
}

a.btn, a.btn:visited{ color: inherit; text-decoration: none; }

/* =============================
   HERO PREMIUM (HOME)
============================= */
.hero-premium{
  position: relative;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  background: var(--k-blue);
  overflow: hidden;
}

.hero-media{
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img,
.hero-video{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  filter: saturate(1.05) contrast(1.05);
}

.hero-overlay{
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(60% 60% at 20% 25%, rgba(201,163,74,.22) 0%, rgba(201,163,74,0) 60%),
    linear-gradient(90deg, rgba(11,28,44,.92) 0%, rgba(11,28,44,.70) 45%, rgba(11,28,44,.35) 100%),
    linear-gradient(180deg, rgba(8,22,36,.15) 0%, rgba(8,22,36,.85) 90%);
}

.hero-grid{
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: .12;
  mask-image: radial-gradient(circle at 25% 30%, rgba(0,0,0,1) 0%, rgba(0,0,0,.5) 45%, rgba(0,0,0,0) 70%);
  pointer-events: none;
}

.hero-inner{
  position: relative;
  z-index: 3;
  padding: clamp(80px, 10vh, 120px) 0;
}

.hero-copy{ max-width: 760px; }

.hero-badges{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.badge-pill{
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: .2px;
  color: rgba(255,255,255,.88);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(201,163,74,.25);
  backdrop-filter: blur(6px);
}

.hero-title{
  margin: 0 0 14px;
  font-weight: 700;
  line-height: 1.04;
  color: var(--k-text);
  font-size: clamp(38px, 5vw, 64px);
}

.hero-subtitle{
  margin: 0 0 26px;
  max-width: 62ch;
  color: var(--k-text-dim);
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.5;
}

.hero-cta{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.hero-metrics{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 640px;
}

.metric{
  padding: 14px;
  border-radius: var(--radius);
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(6px);
}

.metric-value{
  display: block;
  font-weight: 700;
  color: rgba(255,255,255,.95);
  font-size: 18px;
}

.metric-label{
  display: block;
  margin-top: 4px;
  color: rgba(255,255,255,.70);
  font-size: 13px;
}

.hero-bottom-fade{
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 120px;
  z-index: 4;
  background: linear-gradient(180deg, rgba(11,28,44,0) 0%, rgba(11,28,44,1) 90%);
}

@media (max-width: 860px){
  .hero-metrics{ grid-template-columns: 1fr; max-width: 520px; }
  .hero-premium{ min-height: calc(92vh - 80px); }
}

/* =============================
   SERVICES PREMIUM (HOME)
============================= */
.services-premium{
  padding: 100px 0;
  background: linear-gradient(to bottom, #ffffff, #f5f7fa);
  color: #0b1c2c;
}

.section-head.premium{
  text-align: center;
  max-width: 760px;
  margin: 0 auto 60px;
}

.section-kicker{
  display: inline-block;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--k-gold);
  font-weight: 700;
  margin-bottom: 10px;
}

.section-head.premium h2{
  font-size: 42px;
  color: #0b1c2c;
  margin-bottom: 14px;
}

.section-head.premium p{
  color: #5c6b7a;
  font-size: 18px;
  line-height: 1.6;
}

.services-grid-premium{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card-premium{
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.05);
  transition: transform .35s ease, box-shadow .35s ease;
}

.card-glow{
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(201,168,106,0.25), transparent 70%);
  opacity: 0;
  transition: opacity .35s ease;
}

.card-inner{
  position: relative;
  padding: 30px;
  z-index: 2;
}

.service-icon{
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.service-icon svg{
  width: 26px;
  height: 26px;
  stroke: var(--k-gold);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .95;
}

.service-icon svg circle{
  fill: var(--k-gold);
  stroke: none;
}

.service-card-premium h3{
  font-size: 20px;
  color: #0b1c2c;
  margin-bottom: 10px;
}

.service-card-premium p{
  color: #6b7a88;
  line-height: 1.6;
  font-size: 15px;
}

.service-card-premium:hover{
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

.service-card-premium:hover .card-glow{ opacity: 1; }

@media (min-width: 901px){
  .services-grid-premium > .service-card-premium:last-child{
    grid-column: 2 / span 1;
  }
}

@media (max-width: 900px){
  .services-grid-premium{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px){
  .services-grid-premium{ grid-template-columns: 1fr; }
  .section-head.premium h2{ font-size: 32px; }
  .services-premium{ padding: 80px 0; }
}

/* =============================
   RECRUITING CLEAN (HOME)
============================= */
.recruiting-clean{
  position: relative;
  padding: 110px 0;
  background: var(--k-blue);
  color: #fff;
  overflow: hidden;
}

.recruiting-clean .recruiting-bg{
  position:absolute;
  inset:0;
  background:
    radial-gradient(55% 55% at 15% 25%, rgba(201,163,74,.14) 0%, rgba(201,163,74,0) 60%),
    radial-gradient(40% 35% at 85% 55%, rgba(201,163,74,.08) 0%, rgba(201,163,74,0) 62%),
    linear-gradient(180deg, rgba(8,22,36,.15) 0%, rgba(8,22,36,.65) 100%);
  z-index:0;
}

.recruiting-clean-inner{
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 42px;
  align-items: start;
}

.recruiting-clean-copy{
  position: relative;
}

.recruiting-clean-copy::before{
  content:"";
  position:absolute;
  inset:-18px -14px -18px -14px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(11,28,44,.70), rgba(11,28,44,.35));
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(6px);
  z-index: -1;
}

.recruiting-clean-copy .section-kicker{
  color: rgba(255,255,255,.92);
  opacity: .9;
}

.recruiting-clean-copy h2{
  font-size: 42px;
  margin: 10px 0 12px;
  line-height: 1.08;
  color: #ffffff;
  text-shadow: 0 6px 22px rgba(0,0,0,.55);
}

.recruiting-clean-copy p{
  color: rgba(255,255,255,.86);
  line-height: 1.65;
  font-size: 16px;
  max-width: 62ch;
}

.recruiting-clean-cta{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 22px 0 18px;
}

.recruiting-clean-points{
  margin: 0;
  padding-left: 18px;
  color: rgba(255,255,255,.82);
  line-height: 1.9;
  font-size: 14px;
}

.recruiting-clean-right{
  display: grid;
  gap: 16px;
}

.recruiting-visual-card{
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  min-height: 320px;
}

.recruiting-visual-card img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  filter: saturate(1.05) contrast(1.05);
}

.recruiting-visual-overlay{
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg, rgba(11,28,44,.82) 0%, rgba(11,28,44,.50) 45%, rgba(11,28,44,.18) 100%),
    linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.55) 100%);
}

.recruiting-visual-content{
  position:absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
}

.recruiting-visual-content h3{
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
  color: rgba(255,255,255,.95);
}

.recruiting-visual-content p{
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: 14px;
  line-height: 1.5;
}

.recruiting-roles-clean{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.role-clean{
  padding: 16px;
  border-radius: 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(6px);
}

.role-clean h4{
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 800;
  color: rgba(255,255,255,.92);
}

.role-clean p{
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255,255,255,.72);
}

@media (max-width: 1000px){
  .recruiting-clean-inner{ grid-template-columns: 1fr; }
  .recruiting-roles-clean{ grid-template-columns: 1fr; }
  .recruiting-clean-copy::before{ inset:-14px -10px; }
}

@media (max-width: 600px){
  .recruiting-clean{ padding: 90px 0; }
  .recruiting-clean-copy h2{ font-size: 32px; }
}

/* =============================
   LAVORA CON NOI PREMIUM
============================= */
.job-hero-premium{
  position: relative;
  padding: 120px 0 90px;
  text-align: center;
  background: var(--k-blue);
  overflow: hidden;
}

.job-hero-bg{
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 30% 20%, rgba(201,163,74,.15), transparent 60%),
    radial-gradient(circle at 80% 30%, rgba(201,163,74,.08), transparent 65%),
    linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.55));
  z-index:0;
}

.job-hero-premium .container{
  position: relative;
  z-index: 1;
}

.job-hero-premium .container::before{
  content:"";
  position:absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -18px;
  width: min(860px, 96%);
  height: calc(100% + 36px);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(11,28,44,.72), rgba(11,28,44,.35));
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(6px);
  z-index: -1;
}

.job-hero-premium h1{
  font-size: clamp(34px,5vw,56px);
  margin: 10px 0;
  color: #ffffff;
  text-shadow: 0 6px 22px rgba(0,0,0,.55);
  -webkit-text-fill-color:#ffffff;
}

.job-hero-premium p{
  max-width: 600px;
  margin: auto;
  color: rgba(255,255,255,.88);
}

.job-roles-premium{
  background: #fff;
  color: #0b1c2c;
  padding: 90px 0;
}

.roles-grid-premium{
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 24px;
  margin-top: 40px;
}

.role-card-premium{
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(201,163,74,.45);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.role-card-premium:hover{
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,.08);
  border-color: rgba(201,163,74,.75);
}

.role-card-premium.highlight{
  border-color: rgba(201,163,74,1);
  box-shadow: 0 18px 45px rgba(201,163,74,.12);
}

.job-benefits-premium{
  position: relative;
  background: var(--k-blue);
  padding: 110px 0;
  overflow: hidden;
}

.job-benefits-premium::before{
  content:"";
  position:absolute;
  inset:-20%;
  background:
    radial-gradient(40% 35% at 20% 20%, rgba(201,163,74,.18), transparent 60%),
    radial-gradient(35% 30% at 80% 40%, rgba(201,163,74,.10), transparent 60%);
  pointer-events:none;
}

.benefits-premium-box{
  position: relative;
  border-radius: 20px;
  padding: 48px 42px;
  text-align: left;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
}

.benefits-premium-box h2{
  text-align: left;
  font-size: clamp(26px, 3.2vw, 40px);
  margin-bottom: 10px;
  color: #fff;
  text-shadow: 0 6px 22px rgba(0,0,0,.55);
}

.benefits-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 16px;
  margin-top: 26px;
}

.benefits-grid > div{
  background: rgba(0,0,0,.16);
  border: 1px solid rgba(201,163,74,.22);
  border-radius: 16px;
  padding: 16px 16px;
  color: rgba(255,255,255,.90);
  line-height: 1.45;
}

@media(max-width:900px){
  .roles-grid-premium{ grid-template-columns: 1fr 1fr; }
}
@media(max-width:600px){
  .roles-grid-premium{ grid-template-columns: 1fr; }
  .benefits-premium-box{ padding: 36px 18px; }
  .benefits-grid{ grid-template-columns: 1fr; }
  .job-hero-premium .container::before{ width: 100%; }
}

/* =============================
   FIX DEFINITIVO - SEZIONE CANDIDATI SUBITO
============================= */
section.job-form.light-section{
  padding: 120px 0 !important;
}

section.job-form.light-section h2{
  text-align: center !important;
  font-size: clamp(26px, 3.2vw, 40px);
  margin-bottom: 12px !important;
}

section.job-form.light-section p{
  text-align: center !important;
  max-width: 720px;
  margin: 0 auto 28px !important;
  color: rgba(11,28,44,.72) !important;
  line-height: 1.6;
}

section.job-form.light-section .job-form-wrap{
  margin-top: 10px !important;
}

section.job-form.light-section .wpforms-form{
  border-radius: 18px !important;
  padding: 34px !important;
  box-shadow: 0 30px 80px rgba(0,0,0,0.12) !important;
  border: 1px solid rgba(0,0,0,0.06) !important;
}

section.job-form.light-section .wpforms-form input,
section.job-form.light-section .wpforms-form textarea,
section.job-form.light-section .wpforms-form select{
  border-radius: 10px !important;
  padding: 12px 14px !important;
}

section.job-form.light-section .wpforms-submit{
  border-radius: 12px !important;
  padding: 12px 18px !important;
  font-weight: 800 !important;
}

@media (max-width: 600px){
  section.job-form.light-section{ padding: 95px 0 !important; }
  section.job-form.light-section .wpforms-form{ padding: 24px !important; }
}

/* =============================
   FOOTER
============================= */
.site-footer{
  background: #08121d;
  padding: 40px 0;
  text-align: center;
  font-size: 14px;
  color: rgba(255,255,255,.85);
}

/* =============================
   ACCESSIBILITY / PREFERS REDUCED MOTION
============================= */
@media (prefers-reduced-motion: reduce){
  *{
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* =====================================
   PAGINA SERVIZI PREMIUM
===================================== */

/* HERO */
.services-hero{
  position: relative;
  padding: 130px 0 100px;
  text-align: center;
  background: var(--k-blue);
  overflow: hidden;
}

.services-hero-bg{
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 25% 20%, rgba(201,163,74,.18), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,.2), rgba(0,0,0,.6));
}

.services-hero h1{
  font-size: clamp(34px,5vw,56px);
  margin: 10px 0;
  color:#fff;
  text-shadow:0 4px 18px rgba(0,0,0,.45);
}

.services-hero p{
  max-width: 620px;
  margin: auto;
  color: rgba(255,255,255,.85);
}

/* GRID */
.services-page{
  background:#fff;
  color:#0b1c2c;
  padding:100px 0;
}

.services-block{
  max-width:700px;
  margin-bottom:60px;
}

.services-block h2{
  font-size:26px;
  margin-bottom:10px;
  position:relative;
}

.services-block h2::after{
  content:"";
  width:60px;
  height:3px;
  background:var(--k-gold);
  position:absolute;
  left:0;
  bottom:-6px;
}

.services-block p{
  margin-top:16px;
  line-height:1.6;
  color:#5c6b7a;
}

/* CTA */
.services-cta{
  background: var(--k-blue);
  padding:110px 0;
  text-align:center;
  position:relative;
}

.services-cta::before{
  content:"";
  position:absolute;
  inset:-20%;
  background:
    radial-gradient(40% 40% at 30% 30%, rgba(201,163,74,.15), transparent 60%);
}

.services-cta h2{
  font-size: clamp(26px,3vw,38px);
  color:#fff;
}

.services-cta p{
  color: rgba(255,255,255,.75);
  margin:10px 0 24px;
}

.cta-buttons{
  display:flex;
  gap:14px;
  justify-content:center;
  flex-wrap:wrap;
}

/* =========================================================
   FIX TESTO "INGIALLITO" (glow oro) - definitivo
========================================================= */
.recruiting-clean,
.job-hero,
.job-hero-premium,
.services-hero {
  position: relative;
  isolation: isolate;
}

.recruiting-bg,
.job-hero-bg,
.services-hero-bg,
.hero-overlay,
.hero-grid,
.recruiting-visual-overlay {
  position: absolute;
  inset: 0;
  z-index: 0 !important;
  pointer-events: none;
}

.recruiting-clean .container,
.job-hero .container,
.job-hero-premium .container,
.services-hero .container,
.hero-premium .container,
.recruiting-visual-content {
  position: relative;
  z-index: 2 !important;
}

.recruiting-clean .section-kicker,
.recruiting-clean h2,
.recruiting-clean p,
.job-hero .section-kicker,
.job-hero h1,
.job-hero p,
.job-hero-premium .section-kicker,
.job-hero-premium h1,
.job-hero-premium p,
.services-hero .section-kicker,
.services-hero h1,
.services-hero p {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal !important;
  text-shadow: 0 4px 18px rgba(0,0,0,.45) !important;
}

.recruiting-clean p,
.job-hero p,
.job-hero-premium p,
.services-hero p {
  color: rgba(255,255,255,.86) !important;
  -webkit-text-fill-color: rgba(255,255,255,.86) !important;
}

.recruiting-clean .recruiting-bg,
.job-hero-premium .job-hero-bg,
.services-hero .services-hero-bg {
  background:
    radial-gradient(45% 45% at 18% 22%, rgba(201,163,74,.07) 0%, rgba(201,163,74,0) 62%),
    linear-gradient(180deg, rgba(8,22,36,.12) 0%, rgba(8,22,36,.70) 100%) !important;
}

/* =========================================================
   LAVORA CON NOI — HERO PREMIUM (no box blu vecchio)
========================================================= */
.job-hero-premium{
  position: relative;
  padding: 130px 0 95px;
  text-align: center;
  background: var(--k-blue);
  overflow: hidden;
  isolation: isolate;
}

.job-hero-bg{
  position:absolute;
  inset:0;
  z-index:0;
  background:
    radial-gradient(45% 45% at 18% 22%, rgba(201,163,74,.10) 0%, rgba(201,163,74,0) 62%),
    linear-gradient(180deg, rgba(8,22,36,.12) 0%, rgba(8,22,36,.72) 100%);
}

.job-hero-premium .container{
  position: relative;
  z-index: 2;
}

.job-hero-premium .section-kicker,
.job-hero-premium h1{
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  text-shadow:0 4px 18px rgba(0,0,0,.45);
}

.job-hero-premium p{
  max-width: 720px;
  margin: 0 auto;
  color: rgba(255,255,255,.86) !important;
  -webkit-text-fill-color: rgba(255,255,255,.86) !important;
  line-height: 1.65;
}

@media (max-width: 600px){
  .job-hero-premium{ padding: 110px 0 80px; }
}

/* =========================================
   FIX PULITO HERO LAVORA CON NOI
========================================= */
.job-hero-premium > .container{
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  border-radius: 0 !important;
}

.job-hero-premium h1{
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  text-shadow:0 4px 18px rgba(0,0,0,.45);
}

.job-hero-premium p{
  color:rgba(255,255,255,.9) !important;
  -webkit-text-fill-color:rgba(255,255,255,.9) !important;
}

/* =========================================
   KILL BOX: elimina qualunque “cornice/card”
========================================= */
body .job-hero-premium .container{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  border-radius: 0 !important;
}

body .job-hero-premium .container :not(.btn):not(.btn *){
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  border-radius: 0 !important;
}

body .job-hero-premium h1{
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  text-shadow:0 4px 18px rgba(0,0,0,.45) !important;
}

body .job-hero-premium p,
body .job-hero-premium .section-kicker{
  color: rgba(255,255,255,.90) !important;
  -webkit-text-fill-color: rgba(255,255,255,.90) !important;
}

/* =========================================
   FIX: rimuove la “cornice/card” nel Job Hero
========================================= */
.job-hero-premium::before,
.job-hero-premium::after,
.job-hero-premium .container::before,
.job-hero-premium .container::after{
  content: none !important;
  display: none !important;
}

.job-hero-premium *:not(.job-hero-bg):not(.job-hero-bg *):not(.btn):not(.btn *){
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  backdrop-filter: none !important;
  border-radius: 0 !important;
}

.job-hero-premium .btn.btn-gold{
  background: linear-gradient(180deg, rgba(201,163,74,1) 0%, rgba(173,133,55,1) 100%) !important;
  box-shadow: 0 12px 28px rgba(0,0,0,.28) !important;
}

.job-hero-premium .btn.btn-ghost{
  background: rgba(255,255,255,.06) !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  backdrop-filter: blur(6px) !important;
}

.job-hero-premium h1{
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  text-shadow:0 4px 18px rgba(0,0,0,.45) !important;
}
.job-hero-premium p,
.job-hero-premium .section-kicker{
  color: rgba(255,255,255,.90) !important;
  -webkit-text-fill-color: rgba(255,255,255,.90) !important;
}

/* ===============================
   HERO PAGINE INTERNE PREMIUM
================================ */
.page-hero-premium{
  position: relative;
  padding: 120px 0 90px;
  background: var(--k-blue);
  text-align: center;
  overflow: hidden;
}

.page-hero-bg{
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 30% 20%, rgba(201,163,74,.15), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.55));
}

.page-hero-premium h1{
  font-size: clamp(36px,5vw,58px);
  color: #fff;
  margin: 12px 0;
}

.page-hero-premium p{
  max-width: 640px;
  margin: auto;
  color: rgba(255,255,255,.9);
}

/* ===============================
   SERVIZI BLOCCO PREMIUM
================================ */
.services-premium-block{
  background: #fff;
  color: #0b1c2c;
  padding: 100px 0;
}

.services-premium-grid{
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 40px 60px;
}

.service-block{
  position: relative;
  padding-left: 26px;
}

.service-line{
  position: absolute;
  left: 0;
  top: 6px;
  width: 6px;
  height: 28px;
  border-radius: 4px;
  background: linear-gradient(180deg,var(--k-gold),var(--k-gold-2));
}

.service-block h3{
  font-size: 22px;
  margin-bottom: 8px;
}

.service-block p{
  color: #5d6a78;
  line-height: 1.6;
}

/* ===============================
   CTA PREMIUM
================================ */
.services-cta-premium{
  background: var(--k-blue);
  padding: 90px 0;
}

.services-cta-inner{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.services-cta-premium h2{
  color: #fff;
  margin-bottom: 8px;
}

.services-cta-premium p{
  color: rgba(255,255,255,.8);
}

.services-cta-actions{
  display: flex;
  gap: 12px;
}

/* MOBILE */
@media(max-width:768px){
  .services-premium-grid{
    grid-template-columns: 1fr;
  }

  .services-cta-inner{
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =====================================================
   FIX HERO SERVIZI - bianco puro senza ingiallire
===================================================== */
.services-hero-premium::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(40% 35% at 30% 25%, rgba(201,163,74,.08), transparent 60%),
    linear-gradient(180deg, rgba(8,22,36,.25), rgba(8,22,36,.65));
  z-index:0;
}

.services-hero-premium .container{
  position: relative;
  z-index: 2;
}

.services-hero-premium h1{
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
  text-shadow:0 6px 22px rgba(0,0,0,.55);
}

.services-hero-premium p{
  color:rgba(255,255,255,.92) !important;
}

/* =====================================================
   HERO SYSTEM GLOBALE
===================================================== */
:root{
  --hero-text: #ffffff;
  --hero-text-dim: rgba(255,255,255,.90);
  --hero-shadow: 0 8px 28px rgba(0,0,0,.55);
}

.hero-sys{
  position: relative;
  overflow: hidden;
  background: var(--k-blue);
  isolation: isolate;
}

.hero-sys .hero-media{
  position:absolute;
  inset:0;
  z-index:0;
}

.hero-sys .hero-media img,
.hero-sys .hero-media video{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transform: scale(1.02);
  filter: saturate(1.05) contrast(1.05);
}

.hero-sys::before{
  content:"";
  position:absolute;
  inset:-20%;
  z-index:1;
  pointer-events:none;
  background:
    radial-gradient(40% 35% at 18% 25%, rgba(201,163,74,.18), transparent 62%),
    radial-gradient(28% 26% at 70% 35%, rgba(201,163,74,.10), transparent 64%);
  filter: blur(2px);
  opacity: .95;
}

.hero-sys::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:2;
  pointer-events:none;
  background:
    linear-gradient(90deg, rgba(11,28,44,.92) 0%, rgba(11,28,44,.70) 45%, rgba(11,28,44,.35) 100%),
    linear-gradient(180deg, rgba(8,22,36,.10) 0%, rgba(8,22,36,.82) 92%);
}

.hero-sys .hero-grid{
  position:absolute;
  inset:0;
  z-index:3;
  pointer-events:none;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: .10;
  mask-image: radial-gradient(circle at 25% 30%, rgba(0,0,0,1) 0%, rgba(0,0,0,.6) 45%, rgba(0,0,0,0) 70%);
}

.hero-sys .hero-inner{
  position: relative;
  z-index:4;
  padding: clamp(86px, 10vh, 128px) 0;
}

.hero-sys h1,
.hero-sys h2,
.hero-sys .section-kicker,
.hero-sys p{
  color: var(--hero-text) !important;
  -webkit-text-fill-color: var(--hero-text) !important;
  mix-blend-mode: normal !important;
  filter: none !important;
  opacity: 1 !important;
}

.hero-sys p{
  color: var(--hero-text-dim) !important;
  -webkit-text-fill-color: var(--hero-text-dim) !important;
}

.hero-sys .hero-title,
.hero-sys h1{
  text-shadow: var(--hero-shadow);
}

.hero-sys .hero-bottom-fade{
  position:absolute;
  left:0; right:0; bottom:-2px;
  height:120px;
  z-index:4;
  background: linear-gradient(180deg, rgba(11,28,44,0) 0%, rgba(11,28,44,1) 90%);
}

@media (max-width: 860px){
  .hero-sys .hero-inner{ padding: 96px 0 76px; }
}

/* =========================================================
   HERO SYSTEM — FIX VISIBILITÀ TESTI
========================================================= */
.hero-sys{
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-sys::after{
  content:"";
  position:absolute;
  inset:0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(6,16,26,.92) 0%, rgba(6,16,26,.72) 46%, rgba(6,16,26,.48) 100%),
    linear-gradient(180deg, rgba(0,0,0,.12) 0%, rgba(0,0,0,.68) 100%);
}

.hero-sys::before{
  content:"";
  position:absolute;
  inset:-10%;
  z-index: 0;
  background:
    radial-gradient(40% 35% at 18% 22%, rgba(201,163,74,.16), rgba(201,163,74,0) 62%),
    radial-gradient(34% 28% at 62% 30%, rgba(201,163,74,.10), rgba(201,163,74,0) 62%);
  pointer-events:none;
  filter: blur(2px);
}

.hero-sys .hero-media{ z-index: 0; }
.hero-sys .hero-media img,
.hero-sys .hero-media video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}

.hero-sys .hero-grid{
  position:absolute;
  inset:0;
  z-index: 2;
  opacity: .10;
}

.hero-sys .hero-inner{
  position: relative;
  z-index: 3;
}

.hero-sys .section-kicker,
.hero-sys .hero-title,
.hero-sys h1,
.hero-sys h2{
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  text-shadow: 0 6px 22px rgba(0,0,0,.62) !important;
  filter:none !important;
  mix-blend-mode: normal !important;
  opacity: 1 !important;
}

.hero-sys p,
.hero-sys .hero-subtitle{
  color: rgba(255,255,255,.92) !important;
  -webkit-text-fill-color: rgba(255,255,255,.92) !important;
  text-shadow: 0 4px 16px rgba(0,0,0,.55);
  opacity:1 !important;
}

@media (max-width: 768px){
  .hero-sys::after{
    background:
      linear-gradient(180deg, rgba(6,16,26,.62) 0%, rgba(6,16,26,.88) 100%);
  }
}

/* =============================
   CONTATTI — PREMIUM
============================= */
.contact-hero{
  background: var(--k-blue);
  position: relative;
  overflow: hidden;
}

.contact-section{
  padding: 100px 0;
}

.contact-head{
  margin-bottom: 40px;
}

.contact-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.contact-card{
  display: flex;
  gap: 14px;
  padding: 20px 18px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 14px 40px rgba(0,0,0,.06);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  color: var(--k-blue);
}

.contact-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 22px 60px rgba(0,0,0,.10);
  border-color: rgba(201,163,74,.35);
}

.contact-ico{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(201,163,74,.10);
  border: 1px solid rgba(201,163,74,.25);
  flex: 0 0 auto;
}

.contact-ico svg{
  width: 22px;
  height: 22px;
  stroke: var(--k-gold);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-card h3{
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 800;
}

.contact-meta{
  margin: 0 0 6px;
  color: rgba(11,28,44,.85);
  font-weight: 700;
  font-size: 14px;
}

.contact-note{
  margin: 0;
  color: rgba(11,28,44,.70);
  font-size: 13px;
  line-height: 1.5;
}

/* split */
.contact-split{
  padding: 110px 0;
  position: relative;
  overflow: hidden;
}

.contact-split-inner{
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 32px;
  align-items: start;
}

.contact-form-wrap h2{
  font-size: clamp(28px, 3.2vw, 44px);
  margin: 10px 0 10px;
  color: #fff;
  text-shadow: 0 4px 18px rgba(0,0,0,.45);
}

.contact-form-wrap p{
  color: rgba(255,255,255,.82);
  line-height: 1.7;
  max-width: 62ch;
}

.contact-form-card{
  margin-top: 18px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 20px;
  padding: 18px;
  backdrop-filter: blur(10px);
}

.contact-form-card .wpforms-form{
  background: transparent !important;
  box-shadow: none !important;
  padding: 8px !important;
}

.contact-side{
  display: grid;
  gap: 16px;
}

.contact-side-card{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 20px;
  padding: 22px;
  backdrop-filter: blur(10px);
}

.contact-side-kicker{
  display: inline-block;
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: 800;
  color: rgba(255,255,255,.92);
  opacity: .9;
  margin-bottom: 10px;
}

.contact-side-card h3{
  margin: 0 0 10px;
  color: #fff;
  font-weight: 900;
  font-size: 18px;
}

.contact-side-card p{
  margin: 0 0 14px;
  color: rgba(255,255,255,.82);
  line-height: 1.65;
  font-size: 14px;
}

.contact-side-list{
  display: grid;
  gap: 10px;
  color: rgba(255,255,255,.86);
  font-size: 14px;
}

.contact-side-list strong{
  color: #fff;
}

.map-card{
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  min-height: 320px;
}

.map-card iframe{
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  display: block;
  filter: saturate(1.05) contrast(1.05);
}

@media (max-width: 1000px){
  .contact-grid{ grid-template-columns: 1fr; }
  .contact-split-inner{ grid-template-columns: 1fr; }
}

/* =========================================
   SOLO FORM CONTATTI (WPForms ID 46)
========================================= */
#wpforms-form-46 .wpforms-field-label{
  color: #ffffff !important;
  font-weight: 600;
}

#wpforms-form-46 .wpforms-field-sublabel{
  color: rgba(255,255,255,.65) !important;
}

#wpforms-form-46 input,
#wpforms-form-46 textarea,
#wpforms-form-46 select{
  background: rgba(255,255,255,.08) !important;
  border: 1px solid rgba(255,255,255,.25) !important;
  color: #ffffff !important;
}

#wpforms-form-46 ::placeholder{
  color: rgba(255,255,255,.55) !important;
}

#wpforms-form-46 input[type="checkbox"],
#wpforms-form-46 input[type="radio"]{
  accent-color: var(--k-gold);
}

/* =========================================
   CONTATTI (WPForms #46)
========================================= */
#wpforms-form-46,
#wpforms-form-46 *{
  color: rgba(255,255,255,.92);
}

#wpforms-form-46 .wpforms-field-label,
#wpforms-form-46 label{
  color: rgba(255,255,255,.92) !important;
}

#wpforms-form-46 .wpforms-field-description,
#wpforms-form-46 .wpforms-field-sublabel,
#wpforms-form-46 .wpforms-field-limit-text{
  color: rgba(255,255,255,.70) !important;
}

#wpforms-form-46 input,
#wpforms-form-46 textarea,
#wpforms-form-46 select{
  color: rgba(255,255,255,.92) !important;
  background: rgba(255,255,255,.06) !important;
  border: 1px solid rgba(255,255,255,.14) !important;
}

#wpforms-form-46 input::placeholder,
#wpforms-form-46 textarea::placeholder{
  color: rgba(255,255,255,.65) !important;
  opacity: 1 !important;
}

#wpforms-form-46 input::-webkit-input-placeholder,
#wpforms-form-46 textarea::-webkit-input-placeholder{
  color: rgba(255,255,255,.65) !important;
}

#wpforms-form-46 input:focus,
#wpforms-form-46 textarea:focus,
#wpforms-form-46 select:focus{
  outline: none !important;
  border-color: rgba(201,163,74,.70) !important;
  box-shadow: 0 0 0 2px rgba(201,163,74,.18) !important;
}

#wpforms-form-46 label.wpforms-error{
  color: #ffd2d2 !important;
}
#wpforms-form-46 input.wpforms-error,
#wpforms-form-46 textarea.wpforms-error,
#wpforms-form-46 select.wpforms-error{
  border-color: rgba(255,120,120,.75) !important;
}

/* ===============================
   WPForms Fix Select Visibility
=============================== */
#wpforms-form-46 .wpforms-field select {
  color: #ffffff;
  background-color: #0b1c2c;
  border: 1px solid rgba(255,255,255,0.16);
}

#wpforms-form-46 .wpforms-field select option {
  color: #111111;
  background: #ffffff;
}

#wpforms-form-46 .wpforms-field select:invalid {
  color: rgba(255,255,255,0.65);
}

.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  z-index: 9999;
  transition: all .25s ease;
}

.wa-float:hover {
  transform: translateY(-3px) scale(1.05);
}

/* ===============================
   Generic Page
=============================== */
.generic-page {
  padding: 140px 20px 80px;
  min-height: 70vh;
}

.generic-page-title {
  color: #fff;
  font-size: 42px;
  margin-bottom: 24px;
}

.generic-page-content {
  color: #fff;
  line-height: 1.7;
}

/* ===============================
   Operatori
   BLOCCO UNIFICATO E FIXATO
=============================== */
.operator-page {
  padding: 140px 20px 80px;
  min-height: 70vh;
}

.operator-hero-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 42px;
  padding: 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(212,175,55,0.18);
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}

.operator-hero-media {
  display: flex;
  justify-content: center;
}

.operator-photo {
  width: 180px;
  height: 180px;
  object-fit: cover;
  object-position: center 10%;
  border-radius: 18px;
  border: 1px solid rgba(212,175,55,0.22);
  background: rgba(255,255,255,0.04);
}

.operator-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 68px;
}

.operator-title {
  color: #fff;
  font-size: 42px;
  margin-bottom: 8px;
}

.operator-role {
  color: #d4af37;
  font-size: 18px;
  margin-bottom: 22px;
}

.operator-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.operator-meta-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 14px 16px;
}

.operator-meta-label {
  display: block;
  color: rgba(255,255,255,0.56);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.operator-meta-value {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}

.operator-docs-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.operator-docs-top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
}

.operator-docs-title {
  color: #fff;
  font-size: 28px;
  margin-bottom: 6px;
}

.operator-sub {
  color: rgba(255,255,255,0.75);
  font-size: 16px;
}

.operator-docs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.doc-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(212,175,55,0.28);
  border-radius: 14px;
  padding: 18px;
  transition: all .25s ease;
}

.doc-card:hover {
  transform: translateY(-3px);
  border-color: #d4af37;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.doc-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.doc-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: rgba(212,175,55,0.10);
  border: 1px solid rgba(212,175,55,0.20);
  flex-shrink: 0;
}

.doc-meta {
  min-width: 0;
}

.doc-title {
  color: #fff;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.3;
  margin-bottom: 4px;
}

.doc-type {
  color: rgba(255,255,255,0.55);
  font-size: 12px;
  letter-spacing: .08em;
}

.doc-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.doc-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  transition: all .2s ease;
}

.doc-btn-open {
  background: #d4af37;
  color: #111;
}

.doc-btn-open:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.doc-btn-download {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
}

.doc-btn-download:hover {
  background: rgba(255,255,255,0.12);
}

.doc-empty {
  padding: 18px 20px;
  background: rgba(255,255,255,0.04);
  border: 1px dashed rgba(255,255,255,0.18);
  border-radius: 12px;
  color: rgba(255,255,255,0.75);
}

.doc-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: all .2s ease;
}

.doc-lightbox.is-active {
  opacity: 1;
  visibility: visible;
}

.doc-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.78);
}

.doc-lightbox-content {
  position: relative;
  z-index: 2;
  width: min(92vw, 980px);
  max-height: 88vh;
  margin: 4vh auto;
  background: #0f1115;
  border: 1px solid rgba(212,175,55,0.25);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.doc-lightbox-title {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 14px;
  padding-right: 40px;
}

#docLightboxImage {
  display: block;
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 12px;
  background: #000;
}

.doc-lightbox-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.doc-lightbox-close:hover {
  background: rgba(255,255,255,0.14);
}

body.lightbox-open {
  overflow: hidden;
}

/* ===============================
   Password Operatore
=============================== */
.operator-password-wrap {
  padding: 160px 20px 100px;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.operator-password-form {
  width: 100%;
  max-width: 480px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(212,175,55,0.22);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.22);
}

.operator-password-form p {
  color: #fff;
  margin-bottom: 18px;
  font-size: 16px;
}

.operator-password-error {
  color: #ff8f8f !important;
  font-weight: 600;
}

.operator-password-form input[type="password"] {
  width: 100%;
  height: 52px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: #fff;
  padding: 0 16px;
  margin-bottom: 14px;
}

.operator-password-form input[type="password"]::placeholder {
  color: rgba(255,255,255,0.55);
}

.operator-password-form button {
  height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: #d4af37;
  color: #111;
  font-weight: 700;
  cursor: pointer;
}

.operator-password-form button:hover {
  filter: brightness(1.05);
}

@media (max-width: 768px) {
  .operator-page {
    padding: 120px 16px 60px;
  }

  .operator-hero-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .operator-photo {
    width: 140px;
    height: 140px;
    object-fit: cover;
    object-position: center 8%;
  }

  .operator-title {
    font-size: 32px;
  }

  .operator-docs-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .operator-docs-top-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .doc-actions {
    flex-direction: column;
  }

  .doc-btn {
    width: 100%;
    text-align: center;
  }
  /* ===== MARCATEMPO CANTIERE ===== */

.kostelia-scan-head{
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    gap:16px;
    flex-wrap:wrap;
    margin-bottom:22px;
}

.kostelia-scan-head-actions{
    display:flex;
    align-items:center;
}

.kostelia-scan-logout{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:46px;
    padding:0 16px;
    border-radius:12px;
    background:rgba(255,255,255,0.10);
    border:1px solid rgba(255,255,255,0.14);
    color:#fff;
    font-weight:800;
    text-decoration:none;
}
/* ===== QR TIMBRATURE ===== */

.kostelia-qr-head{
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    gap:16px;
    flex-wrap:wrap;
    margin-bottom:24px;
}

.kostelia-qr-head-actions{
    display:flex;
    align-items:center;
}

.kostelia-qr-logout{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:46px;
    padding:0 16px;
    border-radius:12px;
    background:rgba(255,255,255,0.10);
    border:1px solid rgba(255,255,255,0.14);
    color:#fff;
    font-weight:800;
    text-decoration:none;
}
.kostelia-consulente-docs{
    display:flex;
    flex-direction:column;
    gap:8px;
}
.kostelia-consulente-doc{
    display:block;
    padding:8px 10px;
    border-radius:10px;
    background:rgba(255,255,255,0.05);
    border:1px solid rgba(255,255,255,0.08);
}
.kostelia-consulente-doc-type{
    display:inline-block;
    margin-bottom:4px;
    font-size:11px;
    font-weight:800;
    text-transform:uppercase;
    color:#f3d27a;
}
.kostelia-consulente-doc-title{
    color:#fff;
    font-weight:700;
    text-decoration:none;
    line-height:1.4;
}
.kostelia-consulente-doc-desc{
    margin-top:4px;
    color:rgba(255,255,255,0.65);
    font-size:12px;
    line-height:1.4;
}
}