/* ============================================================
   PROFESSIONE SVILUPPO — Design System v2
   Studio Dr. Alberto Grelli, Tivoli (RM)
   ============================================================ */

/* RESET & BASE */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: #4A4540;
  background-color: #FAF4EC;
  -webkit-font-smoothing: antialiased;
}

/* PALETTE */
:root {
  --navy:       #1B2E4B;
  --forest:     #2D5A3D;
  --terracotta: #C4622D;
  --cream:      #FAF4EC;
  --warm-grey:  #4A4540;
  --muted:      rgba(250,244,236,0.5);
  --muted-nav:  rgba(250,244,236,0.75);
  --card-bg:    rgba(255,255,255,0.05);
  --card-border:rgba(250,244,236,0.1);
  --max-w:      1200px;
}

/* TYPOGRAPHY */
h1, h2, h3 { font-family: 'Zilla Slab', serif; font-weight: 700; line-height: 1.12; letter-spacing: -0.01em; }
h1 { font-size: clamp(36px, 5vw, 60px); }
h2 { font-size: clamp(28px, 3.5vw, 44px); }
h3 { font-size: clamp(18px, 2vw, 24px); }
p { line-height: 1.7; }
a { text-decoration: none; color: inherit; }

.eyebrow {
  font-family: 'Inter', sans-serif; font-weight: 500; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--terracotta);
  display: block; margin-bottom: 14px;
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-left {
  opacity: 0; transform: translateX(-40px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.reveal-left.revealed { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0; transform: translateX(40px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.reveal-right.revealed { opacity: 1; transform: translateX(0); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up  { animation: fadeUp 0.7s cubic-bezier(0.22,1,0.36,1) forwards; }
.fade-up-2{ animation: fadeUp 0.7s 0.15s cubic-bezier(0.22,1,0.36,1) both; }
.fade-up-3{ animation: fadeUp 0.7s 0.30s cubic-bezier(0.22,1,0.36,1) both; }
.fade-up-4{ animation: fadeUp 0.7s 0.45s cubic-bezier(0.22,1,0.36,1) both; }

/* ============================================================
   FINGERPRINT WATERMARK
   ============================================================ */
.fp-watermark {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: 420px;
  height: 500px;
  opacity: 0.07;
  pointer-events: none;
  background: url('assets/fingerprint-bg.svg') center/contain no-repeat;
  z-index: 0;
}
.fp-watermark-left {
  position: absolute;
  left: -80px;
  top: 50%;
  transform: translateY(-50%);
  width: 380px;
  height: 460px;
  opacity: 0.06;
  pointer-events: none;
  background: url('assets/fingerprint-bg.svg') center/contain no-repeat;
  z-index: 0;
}
.fp-watermark-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  width: 500px;
  height: 600px;
  opacity: 0.05;
  pointer-events: none;
  background: url('assets/fingerprint-bg.svg') center/contain no-repeat;
  z-index: 0;
}

/* ============================================================
   CONSTELLATION SVG
   ============================================================ */
.constellation-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.constellation-svg {
  width: 100%;
  height: 100%;
  opacity: 0.25;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 40px; }
section { padding: 88px 0; position: relative; overflow: hidden; }
section.dark { background: var(--navy); }
section.forest { background: var(--forest); }
section.cream { background: var(--cream); }
.z1 { position: relative; z-index: 1; }

@media (max-width: 768px) { .container { padding: 0 20px; } section { padding: 52px 0; } }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: sticky; top: 0; z-index: 100; height: 64px;
  background: var(--navy); border-bottom: 0.5px solid rgba(255,255,255,0.06);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Zilla Slab', serif; font-weight: 700; font-size: 15px;
  color: var(--cream); letter-spacing: 0.01em; text-transform: lowercase;
}
.nav-logo img {
  height: 68px; width: auto;
  filter: brightness(0) invert(1); /* turns navy/black logo → white */
}
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { font-size: 13px; font-weight: 400; color: var(--muted-nav); transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--cream); }
.nav-cta {
  background: var(--terracotta); color: var(--cream) !important;
  padding: 8px 18px; border-radius: 4px; font-weight: 500; transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.88; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--cream); transition: 0.3s; }
.mobile-menu {
  display: none; position: fixed; inset: 0; background: var(--navy);
  z-index: 99; flex-direction: column; align-items: center; justify-content: center; gap: 32px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-family: 'Zilla Slab', serif; font-size: 28px; color: var(--cream); font-weight: 700; }
.mobile-menu .m-cta { background: var(--terracotta); padding: 12px 32px; border-radius: 4px; font-size: 18px; }
.mobile-close { position: absolute; top: 20px; right: 24px; color: var(--cream); font-size: 32px; cursor: pointer; background: none; border: none; }
@media (max-width: 900px) { .nav-links { display: none; } .hamburger { display: flex; } }

/* ============================================================
   HERO — SPLIT (rovine + navy/costellazione)
   ============================================================ */
.hero-split {
  display: grid;
  grid-template-columns: 42% 58%;
  min-height: 580px;
  overflow: hidden;
}
.hero-photo-side {
  position: relative;
  overflow: hidden;
}
.hero-photo-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 8s ease;
}
.hero-photo-side:hover img { transform: scale(1.04); }
.hero-photo-side-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(27,46,75,0.1) 0%, rgba(27,46,75,0.55) 100%);
}

