*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Baloo 2', sans-serif; background: var(--off-white); color: var(--text); overflow-x: hidden; }
:root {
  --blue:     #1E3D7B;
  --blue-dk:  #142857;
  --blue-lt:  #E8EDF8;
  --red:      #C0392B;
  --red-lt:   #F9ECEB;
  --beige:    #F2E8D9;
  --beige-dk: #D9C9B0;
  --off-white:#FAF7F3;
  --text:     #1A2540;
  --text-mid: #5A6070;
  --white:    #FFFFFF;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250,247,243,0.97); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(30,61,123,0.12);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between;
  height: 92px;
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
}
.nav-logo-mark {
  width: 84px; height: 84px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-logo-mark img { width: 100%; height: 100%; object-fit: contain; }
.nav-logo-text {
  font-family: 'Lora', serif; font-size: 20px; font-weight: 600;
  color: var(--blue-dk); letter-spacing: -0.3px;
}
.nav-logo-text span { display: block; font-size: 11px; font-weight: 400; font-family: 'Baloo 2', sans-serif; color: var(--text-mid); letter-spacing: 0.5px; margin-top: -4px; }
.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--text-mid); transition: color 0.2s; }
.nav-links a:hover { color: var(--red); }
.nav-links a.nav-cta {
  background: var(--red); color: #FFFAC3; padding: 10px 22px; border-radius: 100px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.2px; transition: background 0.2s;
}
.nav-links a.nav-cta:hover { background: var(--blue-dk); color: #FFFAC3; }

/* HERO */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding-top: 92px;
  background: var(--blue-dk);
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 80% at 70% 50%, #2A4F9A 0%, var(--blue-dk) 70%);
}
.hero-pattern {
  position: absolute; inset: 0; opacity: 0.04;
  background-image: radial-gradient(circle, #fff 1px, transparent 1px);
  background-size: 32px 32px;
}
.hero-shape {
  position: absolute; right: -120px; top: 50%; transform: translateY(-50%);
  width: 680px; height: 680px; border-radius: 50%;
  background: linear-gradient(135deg, #2E5BAF 0%, #1A3B7A 100%);
  opacity: 0.35;
}
.hero-circle-outline {
  position: absolute; right: 40px; top: 50%; transform: translateY(-50%);
  width: 520px; height: 520px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
}
.hero-content { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; padding: 80px 40px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px; padding: 6px 18px; margin-bottom: 32px;
  font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.8); letter-spacing: 0.8px; text-transform: uppercase;
}
.hero-eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: #7EA8E0; }
.hero h1 {
  font-family: 'Lora', serif; font-size: clamp(42px, 5.5vw, 80px);
  font-weight: 400; color: white; line-height: 1.12;
  max-width: 700px; margin-bottom: 28px;
}
.hero h1 em { font-style: italic; color: #8CB8F0; }
.hero-desc {
  font-size: 18px; line-height: 1.7; color: rgba(255,255,255,0.72);
  max-width: 540px; margin-bottom: 48px; font-weight: 400;
}
.hero-brand-row {
  display: flex; align-items: center; gap: 20px;
  margin: 8px 0 24px; padding: 16px 32px 16px 16px;
  width: 100%; max-width: 700px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 24px;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.hero-brand-logo {
  width: 100px; height: 100px; flex-shrink: 0;
  background: white; border-radius: 16px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.hero-brand-logo img {
  width: 100%; height: 100%; object-fit: contain; transform: scale(1.05);
}
.hero-brand-text {
  flex: 1;
  font-size: 30px; line-height: 1.25; color: white; font-weight: 600;
}
.hero-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.btn-primary {
  background: white; color: var(--blue-dk); padding: 16px 32px;
  border-radius: 100px; font-size: 15px; font-weight: 700;
  transition: all 0.2s; display: inline-block;
}
.btn-primary:hover { background: #E8EEF8; transform: translateY(-1px); }
.btn-ghost {
  color: white; padding: 16px 28px; border-radius: 100px;
  font-size: 15px; font-weight: 600;
  border: 1px solid rgba(255,255,255,0.3);
  transition: all 0.2s; display: inline-flex; align-items: center; gap: 10px;
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); }
.hero-info-bar {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.06); border-top: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(4px);
}
.hero-info-inner {
  max-width: 1200px; margin: 0 auto; padding: 20px 40px;
  display: flex; gap: 48px; align-items: center;
}
.hero-info-item { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,0.7); font-size: 14px; }
.hero-info-item svg { width: 16px; height: 16px; flex-shrink: 0; opacity: 0.7; }
.hero-info-sep { width: 1px; height: 28px; background: rgba(255,255,255,0.15); }

/* SECTION COMMONS */
section { padding: 100px 0; }
.section-eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--red); margin-bottom: 16px;
}
.section-title {
  font-family: 'Lora', serif; font-size: clamp(30px, 3.5vw, 48px);
  font-weight: 400; color: var(--blue-dk); line-height: 1.2; margin-bottom: 24px;
}
.section-title em { font-style: italic; }
.section-lead { font-size: 18px; line-height: 1.75; color: var(--text-mid); max-width: 640px; }

