:root{
  --blue-main:#004080;
  --blue-light:#f0f6ff;
  --accent:#cc6600;
  --card-bg:#f7f9fc;
  --border-soft:#dde6f5;
  --pill-blue:#0066cc;
  --pill-blue-dark:#003366;

  --text-main:#1a2a3a;
  --text-soft:#42556b;

  --nav-h: 0px;

  --hero-shadow-strong: 0 22px 60px rgba(0,0,0,0.45);
  --hero-shadow-soft: 0 18px 38px rgba(0,0,0,0.35);
  --hero-border: rgba(255,255,255,0.22);
  --hero-card: rgba(255,255,255,0.10);
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
html,body{ overflow-x:hidden; }

body{
  font-family:"Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin:0;
  background: radial-gradient(circle at top left, #eef3ff 0, #ffffff 55%, #f5f7ff 100%);
  color:var(--text-main);
  line-height:1.6;
  padding-top: var(--nav-h);
}

.sr-only{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);border:0;
}

/* =========================================================
   HEADER
   ========================================================= */
header{
  background:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,0.16), transparent 45%),
    radial-gradient(circle at 85% 70%, rgba(204,102,0,0.18), transparent 55%),
    linear-gradient(135deg, #002a52, var(--blue-main) 55%, #0b63b6);
  color:#fff;
  padding:42px 20px 52px;
  position:relative;
  overflow:hidden;
}

header::before{
  content:"";
  position:absolute;
  inset:-60%;
  pointer-events:none;
  z-index:0;
  background:
    radial-gradient(circle at 18% 30%, rgba(255,255,255,0.14), transparent 55%),
    radial-gradient(circle at 82% 22%, rgba(0,0,0,0.26), transparent 60%),
    radial-gradient(circle at 70% 86%, rgba(204,102,0,0.20), transparent 65%),
    radial-gradient(circle at 22% 84%, rgba(0,0,0,0.22), transparent 60%);
  filter: blur(46px);
  opacity:1;
  transform: translate3d(0,0,0);
  animation: headerShadows 9s ease-in-out infinite alternate;
}

header::after{
  content:"";
  position:absolute;
  inset:-35%;
  pointer-events:none;
  z-index:0;
  background:
    radial-gradient(circle at 50% 45%, rgba(255,255,255,0.10), transparent 55%),
    radial-gradient(circle at 55% 60%, rgba(0,0,0,0.20), transparent 60%);
  filter: blur(55px);
  opacity:.65;
  animation: headerMist 7.5s ease-in-out infinite alternate;
}

@keyframes headerShadows{
  0%{ transform: translate3d(-6%,-4%,0) scale(1.05) rotate(-2deg); }
  50%{ transform: translate3d( 5%,-2%,0) scale(1.12) rotate( 2deg); }
  100%{ transform: translate3d( 8%, 5%,0) scale(1.08) rotate(-1deg); }
}
@keyframes headerMist{
  0%{ transform: translate3d( 3%, 2%,0) scale(1.02); opacity:.55; }
  100%{ transform: translate3d(-3%,-2%,0) scale(1.06); opacity:.72; }
}

.hero-inner{
  max-width:900px;
  margin:0 auto;
  position:relative;
  z-index:1;
  display:flex;
  justify-content:center;
}

.hero-panel{
  background:var(--hero-card);
  border-radius:22px;
  padding:22px 22px 24px;
  border:1px solid var(--hero-border);
  box-shadow:var(--hero-shadow-strong);
  backdrop-filter:blur(14px);
  max-width:640px;
  width:100%;
  text-align:center;
  position:relative;
  overflow:hidden;
  transform: translateZ(0);
}

.hero-panel::before{
  content:"";
  position:absolute;
  inset:-2px;
  background: conic-gradient(from 180deg,
    rgba(255,255,255,0.0),
    rgba(255,255,255,0.20),
    rgba(255,255,255,0.0)
  );
  filter: blur(12px);
  opacity:.45;
  animation: spinGlow 2.2s linear infinite;
  pointer-events:none;
  z-index:0;
}
@keyframes spinGlow{ to{ transform: rotate(360deg); } }

.hero-panel > *{ position:relative; z-index:1; }