/* Fallback if no photo */
.hero-photo-side-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #2a3f5f 0%, #1B2E4B 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: rgba(250,244,236,0.3);
  font-style: italic;
  padding: 20px;
  text-align: center;
}

.hero-content-side {
  background: var(--navy);
  position: relative;
  display: flex;
  align-items: center;
  padding: 64px 56px;
  overflow: hidden;
}
.hero-content-inner { position: relative; z-index: 1; width: 100%; }
.hero-title {
  font-size: clamp(32px, 4vw, 56px);
  color: var(--cream); margin-bottom: 20px; line-height: 1.08;
}
.hero-sub {
  font-size: 16px; color: var(--muted); max-width: 440px; margin-bottom: 36px; line-height: 1.7;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--terracotta); color: var(--cream); padding: 13px 24px;
  border-radius: 4px; font-weight: 500; font-size: 14px; transition: opacity 0.2s;
  cursor: pointer; border: none;
}
.btn-primary:hover { opacity: 0.88; }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 6px;
  color: rgba(250,244,236,0.65); font-size: 14px; transition: color 0.2s;
}
.btn-secondary:hover { color: var(--cream); }
.hero-btns { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-bottom: 48px; }

/* Stat grid inside hero */
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.hero-stat {
  background: rgba(255,255,255,0.04);
  padding: 20px 18px;
  border: 0.5px solid rgba(255,255,255,0.05);
}
.hero-stat .num {
  font-family: 'Zilla Slab', serif; font-size: 36px; font-weight: 700;
  color: var(--cream); line-height: 1; margin-bottom: 5px;
}
.hero-stat .lbl { font-size: 11px; color: var(--muted); line-height: 1.4; }
.stats-tag { margin-top: 10px; font-size: 10px; color: rgba(250,244,236,0.3); letter-spacing: 0.1em; }

@media (max-width: 1024px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-photo-side { height: 300px; }
  .hero-content-side { padding: 48px 32px; }
}
@media (max-width: 600px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stat .num { font-size: 28px; }
}

/* ============================================================
   SECTION HEADER PATTERN
   ============================================================ */
