/* Pagina vetrina of a consultant: the colours of the theme (theme.json presets, with fallbacks). */
.sc-cons {
  --scc-blue: var(--wp--preset--color--blue, #0280c8);
  --scc-darkblue: var(--wp--preset--color--darkblue, #005c9f);
  --scc-green: var(--wp--preset--color--green, #029c83);
  --scc-magenta: var(--wp--preset--color--magenta, #b92185);
  --scc-orange: var(--wp--preset--color--orange, #f07e23);
  --scc-bg: var(--wp--preset--color--lightblue-soft, #e1eaf4);
  color: #1d2a3a;
}
.sc-cons-wrap { max-width: 1120px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }

.sc-cons-hero { background: linear-gradient(135deg, #eef4fb 0%, var(--scc-bg) 100%); padding: 56px 0 48px; }
.sc-cons-hero__in { display: flex; align-items: center; gap: 36px; flex-wrap: wrap; }
.sc-cons-foto {
  width: 160px; height: 160px; border-radius: 50%; overflow: hidden; flex: none;
  border: 5px solid #fff; box-shadow: 0 12px 30px -12px rgba(0, 92, 159, .5);
  background: var(--scc-darkblue); color: #fff; display: grid; place-items: center; font-size: 2.6rem; font-weight: 700;
}
.sc-cons-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sc-cons-id { flex: 1 1 300px; min-width: 0; }
.sc-cons-eyebrow { display: block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--scc-blue); }
.sc-cons-id h1 { margin: 6px 0 6px; font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.1; color: var(--scc-darkblue); overflow-wrap: anywhere; }
.sc-cons-id p { margin: 0 0 20px; font-size: 1.1rem; color: #3f5163; }
.sc-cons-cta {
  display: inline-block; padding: 13px 28px; border-radius: 999px; background: var(--scc-orange); color: #fff !important;
  font-weight: 700; text-decoration: none !important; box-shadow: 0 8px 20px -10px rgba(240, 126, 35, .8);
}
.sc-cons-cta:hover { filter: brightness(1.05); }

.sc-cons-body { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 48px; padding-top: 48px; padding-bottom: 64px; align-items: start; }
.sc-cons-main { display: grid; gap: 34px; min-width: 0; }
.sc-cons-main h2, .sc-cons-form-box h2 { margin: 0 0 12px; font-size: 1.4rem; color: var(--scc-darkblue); }
.sc-cons-main p { margin: 0 0 12px; line-height: 1.65; overflow-wrap: anywhere; }
.sc-cons-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sc-cons-chips li { margin: 0; padding: 8px 16px; border-radius: 999px; background: #eaf3fb; color: var(--scc-darkblue); font-weight: 600; font-size: .95rem; }
.sc-cons-chips--valori li { background: #e6f5f2; color: #017766; }

.sc-cons-form-box {
  position: sticky; top: 110px;
  border-radius: 20px; padding: 26px; background: #fff; border: 1px solid #dfe6ef; box-shadow: 0 18px 40px -26px rgba(0, 92, 159, .45);
}
.sc-cons-form-box > p { margin: 0 0 16px; color: #4a5a6c; }
.sc-cons-form { display: grid; gap: 12px; }
.sc-cons-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sc-cons-form label { display: grid; gap: 5px; font-size: .88rem; font-weight: 600; color: #2b3b4d; margin: 0; }
.sc-cons-form label small { display: inline; font-weight: 400; color: #7a8796; }
.sc-cons-form input[type=text], .sc-cons-form input[type=tel], .sc-cons-form input[type=email], .sc-cons-form textarea {
  width: 100%; box-sizing: border-box; border: 1px solid #cfd9e5; border-radius: 12px; padding: 11px 14px; font: inherit; font-size: 16px; background: #fff; color: #1d2a3a;
}
.sc-cons-form input:focus, .sc-cons-form textarea:focus { outline: none; border-color: var(--scc-blue); box-shadow: 0 0 0 3px rgba(2, 128, 200, .15); }
.sc-cons-privacy { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: 10px !important; font-weight: 400 !important; font-size: .82rem !important; line-height: 1.45; }
.sc-cons-privacy input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--scc-darkblue); }
.sc-cons-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.sc-cons-send {
  margin-top: 4px; height: 50px; border: 0; border-radius: 999px; background: var(--scc-orange); color: #fff; font-weight: 700; font-size: 1rem; cursor: pointer;
}
.sc-cons-send:disabled { opacity: .7; cursor: default; }
.sc-cons-msg { margin: 0; font-size: .9rem; min-height: 1.2em; }
.sc-cons-msg.is-ok { color: #047857; font-weight: 600; }
.sc-cons-msg.is-ko { color: #b91c1c; }

@media (max-width: 960px) {
  .sc-cons-body { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .sc-cons-form-box { position: static; }
}
@media (max-width: 560px) {
  .sc-cons-hero { padding: 36px 0 32px; }
  .sc-cons-hero__in { gap: 20px; justify-content: center; text-align: center; }
  .sc-cons-foto { width: 120px; height: 120px; font-size: 2rem; }
  .sc-cons-row { grid-template-columns: 1fr; }
  .sc-cons-form-box { padding: 20px; }
}

/* hero buttons: «Contattami» and «Seguimi su Instagram» */
.sc-cons-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.sc-cons-ig {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px;
  background: linear-gradient(45deg, #f59e0b, #db2777 55%, #7c3aed); color: #fff !important;
  font-weight: 700; text-decoration: none !important; box-shadow: 0 8px 20px -10px rgba(219, 39, 119, .7);
}
.sc-cons-ig:hover { filter: brightness(1.06); }
@media (max-width: 560px) { .sc-cons-actions { justify-content: center; } }

/* «Hanno scelto me»: logos of the consultant's clients */
.sc-cons .sc-cons-clienti ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.sc-cons .sc-cons-clienti li { height: 96px; box-sizing: border-box; overflow: hidden; border: 1px solid #e9ecef; border-radius: 12px; background: #fff; padding: 10px; margin: 0; }
/* the logo fits its tile whatever its shape (the theme's img { height: auto } is overridden) */
.sc-cons .sc-cons-clienti img { display: block; width: 100% !important; height: 100% !important; max-width: none; max-height: none; object-fit: contain; }

/* «I nostri consulenti» */
.sc-cons-dir__head { text-align: center; padding: 8px 0; }
.sc-cons-dir__head h1 { margin: 6px 0 8px; }
.sc-cons-dir__head p { max-width: 640px; margin: 0 auto; opacity: .9; }
.sc-cons .sc-cons-dir__grid { list-style: none; margin: 28px 0 48px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.sc-cons .sc-cons-dir__card { margin: 0; }
.sc-cons .sc-cons-dir__card a { display: grid; justify-items: center; text-align: center; gap: 4px; height: 100%; box-sizing: border-box; padding: 22px 16px 18px;
  border: 1px solid #e9ecef; border-radius: 18px; background: #fff; text-decoration: none; color: #0f0e47; transition: box-shadow .2s, transform .2s; }
.sc-cons .sc-cons-dir__card a:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -18px rgba(15, 14, 71, .45); }
.sc-cons .sc-cons-dir__foto { width: 110px; height: 110px; border-radius: 50%; overflow: hidden; margin-bottom: 8px; background: #272757; color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 1.6rem; box-shadow: 0 0 0 4px #fff, 0 6px 18px -8px rgba(15, 14, 71, .5); }
.sc-cons .sc-cons-dir__foto img { width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; display: block; }
.sc-cons .sc-cons-dir__card b { font-size: 1.05rem; }
.sc-cons .sc-cons-dir__card small { font-size: .85rem; color: #4a5a6c; }
.sc-cons .sc-cons-dir__zona { color: #0280c8 !important; font-weight: 600; }
.sc-cons .sc-cons-dir__cta { margin-top: 10px; display: inline-block; padding: 8px 16px; border-radius: 99px; background: #f07e23; color: #fff; font-weight: 600; font-size: .85rem; }
.sc-cons-dir__empty { text-align: center; padding: 40px 0; }