.hero-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:5px 12px;
  border-radius:999px;
  background:rgba(0,0,0,0.38);
  font-size:0.75rem;
  letter-spacing:0.14em;
  text-transform:uppercase;
  margin-bottom:14px;
  color:#f5f7ff;
  white-space:nowrap;
}

.header-logo{
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}
.header-logo img{
  max-width:220px;
  display:block;
  margin:0 0 10px;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.35));
}

header h1{
  margin:4px 0 6px;
  font-size:2.1em;
  letter-spacing:0.06em;
  text-transform:uppercase;
  color:#fff;
  text-shadow:
    0 1px 0 rgba(0,0,0,0.18),
    0 2px 0 rgba(0,0,0,0.22),
    0 3px 6px rgba(0,0,0,0.45);
}
header p{
  max-width:520px;
  margin:8px auto 0;
  font-weight:300;
  font-size:0.96rem;
}
.hero-panel .cta-btn{ margin-top:18px; }

/* =========================================================
   NAVBAR (DESKTOP + MOBILE)
   - fix vero: su mobile la social bar sparisce o diventa compatta
   - burger sempre visibile e drawer sopra tutto
   ========================================================= */
nav{
  background:rgba(240,246,255,0.92);
  backdrop-filter: blur(10px);
  position:fixed;
  top:0; left:0; right:0;
  width:100%;
  box-shadow:0 2px 10px rgba(0,0,0,0.08);
  z-index:1000;
}

nav .container{
  max-width:1100px;
  margin:0 auto;
  display:flex;
  align-items:center;
  gap:20px;
  padding:10px 20px;
}

/* blocco brand: non deve esplodere in larghezza */
.brand-block{
  flex:0 0 auto;
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:4px;
}
.logo{
  font-weight:700;
  color:var(--blue-main);
  white-space:nowrap;
  font-size:0.95rem;
  letter-spacing:0.08em;
  text-transform:uppercase;
}

/* social (desktop) */
.social-bar{
  display:flex;
  gap:8px;
  margin-top:2px;
  margin-left:11px;
}
.social-icon{
  background:var(--pill-blue);
  color:#fff;
  padding:5px 14px;
  border-radius:999px;
  text-decoration:none;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 2px 6px rgba(0,0,0,0.20);
  transition:background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.social-icon svg{ width:16px;height:16px;display:block;fill:#fff; }
.social-icon.youtube svg{ width:18px; }
.social-icon:hover{
  background:var(--pill-blue-dark);
  transform:translateY(-1px);
  box-shadow:0 4px 10px rgba(0,0,0,0.28);
}

/* menu desktop */
nav ul{
  list-style:none;
  display:flex;
  justify-content:center;
  gap:8px;
  margin:0;
  padding:0;
  flex:1 1 auto;
  min-width:0;
}
nav li{ margin:0; padding:0; }
nav ul li a{
  color:var(--blue-main);
  text-decoration:none;
  font-weight:500;
  padding:8px 16px;
  border-radius:999px;
  display:block;
  font-size:0.9rem;
  white-space:nowrap;
  transition:background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
nav ul li a:hover,
nav ul li a:focus-visible{
  background:var(--accent);
  color:#fff;
  transform:translateY(-1px);
  box-shadow:0 4px 10px rgba(0,0,0,0.18);
  text-decoration:none;
}

/* lingua desktop */
.lang-switch{
  flex:0 0 auto;
  display:flex;
  gap:6px;
  margin-left:auto;
}
.lang-switch a{
  background:var(--pill-blue);
  color:#fff;
  width:32px;height:32px;
  border-radius:999px;
  font-weight:700;
  font-size:0.8rem;
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  transition:opacity .2s ease, transform .2s ease, box-shadow .2s ease, background .2s ease;
  box-shadow:0 2px 6px rgba(0,0,0,0.25);
}
.lang-switch a:hover{
  opacity:0.9;
  transform:translateY(-1px);
  box-shadow:0 4px 10px rgba(0,0,0,0.3);
}
.lang-switch a.active-lang{
  background:var(--pill-blue-dark);
  box-shadow:0 0 0 2px rgba(255,255,255,0.8), 0 4px 10px rgba(0,0,0,0.35);
}

/* burger */
#nav-burger{
  display:none;
  margin-left:auto;
  width:42px;height:42px;
  border:none;
  border-radius:14px;
  background:rgba(0,102,204,0.12);
  cursor:pointer;
  box-shadow:0 2px 6px rgba(0,0,0,0.20);
  transition:background .2s ease, transform .2s ease, box-shadow .2s ease;
}
#nav-burger:hover{
  background:rgba(0,102,204,0.16);
  transform:translateY(-1px);
  box-shadow:0 4px 10px rgba(0,0,0,0.28);
}
#nav-burger span{
  display:block;
  width:20px;height:2px;
  background:var(--blue-main);
  border-radius:999px;
  margin:5px auto;
}