.section-header { margin-bottom: 52px; }
.section-header h2 { color: var(--navy); }
.section-header.light h2 { color: var(--cream); }
.section-header p { font-size: 16px; color: #6B6560; max-width: 560px; margin-top: 14px; }
.section-header.light p { color: var(--muted); }

/* ============================================================
   PHOTO SECTIONS
   ============================================================ */
.photo-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 420px;
}
.photo-split-img {
  position: relative;
  overflow: hidden;
}
.photo-split-img img {
  width: 100%; height: 100%; object-fit: cover;
  display: block; transition: transform 0.6s ease;
}
.photo-split-img:hover img { transform: scale(1.04); }
.photo-split-content {
  background: var(--navy);
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.photo-split-content.light {
  background: var(--cream);
}
.photo-split-content h2 { color: var(--cream); margin-bottom: 16px; }
.photo-split-content.light h2 { color: var(--navy); }
.photo-split-content p { color: var(--muted); font-size: 15px; line-height: 1.7; margin-bottom: 24px; }
.photo-split-content.light p { color: #6B6560; }

@media (max-width: 768px) { .photo-split { grid-template-columns: 1fr; } }

/* Photo trio grid */
.photo-trio {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}
.photo-trio-item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 6px;
}
.photo-trio-item img {
  width: 100%; height: 100%; object-fit: cover;
  display: block; transition: transform 0.5s ease;
}
.photo-trio-item:hover img { transform: scale(1.06); }
.photo-trio-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(27,46,75,0.8) 0%, transparent 100%);
  padding: 16px 14px 12px;
  font-size: 11px;
  color: rgba(250,244,236,0.7);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media (max-width: 768px) { .photo-trio { grid-template-columns: 1fr; } }

/* Fallback photo placeholder */
.photo-placeholder-styled {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(27,46,75,0.08) 0%, rgba(196,98,45,0.05) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: #9B9490; font-style: italic; text-align: center; padding: 20px;
  border: 1px dashed rgba(27,46,75,0.15);
}

/* ============================================================
   SERVIZI CARDS
   ============================================================ */
.servizi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.servizio-card {
  background: var(--cream); border: 1px solid rgba(27,46,75,0.1); border-radius: 8px; padding: 36px 28px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.servizio-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(27,46,75,0.1); }
