/* =========================================================
   Cardillo Consulenze — stylesheet
   Palette and type per official Brand Guidelines v1.0
   ========================================================= */

:root {
  --navy: #14233d;
  --navy-800: #1c3358;
  --azure: #4fa8f0;
  --azure-deep: #12559e;
  --red: #e5304a;
  --red-deep: #ad1628;
  --gray: #8b93a1;
  --gray-100: #eef1f4;
  --gray-50: #f5f7fa;
  --white: #ffffff;
  --azure-tint: #eaf4fd;
  --gray-900: #1a2733;
  --gray-700: #3d4c58;
  --gray-600: #55636f;
  --gray-400: #8b93a1;
  --gray-300: #d7dce1;
  --success: #2f7d5e;
  --danger: #b3432b;

  --font-heading: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1180px;
  --radius: 10px;
  --shadow-sm: 0 1px 3px rgba(20, 35, 61, 0.08);
  --shadow-md: 0 8px 24px rgba(20, 35, 61, 0.10);
  --shadow-lg: 0 20px 48px rgba(20, 35, 61, 0.16);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { list-style: none; padding: 0; }
/* height:auto va sempre insieme a max-width:100%: senza, un'immagine con
   attributi width/height si ritrova la larghezza ridotta dal max-width e
   l'altezza ferma al valore dell'attributo, quindi stirata. */
img, picture, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

body {
  font-family: var(--font-body);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.18;
  color: var(--navy);
}

h1 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.2rem; font-weight: 600; }

p { color: var(--gray-700); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* Brand accent bar — callback to the gradient on the Brand Guidelines cover */
.brand-bar {
  height: 4px;
  background: linear-gradient(90deg, var(--red), var(--azure));
}

section { padding-block: clamp(56px, 9vw, 108px); }
.section-tight { padding-block: clamp(40px, 6vw, 72px); }
.bg-tint { background: var(--gray-50); }
.bg-navy { background: var(--navy); color: var(--white); }
.bg-navy h2, .bg-navy h3 { color: var(--white); }
.bg-navy p { color: rgba(255,255,255,0.78); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--azure-deep);
  margin-bottom: 14px;
}
.bg-navy .eyebrow { color: var(--azure); }

.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.lede { font-size: 1.1rem; color: var(--gray-600); margin-top: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1.5px solid transparent;
  background-clip: padding-box;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--azure), var(--azure-deep));
  background-clip: padding-box;
  border-color: var(--navy);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(18, 85, 158, 0.28);
}
.btn-primary:hover { background: linear-gradient(135deg, var(--azure-deep), var(--azure-deep)); background-clip: padding-box; border-color: var(--navy); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(18, 85, 158, 0.35); }
.btn-outline {
  background: transparent;
  background-clip: padding-box;
  border-color: rgba(255,255,255,0.4);
  color: inherit;
}
.btn-outline:hover { border-color: var(--azure); color: var(--azure); }
.bg-navy .btn-outline { border-color: rgba(255,255,255,0.35); }
:not(.bg-navy) .btn-outline { border-color: var(--navy); color: var(--navy); }
:not(.bg-navy) .btn-outline:hover { background: var(--navy); background-clip: padding-box; color: var(--white); border-color: var(--navy); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo img, .logo svg { height: 38px; width: 38px; flex-shrink: 0; }
.logo-word {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.01em;
}
.logo-word span { color: var(--azure-deep); font-weight: 500; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.main-nav ul { display: flex; gap: 30px; }
.main-nav a {
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--gray-700);
  position: relative;
  padding-block: 4px;
}
.main-nav a:hover, .main-nav a.active { color: var(--navy); }
.main-nav a.btn-primary, .main-nav a.btn-primary:hover { color: var(--white); }
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--azure);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(56px, 10vw, 120px) clamp(48px, 8vw, 96px);
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { margin-bottom: 22px; }
.hero .lede { font-size: 1.15rem; max-width: 46ch; }
.hero-actions { display: flex; gap: 16px; margin-top: 34px; flex-wrap: wrap; }
.hero-trustbar {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--gray-300);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hero-trustbar span {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-trustbar span::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--azure-deep);
  flex-shrink: 0;
}

