@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@400;500;600;700;800;900&family=Rajdhani:wght@500;600;700&display=swap');

:root {
  --green: #084649;
  --green-2: #2D746C;
  --green-3: #033437;
  --green-accent: #5E9573;
  --green-soft: #E7EFED;
  --ink: #2B2B2B;
  --muted: #626D6B;
  --line: #CED3D2;
  --bg: #EDEEEE;
  --white: #fff;
  --max: 1180px;
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --shadow: 0 24px 70px rgba(8, 70, 73, .12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Exo 2", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }
.container { width: min(100% - 40px, var(--max)); margin-inline: auto; }
.skip-link { position:absolute; left:-999px; top:0; background:var(--ink); color:var(--white); padding:10px 14px; z-index:999; }
.skip-link:focus { left:14px; top:14px; border-radius:12px; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 251, 250, .88);
  border-bottom: 1px solid rgba(223, 233, 230, .88);
  backdrop-filter: blur(18px);
}
.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 900; letter-spacing: .08em; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 13px;
  color: var(--white); display: grid; place-items: center;
  background: linear-gradient(135deg, var(--green), var(--green-2));
  box-shadow: 0 12px 30px rgba(0, 121, 107, .25);
  font-weight: 950;
}
.nav-links { display: flex; align-items: center; gap: 25px; color: #243633; font-size: 15px; }
.nav-links a:hover, .nav-links a.active { color: var(--green); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch { display: inline-flex; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); }
.lang-switch a { border-radius: 999px; padding: 8px 10px; color: var(--muted); font-weight: 850; font-size: 12px; }
.lang-switch a.is-active { color: var(--white); background: var(--green); }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 0 20px; border-radius: 999px;
  border: 1px solid transparent; font-weight: 850; font-size: 14px;
  cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary { color: var(--white); background: linear-gradient(135deg, var(--green), var(--green-2)); box-shadow: 0 16px 35px rgba(0, 121, 107, .24); }
.button-secondary { color: var(--green); background: var(--white); border-color: var(--line); }
.button-ghost { color: var(--green); background: transparent; border-color: rgba(0, 121, 107, .25); }
.menu-button { display:none; width:44px; height:44px; border:1px solid var(--line); border-radius:14px; background:var(--white); cursor:pointer; }
.menu-button span { display:block; width:18px; height:2px; margin:4px auto; background:var(--ink); border-radius:99px; }
.hero { position: relative; overflow: hidden; padding: 90px 0 62px; }
.hero::before { content:""; position:absolute; inset:-250px -170px auto auto; width:560px; height:560px; border-radius:50%; background: radial-gradient(circle, rgba(0,168,143,.30), transparent 62%); pointer-events:none; }
.hero-grid { display:grid; grid-template-columns: minmax(0, 1.04fr) minmax(360px, .96fr); gap:56px; align-items:center; }
.eyebrow { margin:0 0 14px; color:var(--green); font-weight:900; text-transform:uppercase; letter-spacing:.15em; font-size:13px; }
h1,h2,h3,p { margin-top:0; }
h1,h2,h3,.eyebrow,.button,.nav-links,.lang-switch,.stat strong,.footer-brand,.brand-slogan { font-family:"Rajdhani", "Exo 2", ui-sans-serif, system-ui, sans-serif; }
h1 { max-width:820px; margin-bottom:24px; font-size:clamp(42px, 7vw, 84px); line-height:.97; letter-spacing:-.07em; }
h2 { margin-bottom:18px; font-size:clamp(32px, 4.6vw, 56px); line-height:1.03; letter-spacing:-.055em; }
h3 { margin-bottom:10px; font-size:21px; line-height:1.16; letter-spacing:-.026em; }
.lead { max-width:690px; color:var(--muted); font-size:clamp(18px, 2vw, 21px); }
.hero-actions { display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin-top:32px; }
.hero-note { margin-top:20px; color:var(--muted); font-size:14px; }
.hero-card { position:relative; min-height:526px; border-radius:var(--radius-xl); overflow:hidden; background: linear-gradient(145deg, rgba(0,121,107,.90), rgba(0,168,143,.77)), radial-gradient(circle at 20% 10%, rgba(255,255,255,.30), transparent 32%), #0c2824; box-shadow:var(--shadow); isolation:isolate; }
.hero-card::before, .hero-card::after { content:""; position:absolute; border:1px solid rgba(255,255,255,.22); border-radius:30px; transform:rotate(-9deg); pointer-events:none; }
.hero-card::before { width:330px; height:420px; right:-42px; top:46px; background:rgba(255,255,255,.08); }
.hero-card::after { width:240px; height:240px; left:-70px; bottom:-52px; background:rgba(255,255,255,.06); }
.terminal { position:absolute; inset:54px 34px auto 34px; border-radius:22px; overflow:hidden; background:rgba(10,24,23,.88); color:#dbfffa; box-shadow:0 24px 70px rgba(0,0,0,.28); backdrop-filter:blur(16px); z-index:2; }
.terminal-bar { display:flex; align-items:center; gap:7px; height:42px; padding:0 16px; border-bottom:1px solid rgba(255,255,255,.10); background:rgba(255,255,255,.06); }
.dot { width:10px; height:10px; border-radius:50%; background:rgba(255,255,255,.45); }
.terminal-code { padding:22px; font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size:14px; line-height:1.7; white-space:pre-wrap; }
.terminal-code strong { color:#78ffe8; font-weight:900; }
.stats { position:absolute; left:34px; right:34px; bottom:34px; display:grid; grid-template-columns:repeat(3,1fr); gap:12px; z-index:3; }
.stat { padding:18px 14px; border:1px solid rgba(255,255,255,.22); border-radius:20px; background:rgba(255,255,255,.12); backdrop-filter:blur(16px); color:var(--white); }
.stat strong { display:block; font-size:24px; line-height:1; }
.stat span { display:block; margin-top:8px; font-size:12px; color:rgba(255,255,255,.80); }
.trust-strip { padding: 16px 0 8px; }
.trust-grid { display:grid; grid-template-columns: 1.1fr repeat(3, .75fr); gap:14px; align-items:stretch; }
.trust-item { min-height:82px; display:flex; flex-direction:column; justify-content:center; padding:17px 20px; border:1px solid var(--line); border-radius:20px; background:var(--white); }
.trust-item strong { font-size:16px; }
.trust-item span { color:var(--muted); font-size:14px; }
section { padding:76px 0; }
.section-head { max-width:790px; margin-bottom:38px; }
.split { display:grid; grid-template-columns:.74fr 1.26fr; gap:56px; align-items:start; }
.panel { padding:34px; border:1px solid var(--line); border-radius:var(--radius-xl); background:var(--white); box-shadow:0 18px 60px rgba(0,42,36,.06); }
.founders { display:grid; grid-template-columns:repeat(2,1fr); gap:18px; margin-top:30px; }
.founder { padding:24px; border-radius:22px; background:var(--bg); border:1px solid var(--line); }
.founder-photo-wrap { margin-bottom:18px; }
.founder-photo { width:100%; aspect-ratio:1/1; object-fit:cover; object-position:center; border-radius:22px; border:1px solid var(--line); box-shadow:0 12px 30px rgba(0,42,36,.08); }
.avatar { width:70px; height:70px; border-radius:22px; margin-bottom:18px; display:grid; place-items:center; color:var(--white); background:linear-gradient(135deg, var(--green), var(--green-2)); font-weight:950; font-size:20px; }
.role { display:inline-flex; margin-bottom:12px; padding:4px 10px; border-radius:999px; color:var(--green); background:var(--green-soft); font-size:12px; font-weight:900; }
.founder p { color:var(--muted); font-size:15px; }
.founder-links { margin-top:14px; display:flex; gap:10px; flex-wrap:wrap; }
.icon-link, .social-links a, .contact-pill { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:38px; padding:0 14px; border:1px solid var(--line); border-radius:999px; color:var(--green); background:var(--white); font-weight:850; font-size:13px; }
.icon-link:hover, .social-links a:hover, .contact-pill:hover { border-color:rgba(0,121,107,.35); background:var(--green-soft); }
.social-icon { width:18px; height:18px; flex:0 0 18px; display:inline-block; }
.services-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.service-card { min-height:260px; padding:26px; border:1px solid var(--line); border-radius:26px; background:var(--white); transition:transform .2s ease, box-shadow .2s ease; }
.service-card:hover { transform:translateY(-4px); box-shadow:0 18px 50px rgba(0,42,36,.08); }
.service-icon { width:48px; height:48px; border-radius:16px; display:grid; place-items:center; margin-bottom:22px; color:var(--green); background:var(--green-soft); font-weight:950; font-size:20px; }
.service-card p { color:var(--muted); font-size:15px; margin-bottom:0; }
.process { background: linear-gradient(180deg, rgba(231,245,242,.45), rgba(248,251,250,0)); }
.process-grid { display:grid; grid-template-columns:repeat(5,1fr); gap:14px; counter-reset:step; }
.process-step { position:relative; padding:24px; min-height:220px; border:1px solid var(--line); border-radius:24px; background:var(--white); }
.process-step::before { counter-increment:step; content:"0" counter(step); display:inline-grid; place-items:center; width:42px; height:42px; margin-bottom:22px; border-radius:14px; background:var(--green-soft); color:var(--green); font-weight:950; }
.process-step p { color:var(--muted); font-size:15px; margin-bottom:0; }
.ai-band { padding:48px; border-radius:var(--radius-xl); color:var(--white); background:linear-gradient(135deg, rgba(16,24,23,.96), rgba(0,121,107,.92)), radial-gradient(circle at 90% 10%, rgba(0,168,143,.28), transparent 35%); overflow:hidden; position:relative; }
.ai-band::after { content:""; position:absolute; width:320px; height:320px; right:-110px; bottom:-140px; border-radius:50%; background:rgba(255,255,255,.08); }
.ai-band > * { position:relative; z-index:1; }
.ai-band .lead { color:rgba(255,255,255,.78); }
/* AI band contrast fix */
.ai-band .eyebrow {
  color: rgba(255, 255, 255, .92);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .22);
}
.ai-band .eyebrow::before {
  content: "";
  width: 32px;
  height: 3px;
  border-radius: 999px;
  background: var(--green-accent);
  box-shadow: 0 0 18px rgba(94, 149, 115, .55);
}
.ai-band h2 {
  color: var(--white);
}

.ai-pills { display:flex; flex-wrap:wrap; gap:10px; margin-top:24px; }
.ai-pills span { padding:9px 13px; border:1px solid rgba(255,255,255,.20); border-radius:999px; color:rgba(255,255,255,.88); background:rgba(255,255,255,.08); font-size:14px; }
.portfolio-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.project { min-height:250px; display:flex; flex-direction:column; justify-content:space-between; padding:24px; border-radius:26px; border:1px solid var(--line); background:var(--white); }
.project small { color:var(--green); font-weight:900; letter-spacing:.10em; text-transform:uppercase; }
.project p { color:var(--muted); margin-bottom:0; }
.logo-grid { display:grid; grid-template-columns:repeat(6,1fr); gap:14px; }
.logo-tile { min-height:96px; display:grid; place-items:center; padding:18px; border:1px solid var(--line); border-radius:22px; background:var(--white); color:#596b68; font-weight:900; text-align:center; filter:grayscale(1); }
.cta { padding-bottom:94px; }
.cta-card { display:grid; grid-template-columns:1fr auto; gap:24px; align-items:center; padding:42px; border-radius:var(--radius-xl); background:var(--white); border:1px solid var(--line); box-shadow:var(--shadow); }
.cta-card p { color:var(--muted); margin-bottom:0; }
.contact-links, .social-links { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.contact-links { margin-top:22px; }
.site-footer { padding:34px 0; border-top:1px solid var(--line); color:var(--muted); font-size:14px; }
.footer-row { display:flex; justify-content:space-between; align-items:center; gap:20px; flex-wrap:wrap; }
.footer-brand { color:var(--ink); font-weight:950; letter-spacing:.08em; }
.whatsapp-float { position:fixed; right:20px; bottom:20px; z-index:60; width:58px; height:58px; display:grid; place-items:center; border-radius:50%; color:#fff; background:linear-gradient(135deg, #00a884, #00796b); box-shadow:0 16px 35px rgba(0,121,107,.28); font-weight:950; border:1px solid rgba(255,255,255,.45); }
.whatsapp-float svg { width:28px; height:28px; fill:currentColor; }
@media (max-width: 1120px) {
  .hero-grid, .split { grid-template-columns:1fr; }
  .hero-card { min-height:462px; }
  .services-grid, .portfolio-grid { grid-template-columns:repeat(2,1fr); }
  .process-grid { grid-template-columns:repeat(3,1fr); }
  .logo-grid { grid-template-columns:repeat(3,1fr); }
  .trust-grid { grid-template-columns:repeat(2,1fr); }
}
@media (max-width: 760px) {
  .container { width:min(100% - 28px, var(--max)); }
  .nav { min-height:68px; }
  .menu-button { display:inline-block; }
  .nav-links { position:fixed; left:14px; right:14px; top:76px; display:none; flex-direction:column; align-items:stretch; gap:4px; padding:14px; border:1px solid var(--line); border-radius:22px; background:var(--white); box-shadow:var(--shadow); }
  .nav-links.is-open { display:flex; }
  .nav-links a { padding:12px 14px; border-radius:14px; }
  .nav-links a:hover { background:var(--green-soft); }
  .nav-actions .button { display:none; }
  .hero { padding:54px 0 40px; }
  h1 { letter-spacing:-.055em; }
  .hero-actions .button { width:100%; }
  .hero-card { min-height:520px; border-radius:24px; }
  .terminal { inset:24px 18px auto 18px; }
  .terminal-code { font-size:12px; padding:18px; }
  .stats { left:18px; right:18px; bottom:18px; grid-template-columns:1fr; }
  section { padding:54px 0; }
  .panel, .ai-band, .cta-card { padding:26px; border-radius:24px; }
  .founders, .services-grid, .portfolio-grid, .process-grid, .logo-grid, .cta-card, .trust-grid { grid-template-columns:1fr; }
  .footer-row { align-items:flex-start; flex-direction:column; }
  .whatsapp-float { width:54px; height:54px; right:16px; bottom:16px; }
}


/* v4 refinements: above-the-fold hero, real logos, form and soft animations */
.site-header { min-height: 72px; }
.nav { min-height: 72px; }
.hero {
  min-height: calc(100svh - 72px);
  display: flex;
  align-items: center;
  padding: clamp(28px, 5vh, 54px) 0;
}
.hero-grid { gap: clamp(28px, 4vw, 46px); }
h1 { font-size: clamp(40px, 6vw, 74px); }
.hero-actions { margin-top: 26px; }
.hero-note { margin-top: 14px; }
.hero-card { min-height: min(440px, calc(100svh - 170px)); }
.terminal { inset: 34px 28px auto 28px; }
.stats { left: 28px; right: 28px; bottom: 28px; }
.hero .eyebrow, .hero h1, .hero .lead, .hero-actions, .hero-note, .hero-card {
  animation: fadeUp .72s ease both;
}
.hero h1 { animation-delay: .06s; }
.hero .lead { animation-delay: .12s; }
.hero-actions { animation-delay: .18s; }
.hero-note { animation-delay: .24s; }
.hero-card { animation-delay: .18s; }

.logo-grid { grid-template-columns: repeat(3, 1fr); }
.logo-tile {
  min-height: 112px;
  padding: 20px;
  filter: grayscale(1) saturate(0) opacity(.68);
  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease, border-color .22s ease;
}
.logo-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 45px rgba(0,42,36,.08);
  filter: none;
  border-color: rgba(0,121,107,.24);
}
.logo-tile img {
  width: 100%;
  max-width: 210px;
  max-height: 70px;
  object-fit: contain;
  margin-inline: auto;
}
.logo-tile img[src$="mapa-comunitario.png"],
.logo-tile img[src$="solvio.png"] {
  max-height: 86px;
}

.cta-card {
  grid-template-columns: minmax(0, .92fr) minmax(360px, .74fr);
  align-items: stretch;
}
.cta-copy { align-self: center; }
.contact-form {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--bg);
}
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.contact-form label {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
  color: #2b3c39;
  font-size: 13px;
  font-weight: 850;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  padding: 12px 13px;
  color: var(--ink);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.contact-form textarea { resize: vertical; min-height: 108px; }
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(0,121,107,.45);
  box-shadow: 0 0 0 4px rgba(0,121,107,.10);
}
.contact-form .button { width: 100%; margin-top: 2px; }
.form-note, .form-status { font-size: 13px; color: var(--muted); margin: 0 0 14px; }
.form-status { min-height: 20px; margin: 12px 0 0; }
.form-status.is-ok { color: var(--green); font-weight: 850; }
.form-status.is-error { color: #b42318; font-weight: 850; }
.hp-field { position:absolute !important; left:-10000px !important; width:1px; height:1px; overflow:hidden; }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 1120px) {
  .hero { min-height: auto; }
  .hero-card { min-height: 390px; }
  .cta-card { grid-template-columns: 1fr; }
  .logo-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .site-header { min-height: 64px; }
  .nav { min-height: 64px; }
  .brand-mark { width: 38px; height: 38px; border-radius: 12px; }
  .hero {
    min-height: calc(100svh - 64px);
    padding: 18px 0 20px;
  }
  .hero-grid { gap: 18px; }
  .eyebrow { font-size: 11px; letter-spacing: .12em; margin-bottom: 10px; }
  h1 { font-size: clamp(32px, 10.2vw, 46px); line-height: 1; margin-bottom: 14px; }
  .lead { font-size: 16px; line-height: 1.45; }
  .hero-actions { flex-wrap: nowrap; gap: 10px; margin-top: 18px; }
  .hero-actions .button { width: auto; flex: 1 1 0; min-height: 42px; padding: 0 10px; font-size: 12.5px; }
  .hero-note { display: none; }
  .hero-card { min-height: 176px; border-radius: 22px; }
  .terminal { inset: 14px; border-radius: 18px; }
  .terminal-bar { height: 32px; }
  .terminal-code { font-size: 10.5px; line-height: 1.45; padding: 13px; }
  .stats { display: none; }
  .trust-strip { padding-top: 8px; }
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .logo-tile { min-height: 92px; padding: 14px; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 18px; }
  .contact-form textarea { min-height: 98px; }
}
@media (max-width: 390px) {
  h1 { font-size: 31px; }
  .lead { font-size: 15px; }
  .hero-card { min-height: 152px; }
  .terminal-code { font-size: 9.5px; }
}


/* v5 refinements: language-safe hero and icon-only footer */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.hero-grid {
  grid-template-columns: minmax(0, 1.10fr) minmax(320px, .90fr);
}
.hero-card {
  min-height: min(400px, calc(100svh - 188px));
}
html[lang="en"] h1,
html[lang="it"] h1 {
  font-size: clamp(38px, 5.35vw, 66px);
  line-height: .98;
}
html[lang="en"] .hero .lead,
html[lang="it"] .hero .lead {
  font-size: clamp(17px, 1.7vw, 19px);
  line-height: 1.45;
}
html[lang="en"] .hero-actions,
html[lang="it"] .hero-actions {
  margin-top: 22px;
}
html[lang="en"] .hero-note,
html[lang="it"] .hero-note {
  margin-top: 10px;
}
.site-footer .social-links {
  gap: 8px;
}
.site-footer .social-links a {
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border-radius: 50%;
}
.site-footer .social-links .social-icon {
  width: 19px;
  height: 19px;
}
@media (max-width: 1120px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { min-height: calc(100svh - 72px); }
  .hero-card { min-height: 250px; }
}
@media (max-width: 760px) {
  .hero { min-height: calc(100svh - 64px); }
  html[lang="en"] h1,
  html[lang="it"] h1 {
    font-size: clamp(29px, 8.8vw, 40px);
    line-height: 1.01;
  }
  html[lang="en"] .hero .lead,
  html[lang="it"] .hero .lead {
    font-size: 14.5px;
    line-height: 1.38;
  }
  html[lang="en"] .hero-actions,
  html[lang="it"] .hero-actions {
    margin-top: 14px;
  }
  .hero-actions .button-ghost span { display: none; }
  .hero-actions .button-ghost { flex: 0 0 46px; padding-inline: 0; }
  .hero-card { min-height: 142px; }
  .terminal-code { font-size: 9.2px; line-height: 1.34; }
  .terminal { inset: 12px; }
  .terminal-bar { height: 28px; }
  .dot { width: 8px; height: 8px; }
  .site-footer .social-links a { width: 42px; height: 42px; }
}
@media (max-width: 390px) {
  html[lang="en"] h1,
  html[lang="it"] h1,
  h1 { font-size: 28px; }
  .hero-card { min-height: 122px; }
  .terminal-code { font-size: 8.5px; }
}



/* v7 refinements: no fake logo colors, icon-only founder links, precise logo hover */
.founder-links .icon-link {
  width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  border-radius: 50%;
}
.founder-links .social-icon {
  width: 20px;
  height: 20px;
}
.cta-card .contact-links.icon-only-links {
  gap: 8px;
}
.cta-card .contact-links.icon-only-links .contact-pill {
  width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  border-radius: 50%;
}
.cta-card .contact-links.icon-only-links .social-icon {
  width: 20px;
  height: 20px;
}
.logo-tile {
  position: relative;
  overflow: hidden;
  filter: none;
}
.logo-tile img {
  transition: opacity .22s ease, transform .22s ease;
}
.logo-tile.no-color img,
.logo-tile.has-color .logo-bw {
  filter: grayscale(1) saturate(0) opacity(.68);
}
.logo-tile.has-color .logo-color {
  position: absolute;
  inset: 20px;
  width: calc(100% - 40px);
  height: calc(100% - 40px);
  object-fit: contain;
  opacity: 0;
  filter: none;
}
.logo-tile.has-color:hover .logo-bw,
.logo-tile.has-color:focus-within .logo-bw {
  opacity: 0;
}
.logo-tile.has-color:hover .logo-color,
.logo-tile.has-color:focus-within .logo-color {
  opacity: 1;
  transform: scale(1.025);
}
.logo-tile.no-color:hover img,
.logo-tile.no-color:focus-within img {
  transform: none;
}
.logo-tile.has-color:hover,
.logo-tile.has-color:focus-within,
.logo-tile.no-color:hover,
.logo-tile.no-color:focus-within {
  transform: translateY(-3px);
  box-shadow: 0 18px 45px rgba(0,42,36,.08);
  border-color: rgba(0,121,107,.24);
}
.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}
@media (max-width: 760px) {
  .cta-card .contact-links.icon-only-links .contact-pill,
  .founder-links .icon-link {
    width: 42px;
    height: 42px;
    min-height: 42px;
  }
  .logo-tile.has-color .logo-color {
    inset: 14px;
    width: calc(100% - 28px);
    height: calc(100% - 28px);
  }
}


/* v8 refinements: original client logos, stable mobile hero, anchor offset fixes */
html {
  scroll-padding-top: 92px;
}
[id] {
  scroll-margin-top: 96px;
}
.button {
  white-space: nowrap;
  text-align: center;
}
.hero-actions .button-primary,
.hero-actions .button-secondary,
.hero-actions .button-ghost {
  flex-shrink: 0;
}
.logo-tile,
.logo-tile:hover,
.logo-tile:focus-within,
.logo-tile.has-color:hover,
.logo-tile.no-color:hover,
.logo-tile.has-color:focus-within,
.logo-tile.no-color:focus-within {
  position: relative;
  overflow: hidden;
  filter: none !important;
  transform: none !important;
  box-shadow: none !important;
  border-color: var(--line) !important;
}
.logo-tile img,
.logo-tile:hover img,
.logo-tile:focus-within img,
.logo-tile.no-color img,
.logo-tile.has-color .logo-bw {
  filter: none !important;
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
.logo-tile .logo-color {
  display: none !important;
}
.terminal {
  display: flex;
  flex-direction: column;
}
.terminal-code {
  flex: 1 1 auto;
  overflow: hidden;
}

@media (max-width: 1120px) {
  html { scroll-padding-top: 86px; }
  [id] { scroll-margin-top: 90px; }
  .hero {
    min-height: auto;
    padding-top: 42px;
    padding-bottom: 44px;
  }
  .hero-card {
    min-height: 300px;
  }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 78px; }
  [id] { scroll-margin-top: 82px; }
  .site-header,
  .nav {
    min-height: 64px;
  }
  .nav-links {
    top: 72px;
  }
  .hero {
    min-height: auto;
    padding: 28px 0 34px;
    align-items: flex-start;
  }
  .hero-grid {
    gap: 22px;
  }
  .hero .eyebrow {
    font-size: 11px;
    line-height: 1.35;
    margin-bottom: 10px;
  }
  h1,
  html[lang="en"] h1,
  html[lang="it"] h1 {
    font-size: clamp(31px, 9.2vw, 41px);
    line-height: 1.03;
    letter-spacing: -.055em;
    margin-bottom: 14px;
  }
  .hero .lead,
  html[lang="en"] .hero .lead,
  html[lang="it"] .hero .lead {
    font-size: 15px;
    line-height: 1.44;
  }
  .hero-actions,
  html[lang="en"] .hero-actions,
  html[lang="it"] .hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 52px;
    gap: 10px;
    margin-top: 18px;
    align-items: stretch;
  }
  .hero-actions .button {
    width: 100%;
    min-height: 44px;
    padding: 0 13px;
    font-size: 13.5px;
    line-height: 1;
  }
  .hero-actions .button-primary {
    grid-column: 1 / -1;
    min-height: 46px;
    font-size: 14px;
  }
  .hero-actions .button-secondary {
    grid-column: 1 / 2;
  }
  .hero-actions .button-ghost {
    grid-column: 2 / 3;
    width: 52px;
    min-width: 52px;
    padding: 0;
  }
  .hero-actions .button-ghost span {
    display: none;
  }
  .hero-actions .button-ghost .social-icon {
    width: 19px;
    height: 19px;
  }
  .hero-note {
    display: none;
  }
  .hero-card {
    min-height: 228px;
    border-radius: 22px;
  }
  .terminal {
    inset: 16px;
    border-radius: 16px;
  }
  .terminal-bar {
    height: 30px;
    flex: 0 0 auto;
  }
  .terminal-code {
    font-size: 10.8px;
    line-height: 1.42;
    padding: 12px 14px;
    white-space: pre;
  }
  .dot {
    width: 8px;
    height: 8px;
  }
  .stats {
    display: none;
  }
  .trust-strip {
    padding-top: 4px;
  }
  .logo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .logo-tile {
    min-height: 88px;
    padding: 14px;
  }
  .logo-tile img {
    max-height: 58px;
  }
  .cta-card {
    gap: 18px;
  }
  .contact-form .button {
    white-space: nowrap;
  }
}

@media (max-width: 390px) {
  h1,
  html[lang="en"] h1,
  html[lang="it"] h1 {
    font-size: 29px;
  }
  .hero-actions .button-primary {
    font-size: 13.25px;
    padding-inline: 10px;
  }
  .hero-card {
    min-height: 212px;
  }
  .terminal-code {
    font-size: 10px;
  }
}


/* v9 refinements: all client logos remain grayscale, no hover recolor; exact anchor positioning */
:root {
  --anchor-offset: 76px;
}
html {
  scroll-padding-top: var(--anchor-offset) !important;
}
[id] {
  scroll-margin-top: var(--anchor-offset) !important;
}
.logo-tile,
.logo-tile:hover,
.logo-tile:focus-within,
.logo-tile.has-color:hover,
.logo-tile.no-color:hover,
.logo-tile.has-color:focus-within,
.logo-tile.no-color:focus-within {
  transform: none !important;
  box-shadow: none !important;
  border-color: var(--line) !important;
}
.logo-tile img,
.logo-tile:hover img,
.logo-tile:focus-within img,
.logo-tile.no-color img,
.logo-tile.has-color img,
.logo-tile.has-color .logo-bw,
.logo-tile.has-color:hover .logo-bw,
.logo-tile.has-color:focus-within .logo-bw {
  filter: grayscale(1) !important;
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
.logo-tile .logo-color,
.logo-tile.has-color .logo-color,
.logo-tile.has-color:hover .logo-color,
.logo-tile.has-color:focus-within .logo-color {
  display: none !important;
  opacity: 0 !important;
}

@media (max-width: 1120px) {
  :root { --anchor-offset: 64px; }
}
@media (max-width: 760px) {
  :root { --anchor-offset: 64px; }
}


/* v10 · Concept 2 brand implementation */
body { background: var(--bg); }
h1, h2, h3, .eyebrow, .button, .nav-links, .lang-switch, .footer-brand, .project small, .process-step::before, .service-icon {
  font-family: "Exo 2", "Rajdhani", ui-sans-serif, system-ui, sans-serif;
}
.site-header {
  background: rgba(237, 238, 238, .88);
  border-bottom-color: rgba(206, 211, 210, .88);
}
.brand {
  gap: 0;
  letter-spacing: 0;
}
.brand-mark,
.brand > span:not(.brand-mark) {
  display: none !important;
}
.brand-logo {
  display: block;
  width: 142px;
  height: auto;
}
.footer-logo {
  display: block;
  width: 128px;
  height: auto;
}
.brand-slogan {
  display: block;
  margin-top: 8px;
  color: var(--green);
  font-family: "Exo 2", "Rajdhani", ui-sans-serif, system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 11px;
}
.button-primary,
.whatsapp-float {
  background: linear-gradient(135deg, var(--green), var(--green-2), var(--green-accent));
  box-shadow: 0 16px 35px rgba(8, 70, 73, .24);
}
.button-secondary,
.button-ghost,
.icon-link,
.social-links a,
.contact-pill {
  color: var(--green);
}
.lang-switch a.is-active { background: var(--green); }
.hero::before {
  background: radial-gradient(circle, rgba(45,116,108,.26), transparent 62%);
}
.hero-card,
.ai-band {
  background:
    linear-gradient(135deg, rgba(8,70,73,.96), rgba(45,116,108,.90)),
    radial-gradient(circle at 90% 10%, rgba(94,149,115,.24), transparent 35%);
}
.terminal-code strong { color: #8cc5b1; }
.eyebrow,
.nav-links a:hover,
.nav-links a.active,
.project small,
.service-icon,
.process-step::before,
.role {
  color: var(--green);
}
.service-icon,
.process-step::before,
.role,
.nav-links a:hover {
  background-color: var(--green-soft);
}
.logo-tile,
.logo-tile:hover {
  filter: grayscale(1) saturate(0) opacity(.76);
  transform: none;
  box-shadow: none;
  border-color: var(--line);
}
.logo-tile img { filter: grayscale(1) saturate(0); }
.site-footer {
  background: rgba(237,238,238,.75);
}
@media (max-width: 760px) {
  .brand-logo { width: 118px; }
  .footer-logo { width: 116px; }
}

/* v13 · standardized professional anchor navigation */
:root {
  --sticky-header-height: 72px;
  --anchor-gap: 20px;
}
html {
  scroll-padding-top: calc(var(--sticky-header-height) + var(--anchor-gap)) !important;
}
[id] {
  scroll-margin-top: calc(var(--sticky-header-height) + var(--anchor-gap)) !important;
}
section {
  scroll-margin-top: calc(var(--sticky-header-height) + var(--anchor-gap)) !important;
}
@media (max-width: 760px) {
  :root { --anchor-gap: 14px; }
  .nav-links { top: calc(var(--sticky-header-height) + 8px) !important; }
}


/* v14 · section-specific polish
   - AI keeps a deliberate top breathing space when reached from the menu.
   - Mobile About removes the excessive gap between title and content.
   - Mobile AI reserves enough vertical space so Portfolio does not peek in EN/IT. */
@media (max-width: 760px) {
  #about .split {
    gap: 16px !important;
  }
  #about .section-head {
    margin-bottom: 0 !important;
  }
  #about .panel {
    padding-top: 22px;
  }
  #about .founders {
    margin-top: 22px;
  }

  #ai {
    min-height: calc(100svh - var(--sticky-header-height) + 118px);
    padding-bottom: 118px;
  }

  html[lang="en"] #ai,
  html[lang="it"] #ai {
    min-height: calc(100svh - var(--sticky-header-height) + 156px);
    padding-bottom: 150px;
  }
}

@media (min-width: 761px) {
  #ai {
    padding-top: 92px;
  }
}

/* Fix desktop hero terminal/stat overlap */
@media (min-width: 761px) {
  .hero-card {
    --hero-card-padding: 28px;
    --stats-height: 104px;
    --stats-gap: 24px;
    min-height: 440px;
  }

  .terminal {
    top: 34px !important;
    left: 28px !important;
    right: 28px !important;
    bottom: calc(var(--hero-card-padding) + var(--stats-height) + var(--stats-gap)) !important;
    inset: 34px 28px calc(var(--hero-card-padding) + var(--stats-height) + var(--stats-gap)) 28px !important;
  }

  .stats {
    left: 28px !important;
    right: 28px !important;
    bottom: var(--hero-card-padding) !important;
  }

  .stat {
    min-height: var(--stats-height);
  }
}