/* overlay + drawer (sempre sopra tutto) */
#nav-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.38);
  backdrop-filter: blur(2px);
  z-index:9998;
  display:none;
}
#nav-overlay.open{ display:block; }

#mobile-drawer{
  position:fixed;
  top:0; right:0;
  height:100dvh;
  width:min(88vw, 360px);
  background:rgba(240,246,255,0.98);
  backdrop-filter: blur(12px);
  border-left:1px solid rgba(0,0,0,0.06);
  box-shadow:-18px 0 40px rgba(0,0,0,0.18);
  z-index:9999;
  transform:translateX(110%);
  transition:transform .22s ease;
  padding:14px 14px 18px;
  display:flex;
  flex-direction:column;
  gap:12px;
  overflow:auto;
  -webkit-overflow-scrolling:touch;
}
#mobile-drawer.open{ transform:translateX(0); }

#mobile-drawer .mobile-drawer-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:6px 6px 8px;
}
#mobile-drawer .mobile-drawer-title{
  font-weight:700;
  color:var(--blue-main);
  letter-spacing:0.08em;
  text-transform:uppercase;
  font-size:0.95rem;
}
#drawer-close{
  width:40px;height:40px;
  border:none;
  border-radius:14px;
  background:rgba(0,102,204,0.12);
  cursor:pointer;
  color:var(--blue-main);
  font-size:24px;
  line-height:1;
  box-shadow:0 2px 6px rgba(0,0,0,0.20);
  transition:transform .2s ease, box-shadow .2s ease;
}
#drawer-close:hover{
  transform:translateY(-1px);
  box-shadow:0 4px 10px rgba(0,0,0,0.28);
}

#mobile-drawer .mobile-drawer-links{
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:6px;
}
#mobile-drawer .mobile-drawer-links a{
  background:#fff;
  border:1px solid var(--border-soft);
  border-radius:14px;
  padding:12px 14px;
  text-decoration:none;
  color:var(--blue-main);
  font-weight:600;
  box-shadow:0 6px 14px rgba(0,0,0,0.06);
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease;
}
#mobile-drawer .mobile-drawer-links a:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 18px rgba(0,0,0,0.10);
}

#mobile-lang{
  display:flex;
  gap:8px;
  padding:14px 6px 0;
  margin-top:auto;
  border-top:1px solid rgba(0,0,0,0.06);
}
#mobile-lang a{
  background:var(--pill-blue);
  color:#fff;
  width:40px;height:40px;
  border-radius:999px;
  font-weight:800;
  font-size:0.85rem;
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  box-shadow:0 2px 6px rgba(0,0,0,0.25);
  transition:opacity .2s ease, transform .2s ease, box-shadow .2s ease, background .2s ease;
}
#mobile-lang a.active-lang{
  background:var(--pill-blue-dark);
  box-shadow:0 0 0 2px rgba(255,255,255,0.8), 0 4px 10px rgba(0,0,0,0.35);
}
#mobile-lang a:hover{
  opacity:0.9;
  transform:translateY(-1px);
  box-shadow:0 4px 10px rgba(0,0,0,0.3);
}

/* =========================================================
   CTA BUTTON
   ========================================================= */
.cta-btn{
  display:inline-block;
  margin-top:20px;
  background:#fff;
  color:var(--blue-main);
  padding:11px 22px;
  border-radius:999px;
  text-decoration:none;
  font-weight:600;
  font-size:0.9rem;
  box-shadow:0 4px 10px rgba(0,0,0,0.25);
  transition:transform .2s ease, box-shadow .2s ease, opacity .2s ease;
  white-space:nowrap;
}
.cta-btn:hover{
  opacity:0.95;
  transform:translateY(-1px);
  box-shadow:0 6px 16px rgba(0,0,0,0.3);
}

/* =========================================================
   SECTIONS
   ========================================================= */