.servizio-card .num-label { font-size: 11px; font-weight: 500; color: var(--terracotta); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px; }
.servizio-card h3 { color: var(--navy); margin-bottom: 14px; }
.servizio-card p { font-size: 14px; color: #6B6560; line-height: 1.65; }
@media (max-width: 900px) { .servizi-grid { grid-template-columns: 1fr; gap: 16px; } }

/* ============================================================
   PROGETTI CARDS (dark background)
   ============================================================ */
.progetti-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.progetto-card {
  background: var(--card-bg); border: 0.5px solid var(--card-border); border-radius: 8px;
  padding: 28px 24px; display: flex; flex-direction: column;
  transition: border-color 0.25s, transform 0.25s;
}
.progetto-card:hover { border-color: rgba(250,244,236,0.3); transform: translateY(-3px); }
.tag-badge {
  display: inline-block; font-size: 10px; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.08em; padding: 4px 8px; border-radius: 3px;
  background: rgba(196,98,45,0.15); color: var(--terracotta); margin-bottom: 16px;
}
.progetto-card h3 { color: var(--cream); margin-bottom: 10px; font-size: 20px; }
.progetto-card .desc { font-size: 13px; color: var(--muted); line-height: 1.6; flex: 1; }
.card-stat {
  border-top: 0.5px solid rgba(250,244,236,0.1); margin-top: 24px; padding-top: 18px;
  display: flex; align-items: center; justify-content: space-between;
}
.card-stat .big-num {
  font-family: 'Zilla Slab', serif; font-size: 30px; font-weight: 700; color: var(--terracotta); line-height: 1;
}
.card-stat .stat-lbl { font-size: 11px; color: var(--muted); margin-top: 4px; }
.card-stat .arrow { color: var(--muted); font-size: 18px; transition: color 0.2s, transform 0.2s; }
.card-stat a:hover .arrow { color: var(--cream); transform: translateX(4px); }
@media (max-width: 900px) { .progetti-grid { grid-template-columns: 1fr; } }

/* ============================================================
   ANIMATED COUNTERS
   ============================================================ */
.counter-num { display: inline-block; }

/* ============================================================
   TESTIMONIANZA
   ============================================================ */
.testimonianza { background: var(--forest); }
.testi-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; align-items: center; }
.testi-who .avatar {
  width: 56px; height: 56px; background: rgba(250,244,236,0.1); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
  font-family: 'Zilla Slab', serif; font-size: 18px; color: var(--cream); font-weight: 700;
}
.testi-who .name { font-family: 'Zilla Slab', serif; font-weight: 700; font-size: 20px; color: var(--cream); margin-bottom: 6px; }
.testi-who .role { font-size: 13px; color: rgba(250,244,236,0.6); }
.testi-quote { border-left: 3px solid var(--terracotta); padding-left: 28px; }
.testi-quote p { font-family: 'Zilla Slab', serif; font-size: 22px; font-weight: 400; font-style: italic; color: var(--cream); line-height: 1.55; }
@media (max-width: 768px) { .testi-grid { grid-template-columns: 1fr; gap: 28px; } .testi-quote p { font-size: 18px; } }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section { background: var(--navy); text-align: center; overflow: hidden; position: relative; }
.cta-section h2 { color: var(--cream); margin-bottom: 12px; position: relative; z-index: 1; }
.cta-section p { color: var(--muted); font-size: 16px; margin-bottom: 36px; position: relative; z-index: 1; }
.cta-contacts { display: flex; justify-content: center; gap: 48px; margin-bottom: 36px; flex-wrap: wrap; position: relative; z-index: 1; }
.cta-contact-item { text-align: center; }
.cta-contact-item .val { font-family: 'Zilla Slab', serif; font-size: 20px; color: var(--cream); }
.cta-contact-item .meta { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ============================================================
   FOOTER
   ============================================================ */
footer { background: var(--navy); border-top: 0.5px solid rgba(250,244,236,0.08); padding: 28px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-copy { font-size: 12px; color: rgba(250,244,236,0.35); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 12px; color: rgba(250,244,236,0.4); transition: color 0.2s; }
.footer-links a:hover { color: var(--cream); }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero { background: var(--navy); padding: 72px 0 64px; position: relative; overflow: hidden; }
.page-hero h1 { color: var(--cream); margin-bottom: 16px; position: relative; z-index: 1; }
.page-hero p { color: var(--muted); font-size: 17px; max-width: 600px; line-height: 1.65; position: relative; z-index: 1; }
.page-hero .eyebrow { position: relative; z-index: 1; }

/* ============================================================
   SCHEDA PROGETTO
   ============================================================ */
.stat-bar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: rgba(27,46,75,0.1); border-radius: 6px; overflow: hidden; margin: 40px 0;
}
.stat-bar-item { background: var(--cream); padding: 24px 20px; text-align: center; }
.stat-bar-item .n {
  font-family: 'Zilla Slab', serif; font-size: 36px; font-weight: 700;
  color: var(--navy); line-height: 1; margin-bottom: 6px;
}
.stat-bar-item .l { font-size: 12px; color: #9B9490; }
@media (max-width: 768px) { .stat-bar { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .stat-bar { grid-template-columns: 1fr; } }

.project-body { max-width: 760px; }
.project-body h2 { color: var(--navy); margin-bottom: 20px; font-size: 28px; }
.project-body p { color: var(--warm-grey); font-size: 15px; line-height: 1.75; margin-bottom: 16px; }

.checklist { list-style: none; margin-top: 12px; }
.checklist li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 0; border-bottom: 0.5px solid rgba(27,46,75,0.07);
  font-size: 14px; color: var(--warm-grey);
}
.checklist li::before { content: '✓'; color: var(--forest); font-weight: 700; font-size: 15px; flex-shrink: 0; margin-top: 1px; }
.checklist li:last-child { border-bottom: none; }
.project-section { margin-bottom: 56px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.badge {
  font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 5px 10px; border-radius: 3px; background: rgba(27,46,75,0.08);
  color: var(--navy); border: 0.5px solid rgba(27,46,75,0.15);
}

/* ============================================================
   REEL GRID
   ============================================================ */
.reel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.reel-embed {
  border-radius: 8px; overflow: hidden; aspect-ratio: 9/16;
  background: var(--navy);
  transition: transform 0.3s;
}
.reel-embed:hover { transform: scale(1.02); }
.reel-embed iframe { width: 100%; height: 100%; border: none; display: block; }
@media (max-width: 900px) { .reel-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .reel-grid { grid-template-columns: 1fr; } }

/* ============================================================
   CHI SIAMO PAGE
   ============================================================ */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-bottom: 64px; }
.team-card { border-top: 3px solid var(--terracotta); padding-top: 24px; }
.team-card .role-tag { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: var(--terracotta); margin-bottom: 10px; }
.team-card h3 { color: var(--navy); margin-bottom: 14px; font-size: 22px; }
.team-card p { font-size: 14px; color: #6B6560; line-height: 1.65; margin-bottom: 12px; }
.team-card .contact { font-size: 13px; color: var(--navy); font-weight: 500; }
.team-card .team-photo {
  width: 100%; aspect-ratio: 4/3; overflow: hidden; border-radius: 6px; margin-bottom: 20px;
}
.team-card .team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.5s; }
.team-card:hover .team-photo img { transform: scale(1.04); }
@media (max-width: 900px) { .team-grid { grid-template-columns: 1fr; } }

.territorio-block {
  background: var(--navy); border-radius: 8px; padding: 48px 40px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  position: relative; overflow: hidden;
}
.territorio-block h3 { color: var(--cream); font-size: 28px; margin-bottom: 16px; position: relative; z-index: 1; }
.territorio-block p { color: var(--muted); font-size: 14px; line-height: 1.7; position: relative; z-index: 1; }
.territorio-map { border-radius: 6px; overflow: hidden; height: 260px; }
.territorio-map iframe { width: 100%; height: 100%; border: none; }
@media (max-width: 768px) { .territorio-block { grid-template-columns: 1fr; } }

/* ============================================================
   SERVIZI PAGE
   ============================================================ */
.servizio-detail {
  padding: 52px 0; border-bottom: 0.5px solid rgba(27,46,75,0.1);
  display: grid; grid-template-columns: 1fr 2fr; gap: 64px; align-items: start;
}
.servizio-detail:last-child { border-bottom: none; }
.servizio-num { font-family: 'Zilla Slab', serif; font-size: 72px; font-weight: 700; color: rgba(27,46,75,0.07); line-height: 1; }
.servizio-detail h3 { color: var(--navy); font-size: 26px; margin-bottom: 14px; }
.servizio-detail p { color: #6B6560; font-size: 15px; line-height: 1.7; margin-bottom: 16px; }
.servizio-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.servizio-tag { font-size: 11px; padding: 5px 10px; border-radius: 3px; background: rgba(27,46,75,0.06); color: var(--navy); font-weight: 500; }
@media (max-width: 768px) { .servizio-detail { grid-template-columns: 1fr; gap: 20px; } .servizio-num { font-size: 48px; } }

/* ============================================================
   FINANZA AGEVOLATA
   ============================================================ */
.fondi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 16px; }
.fondo-card { background: var(--card-bg); border: 0.5px solid var(--card-border); border-radius: 8px; padding: 28px 24px; }
.fondo-card .f-num { font-family: 'Zilla Slab', serif; font-size: 48px; font-weight: 700; color: var(--terracotta); line-height: 1; margin-bottom: 8px; }
.fondo-card .f-label { font-size: 13px; color: var(--muted); }
.fondo-card .f-title { font-family: 'Zilla Slab', serif; font-size: 18px; color: var(--cream); margin-bottom: 10px; }
.fondo-card .f-desc { font-size: 13px; color: var(--muted); line-height: 1.6; }
@media (max-width: 768px) { .fondi-grid { grid-template-columns: 1fr; } }

.metodo-steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { position: relative; padding-top: 20px; border-top: 3px solid var(--terracotta); }
.step-num { font-family: 'Zilla Slab', serif; font-size: 13px; font-weight: 700; color: var(--terracotta); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; }
.step h4 { font-family: 'Zilla Slab', serif; font-size: 18px; color: var(--navy); margin-bottom: 10px; }
.step p { font-size: 13px; color: #6B6560; line-height: 1.65; }
@media (max-width: 900px) { .metodo-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .metodo-steps { grid-template-columns: 1fr; } }

/* ============================================================
   CONTATTI PAGE
   ============================================================ */
.contatti-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.contatti-info h3 { color: var(--navy); font-size: 22px; margin-bottom: 24px; }
.info-row { display: flex; gap: 16px; align-items: flex-start; padding: 14px 0; border-bottom: 0.5px solid rgba(27,46,75,0.08); }
.info-row:last-child { border-bottom: none; }
.info-row .label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--terracotta); font-weight: 500; min-width: 80px; margin-top: 2px; }
.info-row .val { font-size: 15px; color: var(--navy); font-weight: 500; }
.info-row .val a { color: var(--navy); }
.info-row .val a:hover { color: var(--terracotta); }
.contact-form label { display: block; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--navy); margin-bottom: 6px; margin-top: 20px; }
.contact-form label:first-child { margin-top: 0; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 11px 14px; border: 1px solid rgba(27,46,75,0.18); border-radius: 4px;
  font-family: 'Inter', sans-serif; font-size: 14px; color: var(--warm-grey); background: #fff;
  transition: border-color 0.2s; appearance: none;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--navy); }
