/* SmartRig – home page. Caricato solo da public/index.php ($extraCss). */

.sr-page-home main { max-width: none; padding: 0; }
.sr-page-home main > .container { max-width: none; padding: 0; }
.sr-page-home main > .container > .msg { max-width: 1200px; margin: 1rem auto; }

.sr-home {
  --h-navy: #0d2137;
  --h-navy-2: #132c47;
  --h-ink: #14202c;
  --h-muted: #5c6b7a;
  --h-sand: #f7f6f3;
  --h-line: #e4e1da;
  --h-gold: #c8a96a;
  --h-radius: 18px;
  color: var(--h-ink);
}

.sr-home .h-wrap { max-width: 1200px; margin: 0 auto; padding-inline: clamp(1rem, 4vw, 2rem); }

.sr-home h1, .sr-home h2 {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.sr-home h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); line-height: 1.2; margin: 0 0 2.5rem; color: var(--h-navy); }
.sr-home h3 { font-family: var(--font-sans); font-size: 1.1rem; font-weight: 600; margin: 0 0 .35rem; color: var(--h-navy); }
.sr-home p { margin: 0; }

.sr-home .h-eyebrow {
  font-family: 'Montserrat', var(--font-sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--h-gold);
  margin-bottom: 1rem;
}
.sr-home .h-eyebrow-dark { color: #9a7b3f; }

/* Pulsanti */
.sr-home .h-btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .9rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-sans); font-size: 1rem; font-weight: 600;
  text-decoration: none;
  transition: transform .18s ease, background-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.sr-home .h-btn svg { width: 1.1rem; height: 1.1rem; transition: transform .18s ease; }
.sr-home .h-btn:hover svg { transform: translateX(3px); }
.sr-home .h-btn-light { background: #fff; color: var(--h-navy); box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.sr-home .h-btn-light:hover { background: #fff; color: var(--h-navy); transform: translateY(-1px); box-shadow: 0 10px 28px rgba(0,0,0,.24); }
.sr-home .h-btn-ghost { color: #fff; border: 1px solid rgba(255,255,255,.45); }
.sr-home .h-btn-ghost:hover { color: #fff; background: rgba(255,255,255,.08); border-color: #fff; }
.sr-home .h-btn:focus-visible { outline: 2px solid var(--h-gold); outline-offset: 3px; }

/* Hero */
.sr-home .h-hero {
  position: relative;
  background:
    radial-gradient(1100px 500px at 15% 0%, rgba(45,123,198,.22), transparent 60%),
    linear-gradient(160deg, var(--h-navy) 0%, #081726 100%);
  color: #fff;
  padding-block: clamp(3rem, 8vw, 6rem);
  overflow: hidden;
}
.sr-home .h-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.sr-home .h-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.1; color: #fff; margin: 0 0 1.5rem; }
.sr-home .h-hero h1 em { font-style: italic; font-weight: 400; color: #e9dcc0; }
.sr-home .h-lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.65; color: rgba(255,255,255,.78); max-width: 34rem; }
.sr-home .h-cta { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.25rem; }

.sr-home .h-hero-media { position: relative; margin: 0; }
.sr-home .h-hero-media img {
  display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; max-height: 540px; object-fit: cover; object-position: 50% 50%;
  border-radius: var(--h-radius);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
}
.sr-home .h-hero-badge {
  position: absolute; left: 1rem; top: 1rem;
  display: flex; align-items: center; gap: .9rem;
  background: rgba(13, 33, 55, .38); color: #fff;
  -webkit-backdrop-filter: blur(6px) saturate(1.2); backdrop-filter: blur(6px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, .28);
  padding: .75rem 1.1rem; border-radius: 14px;
  box-shadow: 0 12px 30px -14px rgba(0,0,0,.5);
}
.sr-home .h-badge-num { font-family: var(--font-serif); font-size: 1.9rem; font-weight: 700; line-height: 1; }
.sr-home .h-badge-txt { font-size: .85rem; line-height: 1.3; color: rgba(255,255,255,.85); }

/* Come funziona */
.sr-home .h-steps { background: #fff; padding-block: clamp(3.5rem, 8vw, 6rem); }
.sr-home .h-steps-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 3vw, 2.5rem); }
.sr-home .h-steps-list li { position: relative; padding-top: 1.5rem; border-top: 1px solid var(--h-line); }
.sr-home .h-steps-list li::before {
  content: ''; position: absolute; top: -1px; left: 0; width: 3rem; height: 2px; background: var(--h-navy);
}
.sr-home .h-step-n { display: block; font-family: var(--font-serif); font-size: 2.6rem; line-height: 1; color: var(--h-gold); margin-bottom: 1rem; }
.sr-home .h-steps-list p, .sr-home .h-feat-list p { color: var(--h-muted); line-height: 1.6; }

/* Perché SmartRig */
.sr-home .h-features { background: var(--h-sand); padding-block: clamp(3.5rem, 8vw, 6rem); }
.sr-home .h-features-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.sr-home .h-features-media { margin: 0; }
.sr-home .h-features-media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; max-height: 480px; object-fit: cover; object-position: 50% 70%; border-radius: var(--h-radius); }
.sr-home .h-feat-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 2.5rem; }
.sr-home .h-feat-list li { display: flex; gap: 1rem; align-items: flex-start; }
.sr-home .h-ico {
  flex: none; display: grid; place-items: center;
  width: 2.75rem; height: 2.75rem; border-radius: 12px;
  background: #fff; border: 1px solid var(--h-line); color: var(--h-navy);
}
.sr-home .h-ico svg { width: 1.35rem; height: 1.35rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Chiusura */
.sr-home .h-final { background: linear-gradient(160deg, var(--h-navy) 0%, #081726 100%); color: #fff; padding-block: clamp(3rem, 7vw, 4.5rem); }
.sr-home .h-final-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.sr-home .h-final h2 { color: #fff; margin: 0; }

/* Responsive */
@media (max-width: 900px) {
  .sr-home .h-hero-grid, .sr-home .h-features-grid { grid-template-columns: 1fr; }
  .sr-home .h-hero-media img { aspect-ratio: 4 / 3; max-height: none; object-position: 50% 90%; }
  .sr-home .h-hero-badge { left: .75rem; top: .75rem; bottom: auto; padding: .6rem .9rem; }
  .sr-home .h-badge-num { font-size: 1.5rem; }
  .sr-home .h-features-media { display: none; }
}
@media (max-width: 640px) {
  .sr-home .h-steps-list, .sr-home .h-feat-list { grid-template-columns: 1fr; }
  .sr-home .h-cta .h-btn { flex: 1 1 100%; justify-content: center; }
  .sr-home h2 { margin-bottom: 1.75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .sr-home .h-btn, .sr-home .h-btn svg { transition: none; }
}
