/* ===========================
   RESET & BASE
=========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --lilla:       #c9b8e8;
  --lilla-light: #ede8f7;
  --lilla-mid:   #b8a2d8;
  --lilla-dark:  #7a5fa0;
  --white:       #fdf9f4;
  --text:        #1a1a1a;
  --text-light:  #555555;
  --radius:      44px;
  --shadow:      0 8px 32px rgba(122, 95, 160, 0.12);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

/* ===========================
   TYPOGRAPHY
=========================== */
h1, h2, h3 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
}

h1 { font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: 0.02em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: 1.25rem; font-weight: 500; }

p { line-height: 1.75; color: var(--text-light); font-size: 0.97rem; }

a { color: var(--lilla-dark); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.75; }

/* ===========================
   NAVBAR
=========================== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(253,249,244,0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--lilla-light);
  transition: box-shadow 0.3s;
}

#navbar.scrolled { box-shadow: 0 2px 20px rgba(122,95,160,0.1); }

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--text);
  letter-spacing: 0.02em;
}

.nav-psi {
  font-weight: 700;
  color: var(--lilla-dark);
  font-size: 1.55rem;
  margin-right: 0.1em;
  line-height: 1;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  font-weight: 400;
}

.nav-links a:hover { color: var(--lilla-dark); opacity: 1; }

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--lilla-dark);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  list-style: none;
  padding: 0.5rem 2rem 1rem;
  background: rgba(255,255,255,0.97);
  border-top: 1px solid var(--lilla-light);
}

.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 0.6rem 0;
  font-size: 0.9rem;
  color: var(--text);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ===========================
   HERO
=========================== */
.hero {
  min-height: 100vh;
  padding-top: 64px;
  background: linear-gradient(135deg, #f5f0ff 0%, #ede8f7 50%, #ffffff 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,184,232,0.25) 0%, transparent 70%);
  top: -150px; right: -150px;
  pointer-events: none;
}

.hero-content {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 4rem 4rem;
  display: flex;
  align-items: center;
  gap: 5rem;
  flex-wrap: wrap;
}

.profile-wrapper {
  flex-shrink: 0;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid var(--white);
  box-shadow: 0 12px 40px rgba(122,95,160,0.25);
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top 10% left 35%;
}

.hero-text {
  flex: 1;
  min-width: 320px;
}

.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lilla-dark);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.hero-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.3rem;
  font-style: italic;
  color: var(--lilla-dark);
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
}

.hero-albo {
  font-size: 0.78rem;
  color: #888;
  margin-bottom: 1.2rem;
  letter-spacing: 0.02em;
}

.hero-divider {
  width: 50px;
  height: 2px;
  background: var(--lilla-mid);
  margin-bottom: 1.5rem;
}

.hero-bio {
  font-size: 0.88rem;
  line-height: 1.8;
  max-width: 100%;
  margin-bottom: 1.4rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 1rem;
  background: transparent;
  color: var(--lilla-dark);
  border: 1px solid var(--lilla-mid);
  border-radius: 60px;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
  transition: background 0.25s, color 0.25s, transform 0.2s, box-shadow 0.25s;
}

