@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=DM+Sans:wght@300;400;500;700&display=swap');

:root {
  --primary: #1b2a4a;
  --accent: #c9a96e;
  --bg: #faf8f4;
  --text: #2a2a2a;
  --primary-dark: #0f1a30;
  --primary-light: #f0ebe0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; }

/* ── FADE-IN ── */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fd1 { transition-delay: 0.1s; }
.fd2 { transition-delay: 0.2s; }
.fd3 { transition-delay: 0.3s; }
.fd4 { transition-delay: 0.4s; }
.fd5 { transition-delay: 0.5s; }

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.35s, box-shadow 0.35s, padding 0.35s;
  padding: 1.2rem 2rem;
}
.navbar.scrolled {
  background: rgba(15,26,48,0.96);
  backdrop-filter: blur(14px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.22);
  padding: 0.75rem 2rem;
}
.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}
.nav-logo span { color: var(--accent); }
.nav-links {
  display: none;
  gap: 2rem;
  list-style: none;
}
@media (min-width: 640px) { .nav-links { display: flex; } }
.nav-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  background: var(--accent) !important;
  color: var(--primary-dark) !important;
  font-weight: 700 !important;
  padding: 0.42rem 1.2rem;
  border-radius: 50px;
}
.nav-cta:hover { opacity: 0.9; }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #0d1b2e 0%, #1b2a4a 50%, #253a5e 100%);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 80% 15%, rgba(201,169,110,0.15) 0%, transparent 55%),
    radial-gradient(ellipse at 10% 85%, rgba(37,58,94,0.35) 0%, transparent 50%);
  pointer-events: none;
}
.hero-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 7rem 2rem 5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr 1fr;
    padding: 9rem 3rem 7rem;
  }
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,204,0,0.15);
  border: 1px solid rgba(255,204,0,0.35);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.38rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: blink 1.5s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.3rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 1.2rem;
}
.hero-title em {
  font-style: normal;
  color: var(--accent);
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.18rem);
  color: rgba(255,255,255,0.78);
  font-weight: 300;
  margin-bottom: 2.5rem;
  max-width: 480px;
}
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--accent);
  color: var(--primary-dark);
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 1rem 2.2rem;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(201,169,110,0.38);
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}
.btn-cta:hover {
  background: #d9b97e;
  transform: translateY(-3px);
  box-shadow: 0 10px 36px rgba(201,169,110,0.52);
}
.btn-cta svg { width: 18px; height: 18px; }

.hero-image-wrap {
  display: flex;
  justify-content: center;
  position: relative;
}
.hero-ring {
  position: absolute;
  width: 270px; height: 270px;
  border-radius: 50%;
  background: rgba(255,204,0,0.1);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse-hero 3.5s ease-in-out infinite;
}
@keyframes pulse-hero {
  0%, 100% { transform: translate(-50%,-50%) scale(1); opacity: 0.7; }
  50% { transform: translate(-50%,-50%) scale(1.08); opacity: 1; }
}
.profile-photo-hero {
  width: 230px; height: 230px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid var(--accent);
  box-shadow: 0 14px 55px rgba(0,0,0,0.38), 0 0 0 14px rgba(201,169,110,0.15);
  position: relative;
  z-index: 1;
}

/* ── SECTION COMMONS ── */
.section { padding: 6rem 2rem; }
@media (min-width: 768px) { .section { padding: 8rem 3rem; } }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-label {
  display: inline-block;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  padding-left: 1.4rem;
  position: relative;
}
.section-label::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 0.9rem; height: 2px;
  background: var(--accent);
}
.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  color: var(--primary);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
}
.section-divider {
  width: 3.5rem; height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 2.5rem;
}

/* ── CHI SONO ── */
.chi-sono { background: var(--primary-light); }
.chi-sono-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: center;
}
@media (min-width: 768px) {
  .chi-sono-grid { grid-template-columns: auto 1fr; }
}
.chi-sono-image-col { display: flex; justify-content: center; }
.profile-photo-about {
  width: 200px; height: 200px;
  object-fit: cover;
  border-radius: 20px;
  border: 3px solid var(--accent);
  box-shadow: 0 16px 50px rgba(27,42,74,0.18);
}
.chi-sono-text p {
  font-size: 1.03rem;
  color: #444;
  line-height: 1.8;
  margin-bottom: 1.4rem;
}
.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.stat-item {
  background: #fff;
  border-left: 4px solid var(--accent);
  padding: 0.9rem 1.4rem;
  border-radius: 0 12px 12px 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}