.contact-form textarea { height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; margin-top: 20px; }
.checkbox-row input[type="checkbox"] { margin-top: 3px; width: auto; accent-color: var(--navy); }
.checkbox-row label { font-size: 12px; font-weight: 400; text-transform: none; letter-spacing: 0; color: #6B6560; margin-top: 0; }
.form-submit { margin-top: 24px; }
@media (max-width: 768px) { .contatti-grid { grid-template-columns: 1fr; gap: 40px; } .form-row { grid-template-columns: 1fr; } }

/* ============================================================
   PROGETTI INDEX
   ============================================================ */
.filter-bar { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.filter-btn {
  padding: 8px 16px; border-radius: 3px; font-size: 12px; font-weight: 500; letter-spacing: 0.06em;
  cursor: pointer; transition: 0.2s; border: 1px solid rgba(250,244,236,0.2); background: transparent; color: var(--muted);
}
.filter-btn.active, .filter-btn:hover { background: var(--terracotta); border-color: var(--terracotta); color: var(--cream); }

/* ============================================================
   PROJECT CTA (bottom of scheda)
   ============================================================ */
.project-cta {
  background: var(--navy); border-radius: 8px; padding: 48px 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-top: 64px;
  position: relative; overflow: hidden;
}
.project-cta h3 { color: var(--cream); font-size: 26px; position: relative; z-index: 1; }
.project-cta p { color: var(--muted); font-size: 14px; margin-top: 8px; position: relative; z-index: 1; }
.project-cta .btn-primary { position: relative; z-index: 1; }

/* ============================================================
   FD PAGE — Progress bars & Chart
   ============================================================ */
.progress-item { margin-bottom: 24px; }
.progress-label {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px; font-size: 13px; color: var(--cream);
}
.progress-label .pct { font-family: 'Zilla Slab', serif; font-size: 16px; font-weight: 700; color: var(--terracotta); }
.progress-bar-track {
  height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; overflow: hidden;
}
.progress-bar-fill {
  height: 100%; background: var(--terracotta); border-radius: 3px;
  width: 0; transition: width 1.2s cubic-bezier(0.22,1,0.36,1);
}
.progress-bar-fill.animated { width: var(--target-width); }

/* Growth chart bars */
.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 160px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(250,244,236,0.15);
  position: relative;
}
.chart-bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.chart-bar {
  width: 100%; border-radius: 3px 3px 0 0;
  background: rgba(196,98,45,0.5);
  transition: height 1.4s cubic-bezier(0.22,1,0.36,1), background 0.3s;
  min-height: 4px;
}
.chart-bar.reached { background: var(--terracotta); }
.chart-bar:hover { background: var(--terracotta) !important; filter: brightness(1.2); }
.chart-label { font-size: 10px; color: rgba(250,244,236,0.5); text-align: center; white-space: nowrap; }
.chart-value { font-size: 10px; color: rgba(250,244,236,0.7); font-weight: 500; }
.chart-target-line {
  position: absolute;
  left: 0; right: 0;
  border-top: 1px dashed rgba(250,244,236,0.3);
  font-size: 10px; color: rgba(250,244,236,0.4);
  padding-left: 4px;
}

/* Sedi punti */
.sede-item {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 0; border-bottom: 0.5px solid rgba(250,244,236,0.08);
}
.sede-item:last-child { border-bottom: none; }
.sede-name { font-size: 13px; font-weight: 500; color: var(--cream); min-width: 180px; }
.sede-bar-track { flex: 1; height: 4px; background: rgba(255,255,255,0.08); border-radius: 2px; overflow: hidden; }
.sede-bar-fill { height: 100%; background: var(--terracotta); border-radius: 2px; width: 0; transition: width 1.2s cubic-bezier(0.22,1,0.36,1); }
.sede-pct { font-size: 12px; color: var(--terracotta); font-weight: 500; min-width: 50px; text-align: right; }

/* ============================================================
   MARQUEE STRIP
   ============================================================ */
.marquee-strip {
  background: var(--terracotta);
  overflow: hidden;
  padding: 15px 0;
  white-space: nowrap;
  position: relative;
  z-index: 2;
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 0;
  animation: marquee-scroll 30s linear infinite;
  will-change: transform;
}
.marquee-strip:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(250,244,236,0.92);
}
.marquee-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: rgba(250,244,236,0.45);
  border-radius: 50%;
  flex-shrink: 0;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   SCROLL CURTAIN REVEAL
   ============================================================ */