.hero-visual {
  background: var(--navy);
  border-radius: 20px;
  padding: 36px;
  color: var(--white);
  box-shadow: var(--shadow-lg);
}
.hero-visual .stat-row { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.hero-visual .stat { flex: 1; }
.hero-visual .stat .num {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2.1rem;
  color: var(--azure);
  display: block;
  margin-bottom: 4px;
}
.hero-visual .stat .label { font-size: 0.84rem; color: rgba(255,255,255,0.7); }
.hero-visual .divider { height: 1px; background: rgba(255,255,255,0.14); margin: 26px 0; }
.hero-visual .quote { font-size: 0.98rem; color: rgba(255,255,255,0.85); font-style: italic; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .18s ease, transform .18s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card .icon {
  width: 46px; height: 46px;
  border-radius: 10px;
  background: var(--azure-tint);
  color: var(--azure-deep);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.96rem; }
.card .card-link {
  display: inline-block; margin-top: 16px;
  font-size: 0.9rem; font-weight: 600; color: var(--navy);
  border-bottom: 1.5px solid var(--azure);
}

.problem-card { border-left: 3px solid var(--azure); }

/* ---------- Process ---------- */
.process-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; }
.process-step { position: relative; padding-top: 8px; }
.process-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--azure);
  display: block;
  margin-bottom: 14px;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--navy);
  border-radius: 20px;
  padding: clamp(40px, 6vw, 72px);
  text-align: center;
  color: var(--white);
}
.cta-banner h2 { color: var(--white); margin-bottom: 14px; }
.cta-banner p { color: rgba(255,255,255,0.78); max-width: 52ch; margin: 0 auto 22px; }
.cta-banner .hero-actions { justify-content: center; margin-top: 30px; }
.bg-navy .btn-primary:hover { box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.72); padding-block: 64px 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 48px; }
.footer-grid h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 18px; }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid a { font-size: 0.9rem; color: rgba(255,255,255,0.68); }
.footer-grid a:hover { color: var(--azure); }
.footer-brand .logo-word { color: var(--white); }
.footer-brand .logo-word span { color: var(--azure); }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.9rem; margin-top: 16px; max-width: 34ch; }
.footer-socials { display: flex; gap: 12px; margin-top: 18px; }
.footer-socials a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
}
.footer-socials a:hover { border-color: var(--azure); background: rgba(79,168,240,0.12); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-bottom a:hover { color: var(--azure); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-block: 64px 40px; background: var(--gray-50); }
.page-hero .eyebrow { margin-bottom: 10px; }
.breadcrumb { font-size: 0.85rem; color: var(--gray-400); margin-bottom: 18px; }
.breadcrumb a { color: var(--gray-600); }

/* ---------- Chi Sono ---------- */
.profile-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
.avatar-foto {
  aspect-ratio: 1;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.avatar-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }

.values-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 12px; }
.value-item h3 { font-size: 1.05rem; margin-bottom: 6px; }
.value-item p { font-size: 0.92rem; }

.credential-card {
  display: flex; align-items: center; gap: 16px;
  border: 1.5px dashed var(--gray-300);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.credential-card .icon { flex-shrink: 0; }
.credential-card.filled { border-style: solid; border-color: var(--gray-100); background: var(--white); }

/* ---------- Servizi detail ---------- */
.service-block {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
  padding-block: 56px;
  border-bottom: 1px solid var(--gray-100);
}
.service-block:last-child { border-bottom: none; }
.service-block .icon-lg {
  width: 60px; height: 60px; border-radius: 14px;
  background: var(--navy); color: var(--azure);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.service-block ul { margin-top: 16px; }
.service-block ul li {
  padding-left: 26px;
  position: relative;
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: var(--gray-700);
}
.service-block ul li::before {
  content: "";
  position: absolute; left: 0; top: 8px;
  width: 12px; height: 6px;
  border-left: 2px solid var(--azure);
  border-bottom: 2px solid var(--azure);
  transform: rotate(-45deg);
}
.service-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.service-meta span {
  font-size: 0.78rem; font-weight: 600;
  background: var(--azure-tint); color: var(--azure-deep);
  padding: 5px 12px; border-radius: 100px;
}

/* ---------- Pricing explainer ---------- */
.pricing-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pricing-step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid var(--gray-100);
  text-align: center;
}
.pricing-step .step-num {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--azure); color: var(--navy);
  font-weight: 700; font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}

/* ---------- Contatti ---------- */
.contact-info-item { display: flex; gap: 16px; margin-bottom: 28px; }
.contact-info-item .icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--azure-tint); color: var(--azure-deep);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-info-item h4 { font-size: 0.95rem; margin-bottom: 4px; }
.contact-info-item p { font-size: 0.92rem; }

.booking-box {
  background: var(--navy); color: var(--white);
  border-radius: var(--radius); padding: 30px;
  margin-top: 32px;
}
.booking-box h4 { color: var(--white); margin-bottom: 10px; }
.booking-box p { color: rgba(255,255,255,0.75); font-size: 0.92rem; margin-bottom: 18px; }
.booking-box .secondary-link { display: inline-block; margin-top: 14px; font-size: 0.86rem; color: rgba(255,255,255,0.7); border-bottom: 1px solid rgba(255,255,255,0.3); }
.booking-box .secondary-link:hover { color: var(--white); }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .profile-grid { grid-template-columns: 1fr; }
  .grid-3, .grid-4, .process-list, .pricing-steps { grid-template-columns: repeat(2, 1fr); }
  .service-block { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .values-list { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .main-nav { position: fixed; top: 84px; bottom: 0; right: -100%; width: 100%; background: var(--white); flex-direction: column; align-items: stretch; padding: 28px 24px; gap: 24px; transition: right .25s ease; overflow-y: auto; }
  .main-nav.open { right: 0; }
  .main-nav ul { flex-direction: column; gap: 20px; }
  .main-nav a { font-size: 1.1rem; }
  .nav-toggle { display: flex; }
  .grid-3, .grid-4, .grid-2, .process-list, .pricing-steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual .stat-row { flex-wrap: wrap; }
  .footer-bottom { flex-direction: column; }
}