section{
  padding:40px 20px;
  max-width:1100px;
  margin:26px auto;
  color:var(--text-main);
}
section p, section li, section span{ color:var(--text-soft); }

section h2{
  margin-top:0;
  color:#003366;
  font-size:1.4rem;
  display:flex;
  align-items:center;
  gap:8px;
}
section h2::before{
  content:"";
  width:24px;height:3px;
  border-radius:999px;
  background:linear-gradient(90deg, var(--accent), #ffaa55);
  display:inline-block;
}

/* CARDS */
.services{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(240px, 1fr));
  gap:20px;
}
.service{
  background:var(--card-bg);
  border-radius:14px;
  padding:18px;
  border:1px solid var(--border-soft);
  box-shadow:0 6px 16px rgba(0,0,0,0.06);
  transition:box-shadow .2s ease, transform .2s ease, border-color .2s ease;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.service h3{
  margin-top:0;margin-bottom:6px;
  font-size:1.05rem;
  color:#123a70;
}
.service p{
  font-size:0.9rem;
  color:var(--text-soft);
  margin:0;
}
.service:hover{
  box-shadow:0 12px 28px rgba(0,0,0,0.14);
  transform:translateY(-3px);
  border-color:rgba(0,102,204,0.4);
}

/* CHI SIAMO LAYOUT */
.chi-grid{
  display:grid;
  grid-template-columns:2fr 1fr;
  gap:24px;
  align-items:center;
}
.portrait{
  max-width:260px;
  border-radius:18px;
  display:block;
  margin:0 auto;
  box-shadow:0 10px 24px rgba(0,0,0,0.20);
  object-fit:cover;
}

/* testo giustificato */
.chi-grid p,
section#chi-siamo p{
  text-align:justify;
  text-justify:inter-word;
  overflow-wrap:break-word;
  word-break:normal;
  hyphens:auto;
  -webkit-hyphens:auto;
  -ms-hyphens:auto;
  line-height:1.65;
}
.chi-grid p:last-child,
section#chi-siamo p:last-child{
  text-align-last:left;
}
@supports (text-wrap: pretty){
  .chi-grid p,
  section#chi-siamo p{
    text-wrap:pretty;
  }
}

/* STEP LIST */
.steps{
  list-style:none;
  padding-left:0;
  margin:0;
}
.steps li{
  margin-bottom:14px;
  padding-left:8px;
  border-left:3px solid rgba(0,64,128,0.1);
}
.steps strong{
  color:var(--blue-main);
  font-size:0.95rem;
}
.steps span{
  font-size:0.9rem;
  display:inline-block;
  margin-top:3px;
  color:var(--text-soft);
}

/* CONTACT CARD + FORM */
.contact-card{
  background:var(--card-bg);
  border-radius:18px;
  padding:26px 22px 22px;
  border:1px solid var(--border-soft);
  box-shadow:0 10px 26px rgba(0,0,0,0.10);
  color:var(--text-main);
}
.contact-intro{
  margin-bottom:18px;
  font-size:0.92rem;
  color:var(--text-soft);
}
.form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px 20px;
}
.form-field{
  display:flex;
  flex-direction:column;
}
.form-field label{
  font-weight:500;
  color:var(--blue-main);
  margin-bottom:4px;
  font-size:0.85rem;
}
.form-field input,
.form-field textarea{
  padding:9px 10px;
  border:1px solid #ccdff6;
  border-radius:8px;
  font-family:inherit;
  font-size:0.9rem;
  resize:vertical;
  transition:border .2s ease, box-shadow .2s ease, background .2s ease;
  background:#fff;
}
.form-field textarea{ min-height:120px; }
.form-field input:focus,
.form-field textarea:focus{
  outline:none;
  border-color:#4b8fe8;
  box-shadow:0 0 0 2px rgba(75,143,232,0.25);
  background:#fff;
}
.form-field input:disabled,
.form-field textarea:disabled,
.contact-submit:disabled{
  background:#eef1f8;
  border-color:#d6d9e6;
  cursor:not-allowed;
  opacity:0.8;
  box-shadow:none;
}

.privacy-row{
  margin-top:12px;
  font-size:0.82rem;
  color:#333;
  display:flex;
  align-items:flex-start;
  gap:6px;
}
.privacy-row input{ margin-top:3px; }

