/* SG Sostienimi Manager — Blocksy Edition */
.sg-blocksy-breakout {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  --sg-primary: #2f67ff;
  --sg-navy: #17233b;
  --sg-max: 1180px;
  --sg-text: var(--theme-text-color, #253451);
  --sg-heading: var(--theme-heading-color, #172848);
  --sg-muted: #63708a;
  --sg-border: #e4eaf3;
  --sg-soft: #f8fafc;
  --sg-card: #ffffff;
  --sg-radius: 18px;
  font-family: var(--theme-font-family, inherit);
  color: var(--sg-text);
  line-height: 1.6;
}

.sg-blocksy-breakout *, .sg-blocksy-breakout *::before, .sg-blocksy-breakout *::after { box-sizing: border-box; }
.sg-sostienimi { overflow: hidden; }
.sg-inner { width: min(var(--sg-max), calc(100% - 48px)); margin-inline: auto; }

.sg-hero {
  position: relative;
  color: #fff;
  background-color: var(--sg-navy);
  background-image:
    radial-gradient(circle at 78% 10%, rgba(255,255,255,.05), transparent 24%),
    repeating-radial-gradient(ellipse at -10% -20%, transparent 0 36px, rgba(255,255,255,.04) 37px 38px, transparent 39px 70px);
  padding: clamp(54px, 7vw, 90px) 0;
}
.sg-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 6vw, 74px); align-items: center; }
.sg-hero-copy h1 { margin: 0 0 14px; color: #fff; font-size: clamp(50px, 6vw, 78px); line-height: .98; letter-spacing: -.04em; }
.sg-hero-subtitle { margin: 0 0 18px; max-width: 650px; font-size: clamp(23px, 2.7vw, 34px); line-height: 1.28; color: rgba(255,255,255,.92); }
.sg-hero-text { max-width: 620px; margin: 0; font-size: 17px; color: rgba(255,255,255,.88); }
.sg-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.sg-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid var(--sg-primary);
  border-radius: 5px;
  background: var(--sg-primary);
  color: #fff !important;
  text-decoration: none !important;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform .18s ease, opacity .18s ease, box-shadow .18s ease;
}
.sg-button:hover { transform: translateY(-1px); opacity: .94; box-shadow: 0 8px 20px rgba(47,103,255,.18); }
.sg-button-ghost { background: transparent; border-color: rgba(255,255,255,.58); }
.sg-hero-image { border-radius: 12px; overflow: hidden; background: #fff; min-height: 330px; box-shadow: 0 18px 44px rgba(0,0,0,.18); }
.sg-hero-image img { width: 100%; height: 100%; min-height: 330px; object-fit: cover; display: block; }
.sg-image-placeholder { display: grid; place-items: center; padding: 30px; background: rgba(255,255,255,.08); border: 1px dashed rgba(255,255,255,.35); color: rgba(255,255,255,.75); text-align: center; }

.sg-quick-section { padding: 26px 0 10px; background: #fff; }
.sg-quick-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.sg-quick-card {
  display: block;
  min-height: 170px;
  padding: 24px 22px;
  border: 1px solid var(--sg-border);
  border-radius: 8px;
  background: #fff;
  text-decoration: none !important;
  color: var(--sg-text) !important;
  box-shadow: 0 4px 18px rgba(17,34,68,.035);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.sg-quick-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--sg-primary) 34%, white); box-shadow: 0 10px 26px rgba(17,34,68,.07); }
