/* =========================
   IntervenGO Landing
   Palette:
   - Primario: #384254 (moderazione)
   - Secondario/CTA: #F28D00
   ========================= */

:root{
  --bg: #ffffff;
  --text: #111827;
  --muted: #4b5563;
  --muted-2: #6b7280;

  --app: #384254;
  --accent: #F28D00;

  --card: #ffffff;
  --border: rgba(17, 24, 39, 0.10);
  --shadow: 0 10px 30px rgba(17, 24, 39, 0.08);

  --radius: 18px;
  --radius-lg: 24px;

  --container: 1120px;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }

.container{
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

/* Accessibility */
.skip-link{
  position: absolute;
  left: -999px;
  top: 8px;
  background: #000;
  color: #fff;
  padding: 10px 12px;
  border-radius: 10px;
  z-index: 999;
}
.skip-link:focus{ left: 12px; }

.sr-only{
  position:absolute;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0);
  white-space:nowrap; border:0;
}

/* Header */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand{ display: inline-flex; align-items: center; gap: 12px; }
.brand-logo{ height: 34px; width: auto; }

.nav-menu{
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-link{
  font-weight: 600;
  font-size: 14px;
  color: rgba(17,24,39,0.82);
  padding: 10px 10px;
  border-radius: 12px;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}
.nav-link:hover{
  background: rgba(56, 66, 84, 0.06);
  color: rgba(17,24,39,0.95);
  transform: translateY(-1px);
}

.nav-cta{
  background: rgba(242, 141, 0, 0.12);
  color: #7a3f00;
  border: 1px solid rgba(242, 141, 0, 0.25);
}
.nav-cta:hover{
  background: rgba(242, 141, 0, 0.18);
}

/* Mobile nav */
.nav-toggle{
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.06);
}
.burger{
  display: block;
  width: 18px;
  height: 2px;
  background: var(--app);
  position: relative;
  margin: 0 auto;
}
.burger::before,
.burger::after{
  content:"";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--app);
  transition: transform .2s ease, top .2s ease, opacity .2s ease;
}
.burger::before{ top: -6px; }
.burger::after{ top: 6px; }

/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.btn:active{ transform: translateY(0); }

.btn-primary{
  background: var(--accent);
  color: #1f2937;
  box-shadow: 0 12px 24px rgba(242, 141, 0, 0.25);
}
.btn-primary:hover{
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(242, 141, 0, 0.32);
}

.btn-ghost{
  background: #fff;
  border-color: rgba(56, 66, 84, 0.18);
  color: rgba(17,24,39,0.90);
}
.btn-ghost:hover{
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(17,24,39,0.08);
}

.btn-lg{
  padding: 14px 18px;
  border-radius: 16px;
  font-size: 15px;
}

/* Hero */
.hero{
  padding: 64px 0 36px;
  background:
    radial-gradient(900px 420px at 12% 0%, rgba(242,141,0,0.14), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(56,66,84,0.10), transparent 55%),
    linear-gradient(180deg, #ffffff, #fbfbfc);
}

.hero-grid{
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
}

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: rgba(56, 66, 84, 0.92);
  background: rgba(56, 66, 84, 0.06);
  border: 1px solid rgba(56, 66, 84, 0.12);
  padding: 8px 12px;
  border-radius: 999px;
  width: fit-content;
}

.hero-title{
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.1;
  margin: 14px 0 12px;
  letter-spacing: -0.02em;
}
.accent{ color: var(--accent); }

.hero-subtitle{
  margin: 0 0 18px;
  color: rgba(17,24,39,0.78);
  font-size: 16px;
  max-width: 58ch;
}

.hero-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 14px;
}

