/* =========================================================
   T.R.A.P. Firenze — Foglio di stile condiviso
   Sito statico — palette e tipografia da brief progetto
   ========================================================= */

:root {
  /* Palette */
  --white: #fbfbfb;
  --lime: #d7dc49;
  --lime-light: #f2f3d4;
  --peach: #f9be92;
  --peach-light: #fef0e0;
  --lavender: #c1bfe1;
  --lavender-light: #eae9f4;
  --mint: #a2d3bc;
  --mint-light: #dff0e8;
  --mint-dark: #5a9e7a;
  --teal: #3d7a8a;
  --lavender-dark: #7b79b4;

  --text-dark: #2c2c2a;
  --text-mid: #5f5e5a;
  --text-light: #888780;
  --border: rgba(0,0,0,0.08);

  --font: 'DM Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --maxw: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
  background: #eaeae8;
}

img { max-width: 100%; height: auto; display: block; }

.page {
  max-width: var(--maxw);
  margin: 0 auto;
  background: var(--white);
  overflow: hidden;
}

h1, h2, h3, h4 { font-weight: 600; color: var(--text-dark); line-height: 1.25; }
strong { font-weight: 600; color: var(--text-dark); }

.section-label {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 6px;
  font-weight: 400;
}
.section-label.centered { text-align: center; }

/* ============ TOPBAR ============ */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 40px;
  font-size: 12px;
  color: var(--text-light);
  border-bottom: 1px solid var(--border);
  background: var(--white);
}
.topbar a { color: var(--text-light); text-decoration: none; }
.topbar a:hover { color: var(--text-dark); }

/* ============ NAVBAR ============ */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 40px;
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
}
.navbar-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.navbar-logo img { height: 60px; width: auto; }
.navbar-logo .brand-name {
  font-size: 17px; font-weight: 600; color: var(--text-dark);
  letter-spacing: 0.5px; line-height: 1.1;
}
.navbar-links { display: flex; gap: 28px; list-style: none; align-items: center; }
.navbar-links a {
  text-decoration: none; color: var(--text-mid);
  font-size: 14px; font-weight: 300; transition: color 0.2s;
}
.navbar-links a:hover { color: var(--text-dark); }
.navbar-links a.active { color: var(--text-dark); font-weight: 600; }

.navbar-actions { display: flex; gap: 8px; align-items: center; }
.navbar-cta {
  padding: 9px 20px; border-radius: 30px; text-decoration: none;
  font-size: 14px; font-weight: 500; white-space: nowrap;
}
.navbar-cta.call { background: white; color: var(--lavender-dark); border: 2px solid var(--lavender); }
.navbar-cta.wa   { background: white; color: var(--mint-dark);    border: 2px solid var(--mint); }
.navbar-cta.call:hover { background: var(--lavender-light); }
.navbar-cta.wa:hover   { background: var(--mint-light); }

/* Hamburger */
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 40px; height: 40px; flex-direction: column; justify-content: center;
  gap: 5px; padding: 8px;
}
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--text-dark); border-radius: 2px; transition: 0.3s; }

/* ============ HERO HOME ============ */
.hero-home {
  position: relative;
  height: 540px;
  overflow: hidden;
}
.hero-home-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center center;
}
.hero-home-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(251,251,251,0.97) 0%, rgba(251,251,251,0.92) 42%, rgba(251,251,251,0.5) 62%, rgba(251,251,251,0.0) 80%),
    linear-gradient(to top, rgba(251,251,251,0.7) 0%, rgba(251,251,251,0.0) 25%);
}
.hero-home-content {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 48px 60px 36px; max-width: 600px;
}
.hero-accent {
  width: 44px; height: 4px; border-radius: 2px;
  background: linear-gradient(to right, var(--mint), var(--lavender)); margin-bottom: 16px;
}
.hero-home h1 { font-size: 40px; font-weight: 700; line-height: 1.2; margin-bottom: 14px; }
.hero-home .hero-sub { font-size: 17px; color: var(--text-mid); line-height: 1.65; margin-bottom: 18px; max-width: 440px; }
.hero-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.hero-badge { padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 500; }
.hb-mint { background: var(--mint-light); color: var(--mint-dark); }
.hb-lav  { background: var(--lavender-light); color: var(--lavender-dark); }
.hb-peach{ background: var(--peach-light); color: #c4854a; }
.hero-bottom { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.hero-divider { color: var(--text-light); font-size: 14px; }

/* ============ HERO INTERNO (immagine + overlay) ============ */
.page-hero {
  position: relative; height: 420px; overflow: hidden;
  background-size: cover; background-position: center center; background-color: var(--mint-light);
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(44,44,42,0.6) 0%, rgba(44,44,42,0.2) 50%, rgba(44,44,42,0.0) 100%);
  z-index: 1;
}
.page-hero-content {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 40px 60px;
}
.page-hero-label {
  font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,0.75); margin-bottom: 6px; font-weight: 300;
}
.page-hero h1 { font-size: 40px; font-weight: 600; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,0.25); }

