/* =========================================================
   ISATECH – TECH CLEAN THEME
   Palette: white / grey / #019DDF
   ========================================================= */

/* ---------- RESET / BASE ---------- */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

/* ---------- VARIABLES ---------- */
:root {
  --bg: #f4f6f8;
  --bg-soft: #ffffff;
  --bg-alt: #eef1f4;
  --footer-bg: #0f1419;

  --text: #111827;
  --muted: #4b5563;   /* più scuro, WCAG safe */
  --line: #d7dde3;

  --accent: #0176B8;
  --accent-dark: #015f94;
  --accent-soft: rgba(1,118,184,0.14); /* stesso colore, soft */

  --radius: 16px;
  --radius-pill: 999px;

  --shadow-sm: 0 6px 18px rgba(16, 24, 40, 0.06);
  --shadow-md: 0 10px 28px rgba(16, 24, 40, 0.10);
}

/* ---------- TYPOGRAPHY ---------- */
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 12px 0;
  letter-spacing: 0.2px;
}

h1 {
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 400;
  line-height: 1;
  /* Più compatto */
  letter-spacing: 0.1px;
  /* Più preciso, meno "espanso" */
  margin-bottom: 10px;
  /* Più stretto */
}

h2 {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 400;
  color: #1f2937;     /* invece di #444 */
  line-height: 1;
}

.sottotitolo {
  font-style: italic;
}

h3 {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 500;
}

p {
  margin: 0 0 12px;
}

.lead {
  font-size: clamp(16px, 1.5vw, 19px);
  color: #1f2937;
  text-align: justify;

}

.muted {
  color: var(--muted);
}

/* ---------- LAYOUT HELPERS ---------- */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 18px;
}

.section {
  padding: 60px 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}


/* =========================================================
   BUTTONS (MAIN)
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  padding: 11px 16px;
  border-radius: 12px;
  text-decoration: none;
  transition: all .18s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.btn-ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  padding: 50px 0 50px;
  position:relative;
}

.hero-image img {
  max-width: 480px;
  /* 🔑 riduce impatto visivo */
  width: 100%;
  height: auto;
  margin-left: auto;
  border-radius: 14px;
  filter: grayscale(100%) contrast(0.95) brightness(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.hero-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.hero-card-grid h3 {
  margin-bottom: 10px;
}

.hero-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.hero-card-title {
  font-weight: 800;
  margin-bottom: 8px;
}

.hero-cta {
  display: flex;
  gap: 10px;
  margin: 14px 0 10px;
  flex-wrap: wrap;
}

.trust-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.badge {
  font-size: 13px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1px solid var(--line);
}

/* =========================================================
   CHECKLIST
   ========================================================= */
.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.checklist li {
  position: relative;
  padding-left: 26px;
  margin: 8px 0;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================================================
   CARDS / SERVIZI
   ========================================================= */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 14px;
}

.card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  transition: .2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(1,118,184, 0.45);
}

.link {
  display: inline-block;
  margin-top: 8px;
  font-weight: 800;
  color: var(--accent-dark);
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
}

/* =========================================================
   PAGINE SERVIZI – coerenti con pag_style.css
   (white/grey/#019DDF)
   ========================================================= */

/* wrapper pagina */
.page-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 18px;
  color: var(--text);
}

/* HERO pagina */
.page-hero {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 28px 22px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

/* layout interno hero con immagine a sinistra */
.page-hero .hero-wrapper {
  display: flex;
  align-items: center;
  gap: 28px;
}

.hero-with-image {
  display: grid;
  grid-template-columns: 0.30fr 1fr;
  /* circa 1/4 immagine */
  gap: 26px;
  position: relative;
  z-index: 1;
}

.hero-img-box img{
  width:100%;
  height:auto;
  max-height:220px;
  object-fit:cover;
}


.hero-img-box {
  margin-left: 6px;
  /* stacca tutto il box dalla barra */
}


/* barra accent laterale come nel tuo stile */
.page-hero::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: var(--accent);
}