.trust-row{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.trust-pill{
  font-size: 13px;
  font-weight: 650;
  color: rgba(17,24,39,0.80);
  background: rgba(17,24,39,0.04);
  border: 1px solid rgba(17,24,39,0.08);
  padding: 8px 10px;
  border-radius: 999px;
}

.hero-card {
  margin: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
}

.hero-image{
  width: 100%;
  height: auto;
}

.hero-badges{
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.badge{
  font-size: 12px;
  font-weight: 750;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(56, 66, 84, 0.14);
  background: rgba(56, 66, 84, 0.05);
  color: rgba(56, 66, 84, 0.95);
}

/* Sections */
.section{
  padding: 68px 0;
}
.section-alt{
  background: linear-gradient(180deg, #fbfbfc, #ffffff);
  border-top: 1px solid rgba(17,24,39,0.06);
  border-bottom: 1px solid rgba(17,24,39,0.06);
}

.section-head{
  margin-bottom: 22px;
  max-width: 74ch;
}
.section-head h2{
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.02em;
}
.section-head p{
  margin: 0;
  color: rgba(17,24,39,0.70);
}

/* Cards */
.grid-2{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 22px rgba(17,24,39,0.06);
  padding: 20px;
}
.card h3{ margin: 0 0 10px; font-size: 18px; }
.card p{ margin: 0 0 14px; color: rgba(17,24,39,0.74); }

.checklist{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.checklist li{
  position: relative;
  padding-left: 30px;
  color: rgba(17,24,39,0.80);
  font-weight: 600;
}
.checklist li::before{
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(242,141,0,0.14);
  border: 1px solid rgba(242,141,0,0.26);
  color: rgba(122,63,0,0.95);
}

/* Benefits */
.benefits{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.benefit{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 10px 22px rgba(17,24,39,0.05);
  transition: transform .18s ease, box-shadow .18s ease;
}
.benefit:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(17,24,39,0.08);
}
.icon{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(56,66,84,0.06);
  border: 1px solid rgba(56,66,84,0.12);
  margin-bottom: 10px;
  font-size: 18px;
}
.benefit h3{ margin: 0 0 8px; font-size: 16px; }
.benefit p{ margin: 0; color: rgba(17,24,39,0.72); }

/* Features */
.feature-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.feature-card{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 10px 22px rgba(17,24,39,0.05);
}
.feature-top{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.feature-icon{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(242,141,0,0.14);
  border: 1px solid rgba(242,141,0,0.26);
  font-size: 18px;
}
.feature-card h3{ margin: 0; font-size: 18px; }

.feature-list{
  margin: 0;
  padding-left: 18px;
  color: rgba(17,24,39,0.78);
}
.feature-list li{ margin: 7px 0; }

/* Stats */
.stats-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat-card{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 10px 22px rgba(17,24,39,0.05);
}
.stat-kpi{
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(242,141,0,0.14);
  border: 1px solid rgba(242,141,0,0.26);
  font-weight: 900;
  margin-bottom: 10px;
}
.stat-card h3{ margin: 0 0 8px; font-size: 16px; }
.stat-card p{ margin: 0; color: rgba(17,24,39,0.72); }

/* CTA */
.cta{
  padding: 70px 0;
  background:
    radial-gradient(900px 420px at 10% 10%, rgba(242,141,0,0.16), transparent 60%),
    linear-gradient(180deg, #ffffff, #fbfbfc);
}
.cta-inner{
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
  align-items: center;
  border: 1px solid rgba(56,66,84,0.10);
  border-radius: var(--radius-lg);
  padding: 22px;
  background: rgba(255,255,255,0.9);
  box-shadow: var(--shadow);
}
.cta-copy h2{
  margin: 0 0 8px;
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: -0.02em;
}
.cta-copy p{
  margin: 0;
  color: rgba(17,24,39,0.74);
}
.cta-actions{
  display: grid;
  justify-items: center;
  gap: 12px;
}
.cta-note{
  margin: 0;
  font-size: 13px;
  color: rgba(17,24,39,0.70);
}

/* Footer */
.footer{
  border-top: 1px solid rgba(17,24,39,0.08);
  padding: 26px 0;
  background: #fff;
}
.footer-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-brand{
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-logo{
  height: 34px;
  width: auto;
}
.footer-title{ font-weight: 800; }
.footer-subtitle{ color: rgba(17,24,39,0.64); font-size: 13px; }
.footer-meta{ color: rgba(17,24,39,0.62); font-size: 13px; }

/* Reveal animation */
.reveal{
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .cta-inner{ grid-template-columns: 1fr; }
  .benefits{ grid-template-columns: repeat(2, 1fr); }
  .stats-grid{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px){
  .nav-toggle{ display: inline-grid; place-items: center; }
  .nav-menu{
    position: absolute;
    right: 20px;
    top: 64px;
    background: rgba(255,255,255,0.98);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 18px 40px rgba(17,24,39,0.12);
    display: none;
    flex-direction: column;
    align-items: stretch;
    min-width: 220px;
  }
  .nav-menu.is-open{ display: flex; }
  .nav-link{ padding: 10px 12px; }

  .grid-2{ grid-template-columns: 1fr; }
  .feature-grid{ grid-template-columns: 1fr; }
  .benefits{ grid-template-columns: 1fr; }
  .stats-grid{ grid-template-columns: 1fr; }

  .hero{ padding-top: 52px; }
}

@media (prefers-reduced-motion: reduce){
  .reveal{ transition: none; transform: none; }
  .btn, .nav-link, .benefit{ transition: none; }
}

/* =========================
   HERO CAROUSEL (screens)
   ========================= */

.hero-carousel {
  position: relative;
  width: 100%;
  height: auto;
}

.hero-carousel {
  max-height: 520px; /* limita l'altezza complessiva */
  overflow: hidden;
}

.hero-carousel .hero-image {
  display: none;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
}

.hero-carousel .hero-image.is-active {
  display: block;
  animation: fadeInHero 0.9s ease;
}

@keyframes fadeInHero {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px 0 6px;
}

.carousel-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(56, 66, 84, 0.25);
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.carousel-dots .dot:hover {
  transform: scale(1.2);
}

.carousel-dots .dot.is-active {
  background: var(--accent);
}

/* =========================
   SCHERMATE APP
   ========================= */

.screens-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.screen-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: 0 12px 26px rgba(17, 24, 39, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.screen-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(17, 24, 39, 0.10);
}

.screen-card img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  margin-bottom: 12px;
}

.screen-card figcaption {
  font-size: 14px;
  line-height: 1.45;
  color: rgba(17, 24, 39, 0.75);
}

.screen-card figcaption strong {
  display: block;
  color: rgba(17, 24, 39, 0.92);
  margin-bottom: 4px;
}

/* =========================
   RESPONSIVE SCHERMATE
   ========================= */

@media (max-width: 980px) {
  .screens-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .screens-grid {
    grid-template-columns: 1fr;
  }

  .carousel-dots {
    padding-top: 10px;
  }
}