/* ============ BOTTONI ============ */
.btn {
  padding: 14px 32px; border-radius: 30px; text-decoration: none;
  font-size: 16px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(61,122,138,0.3); }
.btn-light { background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.12); }
.btn-light:hover { transform: scale(1.03); }
.btn-light.call { color: var(--lavender-dark); }
.btn-light.wa   { color: var(--mint-dark); }
.btn-outline-sm {
  background: transparent; border: 2px solid var(--lavender); color: var(--lavender-dark);
  padding: 12px 24px; border-radius: 30px; text-decoration: none; font-size: 16px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-outline-sm:hover { background: var(--lavender-light); }
.btn-outline-sm.wa { border-color: var(--mint); color: var(--mint-dark); }
.btn-outline-sm.wa:hover { background: var(--mint-light); }

/* ============ SEPARATORE ONDULATO ============ */
.separator {
  padding: 0; overflow: hidden; height: 72px;
  display: flex; align-items: center; justify-content: center;
}
.separator-svg { width: 100%; height: 54px; overflow: visible; }

/* ============ QUOTE BAR ============ */
.quote-bar { background: var(--mint-light); text-align: center; padding: 40px; }
.quote-bar .wave { display: block; margin: 0 auto 14px; }
.quote-bar p { font-size: 28px; font-weight: 300; color: var(--text-dark); line-height: 1.3; }
.quote-bar strong { color: var(--mint-dark); font-weight: 600; }

/* ============ CENTRO PILOTA ============ */
.centro-pilota { padding: 40px; background: var(--white); }
.cp-inner {
  display: flex; align-items: center; gap: 24px;
  background: linear-gradient(135deg, var(--lavender-light) 0%, var(--peach-light) 100%);
  border-radius: 16px; padding: 28px 32px; border: 1px solid var(--border);
}
.cp-photo { width: 80px; height: 80px; border-radius: 50%; overflow: hidden; flex-shrink: 0; border: 3px solid #fff; }
.cp-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.cp-text { flex: 1; }
.cp-badge {
  display: inline-block; background: var(--lavender); color: #fff;
  font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  padding: 4px 12px; border-radius: 20px; margin-bottom: 8px;
}
.cp-text h3 { font-size: 18px; margin-bottom: 6px; }
.cp-text p { font-size: 15px; color: var(--text-mid); }

/* ============ GRIGLIE CARD GENERICHE ============ */
.section { padding: 56px 40px; background: var(--white); }
.section-title { font-size: 28px; font-weight: 600; text-align: center; margin-bottom: 36px; }
.section-title.left { text-align: left; }

.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.icon-card {
  text-align: center; padding: 24px 16px; border-radius: 14px;
  border: 1px solid var(--border); transition: transform 0.2s, box-shadow 0.2s;
}
.icon-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.06); }
.icon-card .ic {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px; font-size: 22px;
}
.icon-card h3 { font-size: 18px; margin-bottom: 8px; }
.icon-card p { font-size: 14px; color: var(--text-mid); line-height: 1.6; }
.bg-mint .ic { background: var(--mint-light); }
.bg-lav .ic  { background: var(--lavender-light); }
.bg-peach .ic{ background: var(--peach-light); }
.bg-lime .ic { background: var(--lime-light); }
.bt-mint { border-top: 3px solid var(--mint); }
.bt-lav  { border-top: 3px solid var(--lavender); }
.bt-peach{ border-top: 3px solid var(--peach); }
.bt-lime { border-top: 3px solid var(--lime); }