.btn-secondary svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.btn-secondary:hover {
  background: var(--lilla-light);
  color: var(--lilla-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(122,95,160,0.15);
  opacity: 1;
}

.btn-primary {
  display: inline-block;
  padding: 0.8rem 2.2rem;
  background: var(--lilla-dark);
  color: var(--white) !important;
  border-radius: 60px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
  box-shadow: 0 4px 18px rgba(122,95,160,0.3);
}

.btn-primary:hover {
  background: #6a4f90;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(122,95,160,0.4);
  opacity: 1;
}

/* ===========================
   SECTIONS
=========================== */
.section { padding: 6rem 0; position: relative; overflow: hidden; }
.section-alt { background: var(--lilla-light); position: relative; overflow: hidden; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lilla-dark);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.section-title {
  margin-bottom: 3rem;
  color: var(--text);
}

.servizi-nota {
  display: flex;
  align-items: center;
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 2.2rem;
  gap: 0.3em;
}

/* ===========================
   CARDS (SERVIZI)
=========================== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--lilla-light);
  border-radius: var(--radius);
  padding: 2.2rem 1.8rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(122,95,160,0.18);
}

.card-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 1.2rem;
  color: var(--lilla-dark);
}

.card-icon svg {
  width: 100%;
  height: 100%;
}

.card h3 {
  margin-bottom: 0.8rem;
  color: var(--text);
}

/* ===========================
   APPROCCIO
=========================== */
.approccio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.approccio-text p {
  margin-bottom: 1rem;
}

.approccio-text strong { color: var(--lilla-dark); font-weight: 700; }

.approccio-deco {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 1.8rem 2.4rem;
  align-items: center;
  justify-items: center;
  padding: 1rem 0;
}

.approccio-deco .deco-circle:nth-child(2) { margin-top: 4rem; }
.approccio-deco .deco-circle:nth-child(3) { margin-top: -2.5rem; width: 108px; height: 108px; font-size: 0.8rem; }
.approccio-deco .deco-circle:nth-child(4) { margin-top: 3rem; width: 114px; height: 114px; font-size: 0.8rem; }
.approccio-deco .deco-circle:nth-child(5) { margin-top: -1.5rem; width: 114px; height: 114px; font-size: 0.8rem; }
.approccio-deco .deco-circle:nth-child(6) { margin-top: 3.5rem; }

.deco-circle {
  width: 112px; height: 112px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lilla) 0%, var(--lilla-mid) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.4rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  color: var(--white);
  letter-spacing: 0.03em;
  box-shadow: 0 6px 24px rgba(122,95,160,0.2);
  animation: float 4s ease-in-out infinite;
}

.deco-circle--sm {
  width: 96px; height: 96px;
  font-size: 0.76rem;
  animation-delay: 1s;
}

.deco-circle--xs {
  width: 80px; height: 80px;
  font-size: 0.70rem;
  animation-delay: 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

/* ===========================
   CONTATTI
=========================== */
.contatti-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
  max-width: 900px;
  margin: 0 auto;
}

.contatto-card {
  background: var(--lilla-light);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.25s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.contatto-card:hover { transform: translateY(-4px); }

.contatto-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 1rem;
  color: var(--lilla-dark);
}

.contatto-icon svg {
  width: 100%;
  height: 100%;
}

.contatto-card h3 {
  margin-bottom: 0.6rem;
  color: var(--text);
}

.contatto-card a {
  font-size: 0.95rem;
  color: var(--lilla-dark);
  font-weight: 700;
}

.qr-wrapper {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

#qr-canvas {
  border-radius: 50px;
  box-shadow: 0 6px 24px rgba(122,95,160,0.2);
}

.qr-label {
  font-size: 0.75rem;
  color: #999;
  text-align: center;
}