.form-actions{
  margin-top:18px;
  display:flex;
  justify-content:flex-start;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}

.contact-submit{
  background:#0073e6;
  color:#fff;
  padding:10px 22px;
  border:none;
  border-radius:999px;
  cursor:pointer;
  font-weight:600;
  font-size:0.9rem;
  box-shadow:0 4px 12px rgba(0,0,0,0.18);
  transition:transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.contact-submit:hover:not(:disabled){
  transform:translateY(-1px);
  box-shadow:0 6px 16px rgba(0,0,0,0.22);
  opacity:0.95;
}

.wa-inline{ font-size:0.88rem; color:#555; }
.wa-inline a{
  color:#007a3d;
  font-weight:600;
  text-decoration:none;
}
.wa-inline a:hover{ text-decoration:underline; }

/* WHATSAPP FLOATING */
.whatsapp-btn{
  position:fixed;
  right:18px;
  bottom:18px;
  background:#25D366;
  color:#fff;
  width:56px;height:56px;
  border-radius:50%;
  text-decoration:none;
  box-shadow:0 6px 18px rgba(0,0,0,0.2);
  display:flex;
  align-items:center;
  justify-content:center;
  transition:transform .2s ease, box-shadow .2s ease, opacity .2s ease;
  z-index:2000;
}
.whatsapp-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 24px rgba(0,0,0,0.28);
  opacity:0.95;
}
.wa-icon{
  width:28px;height:28px;
  display:flex;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
}
.wa-icon svg{
  width:22px;height:22px;
  display:block;
  fill:#fff;
}

/* FOOTER */
footer{
  background:#001a33;
  color:#e5ecff;
  padding:28px 20px 18px;
  font-size:0.86rem;
  margin-top:40px;
  border-top:1px solid rgba(255,255,255,0.08);
}
.footer-inner{
  max-width:1100px;
  margin:0 auto;
  display:flex;
  flex-wrap:wrap;
  gap:20px 40px;
  justify-content:space-between;
  align-items:flex-start;
}
.footer-brand-title{
  font-weight:700;
  letter-spacing:0.16em;
  text-transform:uppercase;
  font-size:0.8rem;
  margin-bottom:6px;
  color:#7fb8ff;
}
.footer-brand p{
  margin:4px 0 0;
  max-width:360px;
  font-size:0.86rem;
  color:#c4d3f2;
}
.footer-col{ min-width:160px; }
.footer-col h4{
  margin:0 0 8px;
  font-size:0.9rem;
  font-weight:600;
  color:#fff;
}
.footer-links{
  list-style:none;
  padding:0;
  margin:0;
}
.footer-links li{ margin-bottom:4px; }
.footer-links a{
  color:#d0ddff;
  text-decoration:none;
  font-size:0.85rem;
}
.footer-links a:hover{
  color:#fff;
  text-decoration:underline;
}
.footer-contact p{
  margin:2px 0;
  font-size:0.85rem;
  color:#c4d3f2;
}
.footer-contact a{
  color:#e5ecff;
  text-decoration:none;
}
.footer-contact a:hover{ text-decoration:underline; }
.footer-bottom{
  max-width:1100px;
  margin:20px auto 0;
  padding-top:10px;
  border-top:1px solid rgba(255,255,255,0.08);
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  font-size:0.8rem;
  color:#a9bce6;
}
.footer-bottom a{
  color:#e5ecff;
  text-decoration:none;
}
.footer-bottom a:hover{ text-decoration:underline; }

/* =========================================================
   PRELOADER
   ========================================================= */
#page-preloader{
  position:fixed;
  inset:0;
  z-index:99999;
  display:flex;
  align-items:center;
  justify-content:center;
  background:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,0.16), transparent 45%),
    radial-gradient(circle at 85% 70%, rgba(204,102,0,0.18), transparent 55%),
    linear-gradient(135deg, #002a52, #004080 55%, #0b63b6);
  color:#fff;
  opacity:1;
  transition:opacity .35s ease, visibility .35s ease;
  visibility:visible;
}
#page-preloader.hidden{
  opacity:0;
  visibility:hidden;
  pointer-events:none;
}
.preload-wrap{
  width:min(520px, 92vw);
  text-align:center;
  padding:22px 18px;
}
.preload-card{
  background:rgba(255,255,255,0.10);
  border:1px solid rgba(255,255,255,0.25);
  border-radius:22px;
  box-shadow:0 22px 60px rgba(0,0,0,0.45);
  backdrop-filter: blur(14px);
  padding:22px 18px 18px;
  position:relative;
  overflow:hidden;
}
.preload-card::before{
  content:"";
  position:absolute;
  inset:-2px;
  background: conic-gradient(from 180deg,
    rgba(255,255,255,0.0),
    rgba(255,255,255,0.22),
    rgba(255,255,255,0.0)
  );
  filter: blur(10px);
  opacity:.55;
  animation: spinGlow 1.8s linear infinite;
  pointer-events:none;
}
.preload-inner{ position:relative; z-index:1; }
.preload-logo{
  width:64px;height:64px;
  margin:0 auto 10px;
  border-radius:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,0.12);
  border:1px solid rgba(255,255,255,0.26);
  box-shadow:0 10px 22px rgba(0,0,0,0.22);
}
.preload-logo svg{ width:34px;height:34px; fill:#fff; opacity:.95; }
.preload-title{
  margin:0;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  font-size:0.95rem;
}
.preload-sub{
  margin:8px auto 14px;
  max-width:360px;
  font-weight:300;
  font-size:0.86rem;
  opacity:.92;
  line-height:1.45;
}
.preload-bar{
  height:10px;
  border-radius:999px;
  overflow:hidden;
  background:rgba(255,255,255,0.18);
  border:1px solid rgba(255,255,255,0.20);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
}
.preload-bar > span{
  display:block;
  height:100%;
  width:38%;
  border-radius:999px;
  background:linear-gradient(90deg, rgba(255,255,255,0.35), #ffcf8b, #cc6600);
  animation: preloadMove 1.2s ease-in-out infinite;
}
@keyframes preloadMove{
  0%{ transform: translateX(-30%); width:35%; opacity:.7; }
  50%{ transform: translateX(60%); width:55%; opacity:1; }
  100%{ transform: translateX(140%); width:35%; opacity:.7; }
}
.preload-hint{
  margin:12px 0 0;
  font-size:0.75rem;
  opacity:.8;
  letter-spacing:.04em;
}

/* Reviews slider (1 card per volta) */
#latest-reviews-wrap.services{
  display:flex !important;
  gap:14px;
  overflow:hidden;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
}
#latest-reviews-wrap .service{
  flex:0 0 100%;
  scroll-snap-align:start;
}
#rev-dots button{
  width:10px;height:10px;
  border-radius:999px;
  border:0;
  cursor:pointer;
  background:rgba(0,64,128,0.25);
  padding:0;
}
#rev-dots button.active{ background:rgba(0,64,128,0.85); }