.page-hero h1 {
  font-size: 2rem;
  margin: 0 0 6px 0;
  letter-spacing: .3px;
}

.page-hero p {
  margin-left: 8px;
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--muted);
  max-width: 820px;
}

/* sezioni contenuto */
.page-section {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: var(--shadow-sm);
  margin: 18px 0;
}

.page-section.alt {
  background: var(--bg-alt);
}


.page-section p {
  color: #1f2937;
  margin-top: 6px;
}

.section h2 {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-icon {
  font-size: 28px;
  color: #019ddf;
  /* colore principale del tuo brand */
  opacity: 0.9;
}


/* bullet list stile tecnico pulito */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 6px;
}

.feature-list li {
  position: relative;
  padding-left: 26px;
  margin: 8px 0;
  color: var(--text);
  font-size: 1.02rem;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* box nota */
.note-box {
  margin-top: 14px;
  background: #fff;
  border: 1px dashed var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--muted);
  font-size: 1.02rem;
}

/* CTA finale */
.page-cta {
  margin-top: 28px;
  padding: 38px 22px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.page-cta h2 {
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 800;
  margin-bottom: 8px;
}

.page-cta p {
  color: var(--muted);
  font-size: clamp(15px, 1.3vw, 18px);
  margin-bottom: 14px;
}

/* riuso del tuo bottone */
.page-cta .btn-primary {
  padding: 12px 18px;
  border-radius: 12px;
}

/* =========================================================
   WHY GRID + STATS
   ========================================================= */
.why-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: start;
}

.stats {
  display: grid;
  gap: 12px;
}

.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stat-num {
  font-size: 28px;
  font-weight: 900;
  color: var(--accent-dark);
}

.stat-label {
  font-size: 14px;
  color: var(--muted);
  font-weight: 700;
}

/* =========================================================
   STEPS
   ========================================================= */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 10px;
}

.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  font-weight: 800;
  display: flex;
  gap: 10px;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.step span {
  width: 28px;
  height: 28px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* =========================================================
   CTA SECTION
   ========================================================= */
.section-cta .cta-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
  align-items: center;
}

.cta-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.cta-box-title {
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 4px;
}

/* ===========================
   CONTATTI
   =========================== */
/* HEADER icona + titolo affiancati */
.contact-header{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:10px;
}

/* Riduci spazio verticale */
.contact-card{
  padding:16px 18px;   /* prima era 20px */
}

.contact-card p{
  font-size:0.95rem;
  margin-bottom:14px;  /* meno spazio */
}

/* Riduci margine sotto icona */
.contact-icon{
  margin-bottom:0;     /* elimina spazio inutile */
}

/* Titolo più compatto */
.contact-card h3{
  margin:0;
  font-size:1.1rem;
}
.contact-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:18px;
  align-items:stretch;
  margin-top:14px;
}

.contact-card .btn{
  margin-top:auto;   /* 🔑 allinea tutti i bottoni */
  align-self:flex-start;
}

.contact-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding:20px;
  box-shadow: var(--shadow-sm);

  display:flex;              /* 🔑 */
  flex-direction:column;     /* 🔑 */
}


.contact-card.highlight{
  border-color: var(--accent);
  box-shadow: 0 10px 26px rgba(1,118,184,0.18);
}

.contact-icon.whatsapp{
  background:#e6f7f0;
  color:#1ea97c;
}
.btn-email{
  background: #0095ff;          /* blu coerente con icona email */
  color: #fff;
  border: 1px solid #0095ff;
  box-shadow: 0 6px 16px rgba(0,149,255,0.25);
}

.btn-email:hover{
  background: #007ed6;
  border-color: #007ed6;
}

.contact-icon.email{
  background:#eef3f7;
  color:#017fb5;
}