.stat-label { font-size: 0.8rem; color: #666; margin-top: 0.2rem; }

/* ── SERVIZI ── */
.servizi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.75rem;
  margin-top: 0.5rem;
}
.service-card {
  background: #fff;
  border-radius: 20px;
  padding: 2.2rem 1.8rem;
  box-shadow: 0 4px 24px rgba(27,42,74,0.08);
  border: 1px solid rgba(27,42,74,0.07);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.service-card:hover { transform: translateY(-5px); box-shadow: 0 18px 48px rgba(27,42,74,0.14); }
.service-card:hover::after { transform: scaleX(1); }
.service-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}
.service-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.service-desc { font-size: 0.9rem; color: #555; line-height: 1.7; }

/* ── TESTIMONIANZE ── */
.testimonianze {
  background: linear-gradient(135deg, #0d1b2e 0%, #1b2a4a 100%);
}
.testimonianze .section-label { color: var(--accent); }
.testimonianze .section-label::before { background: var(--accent); }
.testimonianze .section-title { color: #fff; }
.testimonianze .section-divider { background: rgba(255,204,0,0.5); }
.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.75rem;
  margin-top: 0.5rem;
}
.testi-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 2rem;
  transition: transform 0.3s;
}
.testi-card:hover { transform: translateY(-4px); }
.testi-stars { color: var(--accent); font-size: 1rem; letter-spacing: 3px; margin-bottom: 1rem; }
.testi-text {
  font-size: 0.94rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 1.5rem;
}
.testi-author { display: flex; align-items: center; gap: 0.75rem; }
.testi-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.testi-name { font-weight: 600; font-size: 0.88rem; color: #fff; }
.testi-role { font-size: 0.75rem; color: rgba(255,255,255,0.5); }

/* ── CONTATTI ── */
.contatti-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}
@media (min-width: 768px) {
  .contatti-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}
.contact-list { display: flex; flex-direction: column; gap: 1.4rem; margin-top: 0.5rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; }
.contact-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  color: var(--primary);
}
.contact-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #999; margin-bottom: 0.1rem; }
.contact-value { font-size: 0.98rem; color: var(--text); font-weight: 500; }
.contact-value a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
.contact-value a:hover { color: var(--primary-dark); text-decoration: underline; }

.cta-box {
  background: linear-gradient(135deg, #0d1b2e, #1b2a4a);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  color: #fff;
  box-shadow: 0 16px 50px rgba(27,42,74,0.2);
}
.cta-box h3 { font-size: 1.45rem; color: #fff; margin-bottom: 0.75rem; }
.cta-box p { font-size: 0.93rem; color: rgba(255,255,255,0.75); margin-bottom: 1.75rem; line-height: 1.7; }
.btn-cta-light {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--accent);
  color: var(--primary-dark);
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(201,169,110,0.35);
  transition: transform 0.25s, box-shadow 0.25s;
}
.btn-cta-light:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(201,169,110,0.5); }

/* ── FOOTER ── */
footer {
  background: #0a1120;
  color: rgba(255,255,255,0.6);
  padding: 3rem 2rem;
  text-align: center;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-name { font-family: 'Playfair Display', serif; font-size: 1.15rem; color: #fff; font-weight: 700; margin-bottom: 0.4rem; }
.footer-tagline { font-size: 0.82rem; color: rgba(255,255,255,0.45); margin-bottom: 1.25rem; }
.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}
.footer-links a { color: rgba(255,255,255,0.55); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }
.footer-divider { width: 2.5rem; height: 2px; background: var(--accent); margin: 1.25rem auto; border-radius: 2px; }
.footer-meta { font-size: 0.75rem; color: rgba(255,255,255,0.3); }
