/* HRevo – Mobile-app feel (smartphone-first) */
:root{
  --bg: #f6f7fb;
  --text: #0b1220;
  --muted: #667085;
  --line: #e8ebf2;
  --pill-bg: #eef1f6;
  --pill-stroke: #d7dce7;
  --pill-text: #6b7280;
  --blue: #2f66ff;

  --card-bg: #ffffff;
  --card-stroke: #edf0f6;
  --card-shadow: 0 10px 22px rgba(11,18,32,.06);

  --shadow-strong: 0 18px 40px rgba(0,0,0,.22);

  /* “App-like” sizes */
  --r-lg: 18px;
  --r-md: 14px;

  --fs-brand: 28px;
  --fs-h1: clamp(40px, 9vw, 56px);
  --fs-lead: clamp(16px, 3.8vw, 19px);

  --fs-h2: clamp(28px, 6.8vw, 38px);
  --fs-body: 16px;

  --fs-card-title: 20px;
  --fs-card-text: 16px;

  --btn-h: 56px;
  --btn-fs: 17px;
}

*{ box-sizing: border-box; }
html,body{ height: 100%; }
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container: app-like width */
.container{
  width: min(860px, 100%);
  padding: 0 18px;
  margin: 0 auto;
}

/* HEADER */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246,247,251,.90);
  backdrop-filter: blur(10px);
}
.header-row{
  height: 64px;
  display:flex;
  align-items:center;
  justify-content: space-between;
}
.brand{
  font-weight: 900;
  font-size: var(--fs-brand);
  letter-spacing: -0.03em;
}
.hairline{ height: 1px; background: var(--line); }

.hamburger{
  width: 44px; height: 44px;
  border: 1px solid rgba(11,18,32,.08);
  background: rgba(255,255,255,.6);
  border-radius: 14px;
  display:flex;
  flex-direction: column;
  align-items:center;
  justify-content:center;
  gap: 5px;
}
.hamburger span{
  display:block;
  width: 18px;
  height: 2px;
  background: #0b1220;
  border-radius: 99px;
}

/* MENU – compact drawer (mobile-app) */
.menu-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(11,18,32,.30);
  backdrop-filter: blur(6px);
  z-index: 60;
  opacity: 0;
  transition: opacity .18s ease;
}
.menu-backdrop.open{ opacity: 1; }

.menu-panel{
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(320px, 88vw);
  background: rgba(246,247,251,.96);
  border-left: 1px solid var(--line);
  z-index: 70;
  box-shadow: var(--shadow-strong);
  transform: translateX(12px);
  opacity: 0;
  transition: transform .18s ease, opacity .18s ease;
  padding-bottom: env(safe-area-inset-bottom);
}
.menu-panel.open{
  transform: translateX(0);
  opacity: 1;
}
.menu-top{
  height: 64px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}
.menu-close{
  width: 44px; height: 44px;
  border: 1px solid rgba(11,18,32,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.65);
  font-size: 24px;
  line-height: 1;
  color: #0b1220;
}
.menu-nav{
  padding: 16px;
  display:grid;
  gap: 10px;
}
.menu-link{
  text-decoration:none;
  color: #0b1220;
  font-weight: 800;
  font-size: 18px;
  padding: 12px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(11,18,32,.06);
}
.menu-cta{
  margin-top: 6px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  height: 52px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
  font-size: 16px;
}

/* HERO */
.hero{ padding: 18px 0 8px; }
.pill{
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  background: var(--pill-bg);
  border: 1px solid var(--pill-stroke);
  border-radius: 999px;
  padding: 10px 14px;
  text-align:center;
}
.pill span{
  display:inline-block;
  font-weight: 800;
  letter-spacing: .18em;
  font-size: 12px;
  color: var(--pill-text);
}

.hero-title{
  margin: 22px 0 0;
  line-height: 0.98;
  letter-spacing: -0.05em;
}
.hero-t1,.hero-t2{
  display:block;
  font-weight: 950;
  font-size: var(--fs-h1);
}
.hero-t2{ color: var(--blue); margin-top: 8px; }

