/* =========================================================
   BIMATEK – CSS BASE CHIARA
   Coerente con brand manual
   ========================================================= */

/* ---------- Variabili di brand ---------- */
:root{
  /* Base */
  --bg:#f6f7f5;
  --surface:#ffffff;
  --card:#ffffff;

  /* Testi */
  --text:#1f2933;
  --muted:#5f6b76;

  /* Linee */
  --line:#e2e6e1;

  /* Brand */
  --brand-primary:#9b4a3d;   /* SOLO LOGO */
  --brand-black:#333333;

  /* Accenti consentiti */
  --accent:#6fb08a;
  --accent-soft:#e8efe6;

  /* UI */
  --shadow:0 10px 24px rgba(0,0,0,.08);
  --radius:14px;
  --radiusSm:10px;
  --max:1120px;
}

/* ---------- Reset ---------- */
*{box-sizing:border-box;}
html,body{margin:0;padding:0;}
body{
  font-family:Arial, Helvetica, sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.5;
}
a{color:inherit;text-decoration:none;}
img{max-width:100%;display:block;}

/* ---------- Layout ---------- */
.container{
  max-width:var(--max);
  margin:0 auto;
  padding:0 20px;
}

main{padding:40px 0;}
section{padding:40px 0;}

/* ---------- Header ---------- */
header{
  background:var(--surface);
  border-bottom:1px solid var(--line);
  position:sticky;
  top:0;
  z-index:100;
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
}

.logo{
  height:38px;
  width:auto;
}

.brand strong{
  font-size:14px;
  letter-spacing:.2px;
}

.brand span{
  font-size:12px;
  color:var(--muted);
}

/* ---------- Menu ---------- */
nav ul{
  list-style:none;
  display:flex;
  gap:14px;
  margin:0;
  padding:0;
}

nav a{
  font-size:13px;
  color:var(--muted);
  padding:8px 10px;
  border-radius:var(--radiusSm);
}

nav a:hover,
nav a.active{
  color:var(--text);
  background:var(--accent-soft);
}

/* ---------- Bottoni ---------- */
.btn{
  display:inline-block;
  padding:12px 16px;
  border-radius:var(--radiusSm);
  font-size:13px;
  font-weight:700;
  border:1px solid var(--line);
  background:var(--surface);
  cursor:pointer;
}

.btn:hover{
  background:var(--accent-soft);
}

.btn.primary{
  background:var(--accent);
  border-color:var(--accent);
  color:#ffffff;
}

.btn.primary:hover{
  opacity:.9;
}

/* ---------- Hero ---------- */
.hero-grid{
  display:grid;
  grid-template-columns:1.4fr .6fr;
  gap:30px;
}

.panel{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:28px;
  box-shadow:var(--shadow);
}

.kicker{
  font-size:12px;
  color:var(--muted);
  margin-bottom:10px;
}

h1{
  font-size:30px;
  line-height:1.2;
  margin:0 0 14px;
}

.lead{
  font-size:15px;
  color:var(--muted);
  margin-bottom:16px;
}

.proof{
  background:var(--accent-soft);
  border-left:4px solid var(--accent);
  padding:14px;
  border-radius:var(--radiusSm);
  font-size:13px;
  margin-bottom:18px;
}

.cta-row{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.microcopy{
  margin-top:10px;
  font-size:12px;
  color:var(--muted);
}

/* ---------- Numeri ---------- */
.numbers .title{
  font-weight:700;
  margin-bottom:10px;
}

.stat{
  padding:12px 0;
  border-bottom:1px solid var(--line);
}

.stat:last-child{border-bottom:none;}

.stat strong{
  display:block;
  font-size:16px;
}

.stat span{
  font-size:12px;
  color:var(--muted);
}

/* ---------- Card servizi ---------- */
.grid-3{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
}

.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:22px;
  box-shadow:var(--shadow);
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}

.card h3{
  font-size:16px;
  margin:0 0 10px;
}

.card p{
  font-size:13px;
  color:var(--muted);
}

.link{
  margin-top:14px;
  font-size:13px;
  font-weight:700;
  color:var(--accent);
}

/* ---------- Sezioni testo ---------- */
.section-title{
  font-size:22px;
  margin-bottom:10px;
}

.section-sub{
  font-size:14px;
  color:var(--muted);
  max-width:700px;
}

/* ---------- Why ---------- */
.why{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:30px;
  box-shadow:var(--shadow);
}

.why-grid{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:30px;
}

.claim{
  background:var(--accent-soft);
  border-left:4px solid var(--accent);
  padding:20px;
  font-size:18px;
  font-weight:700;
}

/* ---------- Footer ---------- */
footer{
  border-top:1px solid var(--line);
  background:var(--surface);
  padding:30px 0;
  margin-top:40px;
}

.footer-grid{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:20px;
}

.foot small{
  display:block;
  font-size:12px;
  color:var(--muted);
  line-height:1.6;
}

.foot-links{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.pill{
  font-size:12px;
  padding:8px 10px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--surface);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px){
  .hero-grid,
  .why-grid,
  .grid-3,
  .footer-grid{
    grid-template-columns:1fr;
  }

  nav ul{display:none;}
}
.hero-media{
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  background:var(--surface);
  margin-bottom:16px;
}

.hero-media img{
  width:100%;
  height:220px;
  object-fit:cover;
  display:block;
}
.site-footer {
  border-top: 1px solid rgba(0,0,0,0.08);
  background: #ffffff;
  padding: 32px 0;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.footer-brand strong {
  display: block;
  font-size: 15px;
}

.footer-brand span {
  display: block;
  font-size: 14px;
  opacity: 0.85;
}

.footer-brand p {
  margin: 10px 0;
  font-size: 14px;
  opacity: 0.85;
}

.footer-brand small {
  font-size: 13px;
  opacity: 0.7;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  color: inherit;
  text-decoration: none;
  opacity: 0.85;
}

.footer-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-social {
  display: flex;
  justify-content: flex-start;
}

.linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  text-decoration: none;
  color: #0a66c2;
  font-weight: 600;
}

.linkedin-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.linkedin-link:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
.footer-social {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.footer-logo img {
  max-width: 140px;
  height: auto;
  opacity: 0.9;
}

.footer-logo img:hover {
  opacity: 1;
}

@media (max-width: 900px) {
  .footer-social {
    align-items: center;
  }

  .footer-logo img {
    max-width: 120px;
  }
}
/* ===== Mobile hamburger menu ===== */

.nav-toggle {
  display: none;
  font-size: 26px;
  background: none;
  border: none;
  cursor: pointer;
  color: #111;
}

.main-nav {
  position: relative;
}

/* Desktop */
.nav-menu {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Mobile */
@media (max-width: 900px) {

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: #ffffff;
    border-top: 1px solid rgba(0,0,0,0.1);
    flex-direction: column;
    display: none;
    padding: 14px 0;
    z-index: 1000;
  }

  .nav-menu li {
    padding: 10px 20px;
  }

  .nav-menu li a {
    display: block;
    width: 100%;
  }

  .nav-menu.open {
    display: flex;
  }
}