/* ===========================
   FOOTER
=========================== */
.footer {
  background: var(--lilla-dark);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 1.6rem;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

/* ===========================
   LOTI DECORATIVI
=========================== */
.lotus-deco {
  position: absolute;
  color: var(--lilla-dark);
  opacity: 0.10;
  pointer-events: none;
  z-index: 0;
}

.lotus-hero-left {
  width: 240px;
  bottom: -30px;
  left: -40px;
  transform: rotate(-15deg);
  animation: lotus-float 7s ease-in-out infinite;
}

.lotus-servizi {
  width: 220px;
  bottom: -30px;
  right: -40px;
  transform: rotate(15deg);
  animation: lotus-float 8s ease-in-out infinite;
}

.lotus-approccio {
  width: 220px;
  bottom: -20px;
  left: -40px;
  transform: rotate(-12deg);
  animation: lotus-float 9s ease-in-out infinite;
  opacity: 0.08;
}

.lotus-contatti {
  width: 220px;
  bottom: -30px;
  right: -40px;
  transform: rotate(15deg);
  animation: lotus-float 7s ease-in-out infinite reverse;
}

.lotus-footer {
  display: block;
  width: 50px;
  margin: 0 auto 0.6rem;
  color: rgba(255,255,255,0.35);
}

@keyframes lotus-float {
  0%, 100% { translate: 0 0; }
  50%       { translate: 0 -10px; }
}

/* ===========================
   AOS (simple fade-up)
=========================== */
[data-aos] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

[data-aos].aos-visible {
  opacity: 1;
  transform: none;
}

[data-aos][data-aos-delay="100"] { transition-delay: 0.1s; }
[data-aos][data-aos-delay="200"] { transition-delay: 0.2s; }

/* AOS fade-right / fade-left */
[data-aos="fade-right"] { transform: translateX(-30px); }
[data-aos="fade-left"]  { transform: translateX(30px); }
[data-aos="fade-right"].aos-visible,
[data-aos="fade-left"].aos-visible  { transform: none; }

/* ===========================
   RESPONSIVE — TABLET (max 1024px)
=========================== */
@media (max-width: 1024px) {
  .hero-content {
    max-width: 100%;
    padding: 4rem 3rem;
    gap: 3rem;
  }

  .profile-wrapper {
    width: 280px;
    height: 280px;
  }

  .approccio-grid {
    gap: 2.5rem;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .lotus-hero-left  { width: 180px; }
  .lotus-servizi    { width: 160px; }
  .lotus-approccio  { width: 160px; }
  .lotus-contatti   { width: 160px; }
}

/* ===========================
   RESPONSIVE — MOBILE (max 768px)
=========================== */
@media (max-width: 768px) {
  /* Navbar */
  .nav-links { display: none; }
  .hamburger { display: block; }

  /* Hero */
  .hero-content {
    flex-direction: column;
    text-align: center;
    padding: 3rem 1.5rem;
    gap: 2rem;
  }

  .profile-wrapper {
    width: 200px;
    height: 200px;
  }

  .hero-divider { margin: 0 auto 1.5rem; }
  .hero-bio { max-width: 100%; font-size: 0.85rem; }
  .hero-cta { justify-content: center; }
  h1 { font-size: 2.4rem; }

  /* Cards servizi */
  .cards {
    grid-template-columns: 1fr;
  }

  /* Approccio */
  .approccio-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .approccio-deco {
    grid-template-columns: repeat(3, auto);
    justify-content: center;
    gap: 0.8rem 1rem;
  }

  /* Reset sfalsature su mobile */
  .approccio-deco .deco-circle:nth-child(2),
  .approccio-deco .deco-circle:nth-child(3),
  .approccio-deco .deco-circle:nth-child(4),
  .approccio-deco .deco-circle:nth-child(5),
  .approccio-deco .deco-circle:nth-child(6) {
    margin-top: 0;
  }

  .deco-circle       { width: 88px; height: 88px; font-size: 0.68rem; }
  .deco-circle--sm   { width: 80px; height: 80px; font-size: 0.65rem; }
  .deco-circle--xs   { width: 72px; height: 72px; font-size: 0.62rem; }

  /* Contatti */
  .contatti-grid {
    grid-template-columns: 1fr;
  }

  /* Sezioni padding */
  .section { padding: 4rem 0; }

  /* Loti più piccoli su mobile */
  .lotus-deco        { opacity: 0.07; }
  .lotus-hero-left   { width: 140px; bottom: -20px; left: -30px; }
  .lotus-servizi     { width: 120px; bottom: -20px; right: -25px; }
  .lotus-approccio   { width: 120px; bottom: -15px; left: -25px; }
  .lotus-contatti    { width: 120px; bottom: -20px; right: -25px; }

  /* Nav mobile link spacing */
  .nav-mobile a { padding: 0.8rem 0; }
}

/* ===========================
   RESPONSIVE — SMALL MOBILE (max 420px)
=========================== */
@media (max-width: 420px) {
  .hero-content { padding: 2.5rem 1rem; }

  .profile-wrapper {
    width: 160px;
    height: 160px;
  }

  h1 { font-size: 2rem; }

  .approccio-deco {
    grid-template-columns: repeat(2, auto);
  }

  .btn-primary {
    width: 100%;
    text-align: center;
  }

  .card { padding: 1.6rem 1.2rem; }
  .contatto-card { padding: 2rem 1.2rem; }
}