/* Slider investimenti */
.inv-slider-wrap{
  margin-top:18px;
  background:#fff;
  border:1px solid #d7e2f2;
  border-radius:16px;
  padding:16px;
}
.inv-slider{
  position:relative;
  display:block;
  width:100%;
  height:320px;
  overflow:hidden;
  border-radius:14px;
  border:1px solid #d7e2f2;
  text-decoration:none;
  background:#f3f6fb;
}
.inv-slider img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.inv-slider-overlay{
  position:absolute;
  left:0; right:0; bottom:0;
  padding:14px;
  background:linear-gradient(transparent, rgba(0,0,0,.55));
  color:#fff;
}
.inv-slider-badge{
  display:inline-block;
  background:rgba(0,0,0,.55);
  padding:6px 10px;
  border-radius:999px;
  font-size:13px;
  font-weight:600;
  margin-bottom:8px;
}
.inv-slider-caption{
  font-size:16px;
  font-weight:700;
  text-shadow:0 1px 2px rgba(0,0,0,.35);
}
.inv-slider-dots{
  display:flex;
  gap:6px;
  justify-content:center;
  margin-top:10px;
}
.inv-slider-dots .dot{
  width:8px;height:8px;
  border-radius:50%;
  background:#cbd6ea;
}
.inv-slider-dots .dot.active{ background:#123a70; }
.inv-slider-empty{
  margin-top:12px;
  padding:12px;
  border-radius:12px;
  background:#f3f6fb;
  color:#4a5d7a;
  border:1px dashed #cbd6ea;
}

/* =========================================================
   HOTFIX TESTI INVISIBILI / REVEAL BLOCCATO
   ========================================================= */
section p,
section li,
section span,
.service p,
.service li,
.chi-grid p,
.contact-card p{
  color:#42556b !important;
  opacity:1 !important;
  visibility:visible !important;
  transform:none !important;
  filter:none !important;
}

.hidden,
.is-hidden,
.reveal,
.reveal-hidden,
.fade,
.fade-up,
.animate,
.aos-init,
.aos-animate{
  opacity:1 !important;
  visibility:visible !important;
  transform:none !important;
}

section,
.service,
.chi-grid,
.contact-card{
  overflow:visible !important;
  max-height:none !important;
}

/* TAG */
.post-tag{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  letter-spacing:.02em;
  text-transform:uppercase;
  line-height:1;
  border:1px solid rgba(0,0,0,.10);
  background:rgba(0,0,0,.04);
  color:#0b2a4a;
}
.post-tag--article{
  background:rgba(46,170,90,.12);
  border-color:rgba(46,170,90,.28);
  color:#0f5b2b;
}
.post-tag--listing{
  background:rgba(255,152,0,.14);
  border-color:rgba(255,152,0,.30);
  color:#8a4a00;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width:768px){
  /* qui c’è il fix decisivo: la social bar non deve spingere fuori il burger */
  .social-bar{ display:none !important; }

  nav .container{
    justify-content:space-between;
    gap:10px;
  }

  /* nascondo menu e lingua desktop */
  nav ul{ display:none !important; }
  .lang-switch{ display:none !important; }

  /* mostro burger */
  #nav-burger{ display:block; }

  .brand-block{ align-items:flex-start; }

  .hero-panel{ padding:20px 16px 22px; }

  header{ padding:32px 16px 40px; }
  header h1{ font-size:1.8em; }
  header p{ font-size:0.9rem; }

  .chi-grid{ grid-template-columns:1fr; }
  .form-grid{ grid-template-columns:1fr; }

  .footer-inner{ flex-direction:column; align-items:flex-start; }
  .footer-bottom{ flex-direction:column; align-items:flex-start; }

  section, .service, .contact-card{
    overflow-wrap:anywhere;
    word-break:break-word;
  }
}

@media (max-width:480px){
  header{ padding:28px 12px 28px; }
  .hero-panel{ padding:18px 14px 20px; }
  .header-logo img{ max-width:180px; margin-bottom:6px; }
  header h1{
    font-size:1.4rem;
    line-height:1.25;
    margin-top:10px;
    padding:0 4px;
  }
  header p{
    font-size:0.8rem;
    line-height:1.45;
    max-width:320px;
  }
  .hero-badge{
    font-size:0.7rem;
    letter-spacing:0.12em;
    max-width:100%;
    white-space:normal;
    text-align:center;
    padding:6px 10px;
  }
  .cta-btn{ font-size:0.76rem; padding:10px 14px; }
}

@media (prefers-reduced-motion: reduce){
  header::before,
  header::after{ animation:none !important; }
  .hero-panel::before{ animation:none !important; }
  #page-preloader *{
    animation:none !important;
    transition:none !important;
  }
}

/* === FIX pulito: icone visibili senza alterare design === */

nav { overflow: visible !important; }
nav .container { overflow: visible !important; }

nav .brand-block{
  display:flex;
  align-items:center;
  gap:12px;
}

nav .social-bar{
  display:flex !important;
  align-items:center;
  gap:10px;
  margin:0;
  padding:0;
}

/* NON forziamo più background o colore */
nav .social-bar .social-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

/* Forziamo SOLO la visibilità SVG (non il colore) */
nav .social-bar .social-icon svg{
  display:block;
  width:20px;
  height:20px;
}

nav .social-bar .social-icon svg path{
  fill:inherit;   /* torna a usare il colore originale */
}

/* =========================================================
   NAV: burger anticipato (tablet / laptop piccoli)
   ========================================================= */
@media (max-width: 1150px){

  /* Nascondo menu desktop */
  nav ul{
    display:none !important;
  }

  /* Nascondo lingue desktop */
  .lang-switch{
    display:none !important;
  }

  /* Nascondo anche search desktop */
  nav .nav-search{
    display:none !important;
  }

  /* Mostro burger */
  #nav-burger{
    display:block !important;
  }

  nav .container{
    justify-content:space-between;
  }
}