/* FORM */
.contact-form{
  max-width:800px;
}

.form-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
  margin-bottom:12px;
}

.contact-form input,
.contact-form textarea{
  width:100%;
  padding:12px 14px;
  border-radius:12px;
  border:1px solid var(--line);
  font-size:15px;
  font-family:inherit;
}

.contact-form input:focus,
.contact-form textarea:focus{
  outline:none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* ===========================
   CONTATTI – BRANDING
   =========================== */

/* WhatsApp box */
.wa-box{
  background:#e9f7f1;
  border-color:#1ea97c;
}

.wa-app{
  width:48px;
  height:48px;
  border-radius:14px;
  overflow:hidden;

  display:flex;
  align-items:center;
  justify-content:center;
}

.wa-app img{
  width:100%;
  height:100%;
  object-fit:cover;
}

/* BLOG */
.blog-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:16px;
  margin-top:14px;
}

.blog-card{
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  position: relative;
  transition: .2s ease;
}
.blog-card::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:4px;
  background: var(--accent);
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}

.blog-card:hover{
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(1,118,184, 0.45);
}
.blog-card-title{
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.15;
  margin: 6px 0 12px 0;
}

.blog-card-title a{
  text-decoration: none;
  color: var(--text);
}

.blog-card-title a:hover{
  color: var(--accent-dark);
}

/* Bottone WhatsApp - WCAG SAFE */
.btn-wa{
  background:#126334;
  color:#ffffff !important;

  border:1px solid #126334;   /* STESSO colore del background */
  box-shadow:none;            /* niente ombre colorate */

  opacity:1 !important;
}


.btn-wa:hover{
  background: #0E4F29;
  transform: translateY(-1px);

}

/* Email box */
.mail-box{
  background:#eef6fb;
  border-color:#019DDF;
}

.mail-icon{
  background:#019DDF;
  color:#fff;
}

.contact-icon{
  width:44px;
  height:44px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:22px;
  margin-bottom:10px;
}

.popup-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.popup-box{
  background: #fff;
  padding: 28px 26px;
  border-radius: 18px;
  max-width: 420px;
  width: calc(100% - 32px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  text-align: center;
}

.popup-box h3{
  margin-bottom: 10px;
  font-size: 1.4rem;
}

.popup-box p{
  margin-bottom: 22px;
  line-height: 1.6;
}



/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 480px) {

  .blog-grid{ grid-template-columns: 1fr; }
	

  .hero-grid,
  .why-grid,
  .section-cta .cta-grid {
    grid-template-columns: 1fr;
  }

  .cards-3{
    grid-template-columns: 1fr;   /* 🔑 una colonna sola */
  }

  /* opzionale: enfatizza il primo settore */
  .cards-3 .card:first-child{
    border-color: var(--accent);
    box-shadow: 0 10px 26px rgba(1,118,184,0.18);
  }

  .steps {
    grid-template-columns: 1fr 1fr;
  }

  /* HERO con immagine */
  .hero-with-image {
    grid-template-columns: 1fr;   /* 🔑 una colonna */
    gap: 18px;
  }

  .hero-img-box {
    margin-left: 0;               /* niente offset laterale */
  }

  .hero-img-box img {
    width: 100%;
    max-height: none;             /* evita schiacciamenti */
    height: auto;
  }
 .hero-card-grid{
    grid-template-columns: 1fr;   /* 🔑 una sola colonna */
    gap: 26px;
  }

  /* migliora leggibilità blocchi */
  .hero-card-grid > div{
    padding-top: 6px;
  }

  /* titoli più leggibili su mobile */
  .hero-card-grid h3{
    font-size: 18px;
    margin-bottom: 14px;
  }

  /* lista più ariosa */
  .hero-card-grid .checklist li{
    margin-bottom: 10px;
    line-height: 1.45;
  }
 
  .hero-with-image{
    grid-template-columns:1fr;
  }
}\