.sg-icon, .sg-round-icon, .sg-tech-icon { display: inline-flex; color: #0e4b88; }
.sg-icon svg, .sg-round-icon svg, .sg-tech-icon svg { width: 30px; height: 30px; fill: currentColor; }
.sg-quick-card h2 { margin: 12px 0 7px; font-size: 22px; line-height: 1.2; color: var(--sg-heading); }
.sg-quick-card p { margin: 0; color: var(--sg-muted); font-size: 15px; line-height: 1.5; }

.sg-main-section { padding: 18px 0 36px; background: #fff; }
.sg-main-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; align-items: stretch; }
.sg-panel { scroll-margin-top: 110px; padding: clamp(26px, 3vw, 38px); border: 1px solid #edf1f6; border-radius: 10px; background: linear-gradient(140deg, #fff, #fbfcfe); box-shadow: 0 10px 30px rgba(20,42,80,.045); }
.sg-panel-heading { display: flex; align-items: flex-start; gap: 18px; }
.sg-round-icon { width: 58px; height: 58px; flex: 0 0 58px; align-items: center; justify-content: center; border-radius: 50%; background: #e9f1ff; }
.sg-round-icon svg { width: 31px; height: 31px; }
.sg-round-icon.sg-heart { color: #b8324d; background: #fdecef; }
.sg-panel h2 { margin: 0 0 18px; font-size: clamp(30px, 3.3vw, 43px); line-height: 1.08; letter-spacing: -.025em; color: var(--sg-heading); }
.sg-panel > p { margin: 0 0 24px; color: #54617a; font-size: 16px; }
.sg-client-logo { width: auto; max-width: 130px; max-height: 70px; object-fit: contain; display: block; margin-bottom: 18px; }

.sg-application-wrap { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--sg-border); }
.sg-form-intro { margin-top: 0 !important; }
.sg-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 15px; }
.sg-form-grid p { margin: 0; }
.sg-form-grid .sg-full { grid-column: 1 / -1; }
.sg-form label { color: var(--sg-heading); font-size: 14px; font-weight: 700; }
.sg-form input[type="text"], .sg-form input[type="email"], .sg-form input[type="tel"], .sg-form textarea {
  width: 100%;
  margin-top: 7px;
  padding: 12px 13px;
  border: 1px solid #cdd6e4;
  border-radius: 4px;
  background: #fff;
  color: #1f2d46;
  font: inherit;
}
.sg-form input:focus, .sg-form textarea:focus { outline: 3px solid color-mix(in srgb, var(--sg-primary) 18%, transparent); border-color: var(--sg-primary); }
.sg-consent label { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; line-height: 1.45; }
.sg-consent input { margin-top: 3px; }
.sg-hp { position: absolute !important; left: -9999px !important; }

.sg-tech-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-top: 24px; }
.sg-tech-card { min-width: 0; padding: 18px; border: 1px solid var(--sg-border); border-radius: 7px; background: #fff; }
.sg-tech-thumb { aspect-ratio: 4/3; overflow: hidden; margin: -18px -18px 15px; border-radius: 7px 7px 0 0; background: #f0f4fb; }
.sg-tech-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sg-tech-icon { margin-bottom: 12px; }
.sg-tech-card h3 { margin: 0 0 7px; font-size: 18px; line-height: 1.2; color: var(--sg-heading); }
.sg-tech-card p { min-height: 44px; margin: 0 0 14px; font-size: 13px; line-height: 1.45; color: var(--sg-muted); }
.sg-progress { height: 8px; overflow: hidden; border-radius: 999px; background: #e8eef8; }
.sg-progress span { display: block; height: 100%; border-radius: inherit; background: var(--sg-primary); }
.sg-progress-meta { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; font-size: 12px; color: var(--sg-muted); }
.sg-progress-meta strong { color: var(--sg-heading); }
.sg-text-link { display: inline-block; margin-top: 10px; color: var(--sg-primary) !important; text-decoration: none !important; font-weight: 700; font-size: 13px; }
.sg-empty-state { grid-column: 1/-1; padding: 22px; border: 1px dashed #cdd7e7; border-radius: 7px; background: #f8fbff; color: var(--sg-muted); }

.sg-free-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-top: 24px; }
.sg-free-item { padding: 19px 15px; border: 1px solid var(--sg-border); border-radius: 7px; background: #fff; }
.sg-free-item h3 { margin: 10px 0 6px; font-size: 16px; color: var(--sg-heading); }
.sg-free-item p { margin: 0; font-size: 13px; color: var(--sg-muted); line-height: 1.5; }

.sg-banner-section { padding: 0 0 52px; background: #fff; }
.sg-banner { position: relative; min-height: 220px; display: flex; align-items: center; overflow: hidden; border-radius: 10px; background-color: #233e66; background-size: cover; background-position: center; }
.sg-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,40,75,.92) 0%, rgba(18,40,75,.70) 53%, rgba(18,40,75,.18) 100%); }
.sg-banner-content { position: relative; z-index: 1; max-width: 720px; padding: 36px 40px; color: #fff; }
.sg-banner h2 { margin: 0 0 8px; color: #fff; font-size: clamp(30px, 3.3vw, 45px); line-height: 1.1; }
.sg-banner p { margin: 0 0 22px; color: rgba(255,255,255,.9); font-size: 17px; }

.sg-notice { margin-top: 22px; padding: 15px 18px; border-radius: 6px; font-weight: 700; }
.sg-success { background: #eaf7ef; color: #206a3f; border: 1px solid #c8ead5; }
.sg-error { background: #fff0f0; color: #9d2c2c; border: 1px solid #f0cece; }

@media (max-width: 1100px) {
  .sg-quick-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .sg-tech-grid, .sg-free-grid { grid-template-columns: 1fr; }
  .sg-tech-card p { min-height: auto; }
}

@media (max-width: 800px) {
  .sg-inner { width: min(var(--sg-max), calc(100% - 30px)); }
  .sg-hero-grid, .sg-main-grid { grid-template-columns: 1fr; }
  .sg-hero { padding: 48px 0; }
  .sg-hero-image { min-height: 250px; }
  .sg-hero-image img { min-height: 250px; }
  .sg-main-section { padding-top: 10px; }
}

@media (max-width: 560px) {
  .sg-quick-grid, .sg-form-grid { grid-template-columns: 1fr; }
  .sg-quick-card { min-height: 0; }
  .sg-panel { padding: 23px 20px; }
  .sg-panel-heading { gap: 13px; }
  .sg-round-icon { width: 48px; height: 48px; flex-basis: 48px; }
  .sg-round-icon svg { width: 26px; height: 26px; }
  .sg-actions { flex-direction: column; align-items: stretch; }
  .sg-button { width: 100%; }
  .sg-banner-content { padding: 30px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .sg-button, .sg-quick-card { transition: none; }
}