.curtain-reveal {
  clip-path: inset(80px 0 0 0);
  opacity: 0;
  transform: translateY(24px);
  transition:
    clip-path 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.7s ease,
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.curtain-reveal.revealed {
  clip-path: inset(0px 0 0 0);
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   STATEMENT BAND (full-width manifesto between sections)
   ============================================================ */
.statement-band {
  background: var(--cream);
  padding: 80px 0;
  overflow: hidden;
}
.statement-band .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}
.statement-line {
  font-family: 'Zilla Slab', serif;
  font-size: clamp(28px, 4.5vw, 56px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.statement-line.revealed { opacity: 1; transform: translateY(0); }
.statement-line:nth-child(2) { transition-delay: 0.12s; }
.statement-line:nth-child(3) { transition-delay: 0.24s; }
.statement-accent {
  color: var(--terracotta);
}
.statement-sub {
  font-size: 16px;
  color: #6B6560;
  margin-top: 12px;
  max-width: 480px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease 0.36s, transform 0.6s ease 0.36s;
}
.statement-sub.revealed { opacity: 1; transform: translateY(0); }

/* ============================================================
   UTILITY
   ============================================================ */
.text-center { text-align: center; }
.divider { height: 0.5px; background: rgba(27,46,75,0.1); margin: 0; border: none; }