.hero-lead{
  margin: 14px 0 0;
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--muted);
}

.hero-cta{
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.btn{
  width:100%;
  height: var(--btn-h);
  border-radius: 16px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  font-weight: 900;
  font-size: var(--btn-fs);
}
.btn-dark{
  color:#fff;
  background: linear-gradient(180deg, #0f1a33 0%, #0b1220 100%);
  box-shadow: 0 12px 24px rgba(11,18,32,.14);
  border: 1px solid rgba(255,255,255,.08);
}
.btn-outline{
  color:#0b1220;
  background:#fff;
  border: 2px solid #0b1220;
  box-shadow: 0 8px 18px rgba(11,18,32,.08);
}

/* SECTIONS */
.section{ padding: 34px 0 6px; }
.section-title{
  margin: 0;
  font-weight: 950;
  font-size: var(--fs-h2);
  letter-spacing: -0.04em;
  line-height: 1.12;
}
.section-text{
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}

/* SERVICES */
.services-head{
  display:flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}
.services-accent{
  width: 5px;
  height: 44px;
  border-radius: 99px;
  background: var(--blue);
}
.services-title{
  margin: 0;
  font-weight: 950;
  font-size: clamp(24px, 6vw, 34px);
  letter-spacing: -0.04em;
}
.services-sub{
  margin-top: 6px;
  font-weight: 800;
  letter-spacing: .16em;
  font-size: 11px;
  color: #7a8496;
}

.cards{
  display:grid;
  gap: 14px;
}
.card{
  background: var(--card-bg);
  border: 1px solid var(--card-stroke);
  border-radius: var(--r-lg);
  padding: 16px;
  box-shadow: var(--card-shadow);
}
.icon{
  width: 34px; height: 34px;
  color: var(--blue);
}
.icon svg{ width: 100%; height: 100%; }

.card h3{
  margin: 10px 0 0;
  font-size: var(--fs-card-title);
  font-weight: 950;
  letter-spacing: -0.03em;
}
.divider{
  height: 1px;
  background: #eef1f6;
  margin: 10px 0 10px;
}
.card p{
  margin: 0;
  font-size: var(--fs-card-text);
  line-height: 1.65;
  color: var(--muted);
}

/* CONTACT */
.contact{
  margin-top: 18px;
  padding: 34px 0 40px;
  background: radial-gradient(1000px 420px at 30% 0%, #14244b 0%, #0b1220 58%);
  color: #fff;
}
.contact-title{
  margin: 0;
  font-size: clamp(30px, 7vw, 44px);
  font-weight: 950;
  letter-spacing: -0.05em;
  line-height: 1.12;
}
.contact-text{
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255,255,255,.72);
  max-width: 820px;
}
.contact-cards{
  margin-top: 16px;
  display:grid;
  gap: 12px;
}
.contact-card{
  border-radius: var(--r-lg);
  padding: 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 18px 38px rgba(0,0,0,.28);
}
.contact-k{
  font-weight: 900;
  letter-spacing: .18em;
  font-size: 11px;
  color: rgba(47,102,255,.95);
  margin-bottom: 8px;
}
.contact-v{
  font-weight: 950;
  font-size: clamp(18px, 5vw, 26px);
  letter-spacing: -0.02em;
}

/* FOOTER */
.footer{
  background: #fff;
  padding: 26px 0 30px;
}
.footer-inner{ text-align:center; }
.footer-brand{
  font-weight: 950;
  font-size: 26px;
  letter-spacing: -0.03em;
  color: #0b1220;
}
.footer-copy{
  margin-top: 10px;
  font-weight: 900;
  letter-spacing: .14em;
  font-size: 11px;
  color: #9aa3b2;
}

/* Desktop: 2 colonne per servizi */
@media (min-width: 900px){
  .cards{ grid-template-columns: 1fr 1fr; }
}