/* CHI SIAMO */
.chi-siamo { background: var(--white); }
.chi-siamo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.chi-siamo-visual {
  position: relative; height: 480px;
}
.chi-siamo-card-big {
  position: absolute; left: 0; top: 0; right: 60px; bottom: 60px;
  background: var(--beige); border-radius: 24px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.chi-siamo-card-big img {
  width: 100%; height: 100%; object-fit: cover;
}
.chi-siamo-card-sm {
  position: absolute; right: 0; bottom: 0;
  width: 200px; background: #FFFAC3; border-radius: 20px;
  padding: 24px; color: var(--red);
}
.chi-siamo-card-sm .sm-icon { font-size: 28px; margin-bottom: 12px; }
.chi-siamo-card-sm .sm-text { font-size: 15px; font-weight: 600; line-height: 1.4; }
.chi-siamo-pillars { margin-top: 40px; display: flex; flex-direction: column; gap: 20px; }
.pillar { display: flex; gap: 16px; align-items: flex-start; }
.pillar-icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--blue-lt);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  margin-top: 2px;
}
.pillar-icon svg { width: 20px; height: 20px; stroke: var(--blue); fill: none; stroke-width: 1.8; }
.pillar-title { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.pillar-desc { font-size: 14px; line-height: 1.65; color: var(--text-mid); }

/* SERVIZI */
.servizi { background: white; }
.servizi-intro { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 60px; }
.servizi-intro-desc { font-size: 16px; color: var(--text-mid); max-width: 380px; line-height: 1.7; }
.servizi-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.servizio-card {
  border-radius: 20px; padding: 36px 28px; position: relative; overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  cursor: pointer;
}
.servizio-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.1); }
.servizio-card:nth-child(1) { background: var(--blue-dk); color: white; }
.servizio-card:nth-child(2) { background: var(--red-lt); }
.servizio-card:nth-child(3) { background: var(--blue-lt); }
.servizio-card:nth-child(4) { background: white; border: 1px solid #E0E8E3; }
.card-num {
  font-family: 'Lora', serif; font-size: 48px; font-weight: 600;
  opacity: 0.18; line-height: 1; margin-bottom: 20px;
}
.card-icon-wrap {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.servizio-card:nth-child(1) .card-icon-wrap { background: rgba(255,255,255,0.12); }
.servizio-card:nth-child(2) .card-icon-wrap { background: rgba(192,57,43,0.1); }
.servizio-card:nth-child(3) .card-icon-wrap { background: rgba(30,61,123,0.1); }
.servizio-card:nth-child(4) .card-icon-wrap { background: var(--blue-lt); }
.card-icon-wrap svg { width: 26px; height: 26px; stroke-width: 1.6; fill: none; }
.servizio-card:nth-child(1) .card-icon-wrap svg { stroke: white; }
.servizio-card:nth-child(2) .card-icon-wrap svg { stroke: var(--red); }
.servizio-card:nth-child(3) .card-icon-wrap svg { stroke: var(--blue); }
.servizio-card:nth-child(4) .card-icon-wrap svg { stroke: var(--blue); }
.card-title { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.servizio-card:nth-child(1) .card-title { color: white; }
.servizio-card:nth-child(2) .card-title,
.servizio-card:nth-child(3) .card-title,
.servizio-card:nth-child(4) .card-title { color: var(--blue-dk); }
.card-desc { font-size: 14px; line-height: 1.7; }
.servizio-card:nth-child(1) .card-desc { color: rgba(255,255,255,0.72); }
.servizio-card:nth-child(2) .card-desc,
.servizio-card:nth-child(3) .card-desc,
.servizio-card:nth-child(4) .card-desc { color: var(--text-mid); }
.card-list { margin-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.card-list li {
  font-size: 13px; display: flex; align-items: flex-start; gap: 8px;
}
.servizio-card:nth-child(1) .card-list li { color: rgba(255,255,255,0.65); }
.servizio-card:nth-child(2) .card-list li,
.servizio-card:nth-child(3) .card-list li,
.servizio-card:nth-child(4) .card-list li { color: var(--text-mid); }
.card-list li::before {
  content: '—'; flex-shrink: 0; opacity: 0.5; margin-top: 1px;
}

/* AMBITI */
.ambiti { background: var(--off-white); }
.ambiti-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 60px; }
.ambito-card {
  padding: 36px 32px; border-radius: 20px;
  border: 1px solid #E5EDEA; transition: all 0.25s;
}
.ambito-card:hover { border-color: var(--blue); box-shadow: 0 8px 24px rgba(30,61,123,0.1); }
.ambito-age {
  font-family: 'Lora', serif; font-size: 36px; font-weight: 600; font-style: italic;
  color: var(--red); margin-bottom: 16px;
}
.ambito-title { font-size: 18px; font-weight: 700; color: var(--blue-dk); margin-bottom: 16px; }
.ambito-list { display: flex; flex-direction: column; gap: 10px; }
.ambito-list li { font-size: 14px; color: var(--text-mid); line-height: 1.5; padding-left: 16px; position: relative; }
.ambito-list li::before { content: ''; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); opacity: 0.5; }

/* METODO */
.metodo { background: var(--blue-dk); color: white; }
.metodo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.metodo .section-eyebrow { color: #7EA8E0; }
.metodo .section-title { color: white; }
.metodo .section-lead { color: rgba(255,255,255,0.7); }
.metodo-steps { display: flex; flex-direction: column; gap: 0; margin-top: 8px; }
.metodo-step {
  display: grid; grid-template-columns: 48px 1fr; gap: 20px;
  padding: 28px 0; border-top: 1px solid rgba(255,255,255,0.1);
  align-items: start;
}
.step-num {
  font-family: 'Lora', serif; font-size: 28px; font-weight: 600;
  color: rgba(255,255,255,0.25); line-height: 1.2;
}
.step-title { font-size: 17px; font-weight: 700; color: white; margin-bottom: 6px; }
.step-desc { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.6); }
.metodo-quote {
  margin-top: 48px;
  padding: 36px;
  background: rgba(255,255,255,0.06);
  border-radius: 20px;
  border-left: 3px solid #7EA8E0;
}
.metodo-quote p {
  font-family: 'Lora', serif; font-style: italic;
  font-size: 20px; line-height: 1.65; color: rgba(255,255,255,0.85);
}

/* CONTATTI */
.contatti { background: var(--off-white); }
.contatti-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contatti-info { display: flex; flex-direction: column; gap: 32px; margin-top: 48px; }
.contatto-item { display: flex; gap: 20px; align-items: flex-start; }
.contatto-icon {
  width: 48px; height: 48px; border-radius: 14px; background: var(--blue-lt);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contatto-icon svg { width: 20px; height: 20px; stroke: var(--blue); fill: none; stroke-width: 1.8; }
.contatto-label { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--red); margin-bottom: 4px; }
.contatto-val { font-size: 17px; font-weight: 600; color: var(--text); line-height: 1.5; }
.contatto-sub { font-size: 14px; color: var(--text-mid); margin-top: 2px; }
.map-placeholder {
  background: var(--beige); border-radius: 24px; height: 420px;
  position: relative; overflow: hidden;
}
.map-placeholder iframe {
  width: 100%; height: 100%; display: block; border: 0;
}
.map-placeholder svg { width: 40px; height: 40px; stroke: var(--blue); fill: none; stroke-width: 1.5; opacity: 0.5; }
.map-placeholder p { font-size: 14px; color: var(--text-mid); }
.map-placeholder strong { font-weight: 700; font-size: 16px; color: var(--blue-dk); display: block; margin-bottom: 4px; }
/* FOOTER */
footer {
  background: var(--blue-dk); color: white; padding: 60px 0 36px;
}
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.footer-brand-mark {
  width: 68px; height: 68px;
  display: flex; align-items: center; justify-content: center;
}
.footer-brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.footer-brand-name { font-family: 'Lora', serif; font-size: 20px; font-weight: 600; }
.footer-tagline { font-size: 14px; color: rgba(255,255,255,0.55); line-height: 1.7; max-width: 320px; }
.footer-col-title { font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 20px; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: 15px; color: rgba(255,255,255,0.7); transition: color 0.2s; }
.footer-links a:hover { color: white; }
.footer-bottom {
  padding-top: 28px; display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: rgba(255,255,255,0.35);
}

/* RESPONSIVE */
@media (max-width: 960px) {
  .container { padding: 0 24px; }
  .nav-inner { padding: 0 24px; }
  .nav-links { gap: 20px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .hero-content { padding: 60px 24px; }
  .hero-info-inner { flex-wrap: wrap; gap: 16px; padding: 16px 24px; }
  .hero-info-sep { display: none; }
  .chi-siamo-grid,
  .metodo-grid,
  .contatti-grid { grid-template-columns: 1fr; gap: 48px; }
  .chi-siamo-visual { height: 400px; }
  .servizi-cards { grid-template-columns: repeat(2, 1fr); }
  .servizi-intro { flex-direction: column; align-items: flex-start; gap: 20px; }
  .ambiti-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 8px; align-items: flex-start; }
}

@media (max-width: 560px) {
  .servizi-cards { grid-template-columns: 1fr; }
  .ambiti-grid { grid-template-columns: 1fr; }
}