/* ============ COME FUNZIONA / SPLIT ============ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.split h2 { font-size: 28px; margin-bottom: 14px; }
.split > div > p { font-size: 16px; color: var(--text-mid); line-height: 1.8; margin-bottom: 14px; }
.split-img img { display: block; width: 100%; height: auto; border-radius: 16px; box-shadow: 0 8px 30px rgba(0,0,0,0.08); }
.steps { display: flex; flex-direction: column; gap: 14px; margin-top: 6px; }
.step { display: flex; align-items: flex-start; gap: 12px; }
.step-num {
  width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 13px; font-weight: 600; color: #fff; flex-shrink: 0;
}
.step:nth-child(1) .step-num { background: var(--mint); }
.step:nth-child(2) .step-num { background: var(--lavender); }
.step:nth-child(3) .step-num { background: var(--peach); }
.step-text h4 { font-size: 16px; margin-bottom: 3px; }
.step-text p { font-size: 14px; color: var(--text-light); line-height: 1.5; }

/* ============ CENTRO PILOTA BOX (inline) ============ */
.centro-pilota-box {
  margin-top: 22px; padding: 16px 20px; border-radius: 12px;
  background: var(--mint-light); border-left: 4px solid var(--mint);
  display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; color: var(--mint-dark);
}
.centro-pilota-box img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }

/* ============ TEAM ============ */
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.team-card { border-radius: 16px; border: 1px solid var(--border); overflow: hidden; background: var(--white); }
.team-card.tm-mint { border-top: 4px solid var(--mint); }
.team-card.tm-lav  { border-top: 4px solid var(--lavender); }
.team-card-header { display: flex; align-items: center; gap: 20px; padding: 28px 28px 0; }
.team-photo { width: 130px; height: 130px; border-radius: 50%; overflow: hidden; flex-shrink: 0; border: 3px solid var(--mint-light); }
.team-card.tm-lav .team-photo { border-color: var(--lavender-light); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.team-header-info h3 { font-size: 20px; margin-bottom: 2px; }
.team-header-info .role { font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.team-card.tm-mint .role { color: var(--mint-dark); }
.team-card.tm-lav .role  { color: var(--lavender-dark); }
.credentials { display: flex; flex-wrap: wrap; gap: 6px; }
.credential-tag { font-size: 11px; font-weight: 500; padding: 3px 10px; border-radius: 20px; background: #f0f0ee; color: var(--text-mid); }
.team-card-body { padding: 20px 28px 28px; }
.team-card-body p { font-size: 15px; color: var(--text-mid); line-height: 1.8; }
.team-highlight {
  margin-top: 14px; padding: 12px 16px; border-radius: 10px;
  font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 8px;
}
.team-card.tm-mint .team-highlight { background: var(--mint-light); color: var(--mint-dark); }
.team-card.tm-lav .team-highlight  { background: var(--lavender-light); color: var(--lavender-dark); }

/* Team semplice (home) */
.team-simple { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.team-simple .tc { display: flex; align-items: center; gap: 20px; padding: 24px; border-radius: 14px; border: 1px solid var(--border); }
.team-simple .tc.tm-mint { border-top: 3px solid var(--mint); }
.team-simple .tc.tm-lav  { border-top: 3px solid var(--lavender); }
.team-simple .tp { width: 120px; height: 120px; border-radius: 50%; overflow: hidden; flex-shrink: 0; border: 3px solid var(--mint-light); }
.team-simple .tc.tm-lav .tp { border-color: var(--lavender-light); }
.team-simple .tp img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.team-simple h3 { font-size: 17px; margin-bottom: 3px; }
.team-simple .role { font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.team-simple .tc.tm-mint .role { color: var(--mint-dark); }
.team-simple .tc.tm-lav .role  { color: var(--lavender-dark); }
.team-simple p { font-size: 14px; color: var(--text-mid); line-height: 1.6; }

/* ============ VALORI ============ */
.valori { padding: 56px 40px; background: linear-gradient(135deg, var(--mint-light) 0%, var(--lavender-light) 100%); }
.valori-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.valore-card { background: #fff; border-radius: 14px; padding: 28px 24px; text-align: center; box-shadow: 0 4px 16px rgba(0,0,0,0.04); }
.valore-num { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; font-size: 16px; font-weight: 600; color: #fff; }
.valore-card:nth-child(1) .valore-num { background: var(--teal); }
.valore-card:nth-child(2) .valore-num { background: var(--mint); }
.valore-card:nth-child(3) .valore-num { background: var(--lavender); }
.valore-card h3 { font-size: 18px; margin-bottom: 8px; }
.valore-card p { font-size: 14px; color: var(--text-mid); line-height: 1.7; }

/* ============ FAQ ============ */
.faq-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.faq-card { border-radius: 14px; padding: 22px; border: 1px solid var(--border); }
.faq-card.fl-mint { border-left: 4px solid var(--mint); }
.faq-card.fl-lav  { border-left: 4px solid var(--lavender); }
.faq-card.fl-peach{ border-left: 4px solid var(--peach); }
.faq-card h4 { font-size: 16px; margin-bottom: 10px; line-height: 1.4; }
.faq-card p { font-size: 14px; color: var(--text-mid); line-height: 1.7; }

/* ============ ANATOMIA ============ */
.anatomia { padding: 56px 40px; background: #fafaf8; }
.anatomia-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; max-width: 1000px; margin: 0 auto; }
.anatomia-image { border-radius: 16px; overflow: hidden; box-shadow: 0 8px 32px rgba(0,0,0,0.08); }
.anatomia-text h3 { font-size: 20px; margin-bottom: 12px; }
.anatomia-text p { font-size: 15px; color: var(--text-mid); line-height: 1.7; margin-bottom: 12px; }
.anatomia-bottom { text-align: center; margin-top: 24px; font-size: 15px; color: var(--text-mid); max-width: 650px; margin-left: auto; margin-right: auto; }
.anatomia-bottom strong { color: var(--teal); }

/* ============ CITAZIONE ============ */
.citazione { padding: 48px 40px; text-align: center; background: linear-gradient(135deg, var(--mint-light) 0%, #f0eff8 50%, var(--lavender-light) 100%); position: relative; }
.citazione::before { content: '\201C'; position: absolute; top: 16px; left: 40px; font-size: 80px; color: var(--teal); opacity: 0.1; font-family: Georgia, serif; line-height: 1; }
.citazione blockquote { font-size: 26px; font-weight: 300; max-width: 600px; margin: 0 auto; line-height: 1.5; }
.citazione blockquote strong { color: var(--teal); }

/* ============ CONFRONTO ============ */
.confronto-grid { display: grid; grid-template-columns: 1fr 60px 1fr; align-items: stretch; }
.confronto-card { border-radius: 16px; padding: 32px; text-align: center; }
.confronto-card.old { background: #fdf6f0; border: 1px solid rgba(249,190,146,0.3); border-top: 4px solid var(--peach); }
.confronto-card.new { background: var(--mint-light); border: 1px solid rgba(162,211,188,0.3); border-top: 4px solid var(--mint); }
.confronto-card h3 { font-size: 20px; margin-bottom: 20px; }
.confronto-card.old h3 { color: #b87a5e; }
.confronto-card.new h3 { color: var(--mint-dark); }
.confronto-card ul { list-style: none; text-align: left; }
.confronto-card li { padding: 12px 0; font-size: 15px; color: var(--text-mid); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; line-height: 1.5; }
.confronto-card li:last-child { border-bottom: none; }
.li-marker { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }
.confronto-card.old .li-marker { background: #f5ddd0; color: #b87a5e; }
.confronto-card.new .li-marker { background: #fff; color: var(--mint-dark); }
.confronto-vs { display: flex; align-items: center; justify-content: center; }
.confronto-vs span { width: 48px; height: 48px; border-radius: 50%; background: var(--lavender-light); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; color: var(--lavender-dark); box-shadow: 0 2px 8px rgba(0,0,0,0.06); }

/* ============ SEDUTA ============ */
.seduta { padding: 56px 40px; background: #fafaf8; }
.seduta-top { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; margin-bottom: 8px; }
.seduta-visual { display: flex; justify-content: center; }
.seduta-visual img { max-height: 360px; width: auto; border-radius: 12px; filter: drop-shadow(0 4px 20px rgba(0,0,0,0.06)); }
.seduta-text p { font-size: 16px; color: var(--text-mid); line-height: 1.8; margin-bottom: 14px; }

/* ============ CANDIDATI ============ */
.candidati { padding: 56px 40px; background: #f0f0ee; }
.candidati-intro { text-align: center; font-size: 16px; color: var(--text-mid); max-width: 700px; margin: 0 auto 32px; }
.candidato-card { background: #fff; border-radius: 14px; padding: 28px 18px; text-align: center; box-shadow: 0 4px 16px rgba(0,0,0,0.04); border-bottom: 3px solid transparent; }
.candidato-card:nth-child(1) { border-bottom-color: var(--peach); }
.candidato-card:nth-child(2) { border-bottom-color: var(--lavender); }
.candidato-card:nth-child(3) { border-bottom-color: var(--lime); }
.candidato-card:nth-child(4) { border-bottom-color: var(--mint); }
.candidato-card .cand-icon { width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; font-size: 22px; }
.candidato-card:nth-child(1) .cand-icon { background: var(--peach-light); }
.candidato-card:nth-child(2) .cand-icon { background: var(--lavender-light); }
.candidato-card:nth-child(3) .cand-icon { background: var(--lime-light); }
.candidato-card:nth-child(4) .cand-icon { background: var(--mint-light); }
.candidato-card h3 { font-size: 18px; margin-bottom: 4px; }
.candidato-card p { font-size: 13px; color: var(--text-mid); line-height: 1.5; }
.candidati-nota { padding: 14px 20px; border-radius: 12px; background: #fff; font-size: 14px; color: var(--text-mid); text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,0.04); margin-top: 20px; }

/* ============ GALLERY RISULTATI ============ */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
.gallery-card { background: #fff; border-radius: 16px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); overflow: hidden; padding: 16px; }
.gallery-card:nth-child(1) { border-top: 3px solid var(--peach); }
.gallery-card:nth-child(2) { border-top: 3px solid var(--mint); }
.gallery-card:nth-child(3) { border-top: 3px solid var(--lavender); }
.gallery-pair { display: flex; gap: 8px; }
.gallery-pair .img-col { flex: 1; text-align: center; }
.gallery-pair .img-col img { width: 100%; max-height: 350px; object-fit: cover; border-radius: 8px; }
.gallery-pair .img-col .label { font-size: 13px; color: var(--text-mid); margin-top: 8px; font-weight: 400; }
.gallery-note { text-align: center; margin-top: 40px; font-style: italic; color: var(--text-mid); font-size: 15px; max-width: 700px; margin-left: auto; margin-right: auto; }

/* ============ TESTIMONIALS ============ */
.testimonials { background: linear-gradient(135deg, var(--mint-light) 0%, var(--lavender-light) 100%); padding: 56px 40px; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
.testimonial-card { background: #fff; border-radius: 16px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); padding: 32px; text-align: center; }
.testimonial-card:nth-child(1) { border-left: 3px solid var(--peach); }
.testimonial-card:nth-child(2) { border-left: 3px solid var(--lavender); }
.testimonial-card:nth-child(3) { border-left: 3px solid var(--mint); }
.testimonial-card .quote { font-size: 15px; color: var(--text-mid); line-height: 1.7; font-style: italic; margin-bottom: 16px; }
.testimonial-card .heart { font-size: 24px; margin-bottom: 12px; }
.testimonial-card .name { font-weight: 600; font-size: 15px; color: var(--text-dark); margin-bottom: 4px; }
.testimonial-card .city { font-size: 14px; }

/* ============ CTA FINALE ============ */
.final-cta { padding: 56px 40px; text-align: center; background: linear-gradient(135deg, var(--mint) 0%, var(--lavender) 50%, var(--peach) 100%); }
.final-cta h2 { font-size: 30px; font-weight: 700; color: #fff; margin-bottom: 10px; text-shadow: 0 1px 4px rgba(0,0,0,0.1); }
.final-cta p { font-size: 17px; color: rgba(255,255,255,0.92); margin-bottom: 24px; font-weight: 300; }
.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============ CONTATTI ============ */
.contatti { padding: 56px 40px; }
.contatti-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.info-block { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 24px; }
.info-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--mint-light); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.info-block:nth-child(2) .info-icon { background: var(--lavender-light); }
.info-block:nth-child(3) .info-icon { background: var(--peach-light); }
.info-block:nth-child(4) .info-icon { background: var(--lime-light); }
.info-block h3 { font-size: 16px; margin-bottom: 2px; }
.info-block p, .info-block a { font-size: 15px; color: var(--text-mid); text-decoration: none; line-height: 1.6; }
.info-block a:hover { color: var(--teal); }
.contact-form { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 32px; box-shadow: 0 4px 16px rgba(0,0,0,0.04); }
.contact-form label { display: block; font-size: 14px; font-weight: 500; color: var(--text-dark); margin-bottom: 6px; margin-top: 16px; }
.contact-form label:first-of-type { margin-top: 0; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px;
  font-family: var(--font); font-size: 15px; font-weight: 300; color: var(--text-dark); background: #fcfcfb;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--mint); }
.contact-form textarea { resize: vertical; min-height: 110px; }
.contact-form .btn { margin-top: 22px; width: 100%; justify-content: center; cursor: pointer; border: none; }
.form-privacy { font-size: 12px; color: var(--text-light); margin-top: 14px; line-height: 1.5; }
.map-embed { margin-top: 8px; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; }

/* ============ FOOTER ============ */
.site-footer { background: var(--text-dark); color: rgba(255,255,255,0.6); padding: 40px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; margin-bottom: 28px; }
.footer-brand .logo { font-size: 18px; font-weight: 600; color: #fff; letter-spacing: 1px; margin-bottom: 8px; }
.footer-brand p { font-size: 13px; line-height: 1.6; max-width: 280px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.85); margin-bottom: 12px; }
.footer-col a { display: block; color: rgba(255,255,255,0.6); text-decoration: none; font-size: 14px; margin-bottom: 8px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 18px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: rgba(255,255,255,0.4); flex-wrap: wrap; gap: 8px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .topbar, .navbar, .section, .valori, .anatomia, .seduta, .candidati,
  .testimonials, .final-cta, .centro-pilota, .contatti, .citazione, .quote-bar { padding-left: 28px; padding-right: 28px; }
  .hero-home-content, .page-hero-content { padding-left: 36px; padding-right: 36px; }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .seduta-top { grid-template-columns: 1fr; }
  .gallery-grid, .testimonials-grid { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .navbar { flex-wrap: wrap; }
  .navbar-links {
    display: none; flex-direction: column; align-items: flex-start;
    width: 100%; gap: 4px; padding: 12px 0 4px;
  }
  .navbar-links.open { display: flex; }
  .navbar-links a { padding: 8px 0; font-size: 16px; }
  .navbar-actions { display: none; width: 100%; gap: 10px; }
  .navbar-actions.open { display: flex; }
  .navbar-cta { flex: 1; text-align: center; justify-content: center; }

  .cards-4, .cards-3, .faq-grid, .valori-grid { grid-template-columns: 1fr; }
  .split, .anatomia-layout, .contatti-grid { grid-template-columns: 1fr; gap: 28px; }
  .team-grid, .team-simple { grid-template-columns: 1fr; }
  .confronto-grid { grid-template-columns: 1fr; gap: 16px; }
  .confronto-vs { display: none; }

  .hero-home { height: auto; min-height: 440px; }
  .hero-home-content { max-width: 100%; padding: 32px 24px; }
  .hero-home h1 { font-size: 28px; }
  .page-hero { height: 300px; }
  .page-hero-content { padding: 24px; }
  .page-hero h1, .hero-home h1 { font-size: 28px; }
  .section-title { font-size: 24px; }
  .quote-bar p { font-size: 20px; }
  .citazione blockquote { font-size: 22px; }

  .footer-top { flex-direction: column; gap: 20px; }
}

@media (max-width: 480px) {
  .topbar { font-size: 11px; padding: 8px 18px; }
  .navbar, .section, .valori, .anatomia, .seduta, .candidati, .testimonials,
  .final-cta, .centro-pilota, .contatti { padding-left: 18px; padding-right: 18px; }
  .cards-4 { grid-template-columns: 1fr; }
  .candidato-card, .icon-card { text-align: left; }
  .hero-home h1, .page-hero h1 { font-size: 24px; }
  .cp-inner { flex-direction: column; text-align: center; }
  .final-cta h2 { font-size: 24px; }
  .btn, .cta-buttons a { width: 100%; justify-content: center; }
}

/* =========================================================
   COMPONENTI INTERATTIVI — slider prima/dopo + flip card
   ========================================================= */

/* ----- Slider prima/dopo ----- */
.ba { position: relative; width: 100%; aspect-ratio: 333 / 800; max-width: 300px; margin: 0 auto; border-radius: 10px; overflow: hidden; touch-action: none; user-select: none; background: #ececec; }
.ba-layer { position: absolute; inset: 0; }
.ba-layer img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.ba-before { clip-path: inset(0 calc(100% - var(--p, 50%)) 0 0); }
.ba-label { position: absolute; top: 12px; font-size: 12px; font-weight: 600; color: #fff; background: rgba(44,44,42,0.6); padding: 4px 10px; border-radius: 20px; pointer-events: none; z-index: 3; }
.ba-label-l { left: 12px; }
.ba-label-r { right: 12px; }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--p, 50%); width: 3px; background: #fff; box-shadow: 0 0 6px rgba(0,0,0,0.3); transform: translateX(-50%); pointer-events: none; z-index: 2; }
.ba-line::after { content: '\2194'; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--teal); display: flex; align-items: center; justify-content: center; font-size: 17px; box-shadow: 0 2px 8px rgba(0,0,0,0.25); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 4; }

/* ----- Card testimonianze (flip) ----- */
.t-card { perspective: 1200px; min-height: 360px; }
.t-card-inner { position: relative; width: 100%; height: 100%; min-height: 360px; transition: transform 0.7s; transform-style: preserve-3d; cursor: pointer; }
.t-card:hover .t-card-inner, .t-card.flipped .t-card-inner { transform: rotateY(180deg); }
.t-face { position: absolute; inset: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden; border-radius: 16px; background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,0.06); padding: 26px 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.t-card.accent-peach .t-front { border-left: 3px solid var(--peach); }
.t-card.accent-lav .t-front { border-left: 3px solid var(--lavender); }
.t-card.accent-mint .t-front { border-left: 3px solid var(--mint); }
.t-front .heart { font-size: 24px; margin-bottom: 12px; }
.t-front .name { font-weight: 600; font-size: 15px; color: var(--text-dark); margin-bottom: 4px; }
.t-front .city { font-size: 14px; margin-bottom: 14px; }
.flip-hint { font-size: 12px; color: var(--text-light); }
.t-back { transform: rotateY(180deg); background: #fff; }
.t-back .quote { font-size: 13.5px; font-style: italic; color: var(--text-mid); line-height: 1.5; margin-bottom: 12px; }
.t-back .name { font-size: 13px; font-weight: 600; color: var(--text-dark); }

/* ----- Pannello contatti (WhatsApp / telefono / email) ----- */
.contact-panel { display: flex; flex-direction: column; gap: 14px; }
.contact-row { display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-radius: 14px; text-decoration: none; border: 1px solid var(--border); background: #fff; transition: transform 0.2s, box-shadow 0.2s; }
.contact-row:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.07); }
.contact-row .cr-icon { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; color: #fff; }
.contact-row.wa   { border-left: 4px solid var(--mint); }
.contact-row.wa .cr-icon { background: var(--mint); }
.contact-row.call { border-left: 4px solid var(--lavender); }
.contact-row.call .cr-icon { background: var(--lavender); }
.contact-row.mail { border-left: 4px solid var(--peach); }
.contact-row.mail .cr-icon { background: var(--peach); }
.contact-row .cr-text { color: var(--text-mid); font-size: 14px; line-height: 1.4; }
.contact-row .cr-text strong { color: var(--text-dark); font-size: 16px; }

/* Mappa centrata (pagina contatti) */
.map-full { max-width: 920px; margin: 40px auto 0; }
.map-full iframe { height: 380px; }
