/* ===================================================
   DOTT.SSA ALICE FERRARA – Psicologa
   Safe Space – Psiche in Ascolto
   =================================================== */

/* ---------- CSS Variables ---------- */
:root {
  --lavender:     #a3b899;
  --lavender-light: #eef2eb;
  --lavender-mid:   #c8d6c0;
  --purple:       #6a8a5b;
  --purple-dark:  #4c6640;
  --soft-bg:      #fafcfa;
  --white:        #ffffff;
  --text:         #2d3a30;
  --text-muted:   #687a6b;
  --border:       #e0e8dc;

  --font-serif:   'Cormorant Garamond', Georgia, serif;
  --font-sans:    'DM Sans', system-ui, sans-serif;

  --radius:       16px;
  --radius-lg:    28px;
  --shadow:       0 4px 24px rgba(106, 138, 91, 0.10);
  --shadow-lg:    0 12px 48px rgba(106, 138, 91, 0.16);

  --transition:   0.3s ease;
  --nav-height:   72px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.2;
  font-weight: 400;
}

h1 { font-size: clamp(2.8rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h4 { font-size: 1.15rem; font-weight: 600; font-family: var(--font-sans); }

em {
  font-style: italic;
  color: var(--purple);
}

p { color: var(--text-muted); font-size: 1rem; line-height: 1.8; }

strong { color: var(--text); font-weight: 500; }

/* ---------- Layout ---------- */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

section { padding: 100px 0; }

.bg-soft  { background: var(--soft-bg); }
.bg-purple { background: linear-gradient(135deg, var(--purple-dark), var(--purple)); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: var(--purple);
  color: var(--white);
  border-color: var(--purple);
}
.btn-primary:hover {
  background: var(--purple-dark);
  border-color: var(--purple-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(106, 138, 91, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--purple);
  border-color: var(--lavender);
}
.btn-ghost:hover {
  background: var(--lavender-light);
  border-color: var(--lavender);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--white);
  color: var(--purple);
  border-color: var(--white);
  font-weight: 600;
}
.btn-white:hover {
  background: var(--lavender-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* ---------- Section Header ---------- */
.section-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lavender);
  margin-bottom: 0.75rem;
}

.section-eyebrow.light { color: rgba(255,255,255,0.7); }

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 4rem;
}

.section-header h2 { margin-bottom: 1rem; }

.section-desc { font-size: 1.05rem; color: var(--text-muted); }

/* ===================================================
   NAVBAR
   =================================================== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

#navbar.scrolled {
  box-shadow: 0 4px 20px rgba(106, 138, 91, 0.08);
}

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

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.logo-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--purple-dark);
}
.logo-title {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lavender);
  font-weight: 500;
}

nav ul {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

nav ul li a {
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
}
nav ul li a:hover,
nav ul li a.active { color: var(--purple); background: var(--lavender-light); }

.nav-cta {
  background: var(--purple) !important;
  color: var(--white) !important;
  padding: 0.5rem 1.4rem !important;
}
.nav-cta:hover { background: var(--purple-dark) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--purple);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ===================================================
   HERO
   =================================================== */
#hero {
  min-height: 100vh;
  padding-top: var(--nav-height);
  display: flex;
  align-items: center;
  gap: 4rem;
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.hero-content {
  flex: 1;
  padding-top: 2rem;
}

.hero-eyebrow {
  display: inline-block;
  background: var(--lavender-light);
  color: var(--purple);
  padding: 0.35rem 1rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

#hero h1 {
  margin-bottom: 1.5rem;
  color: var(--text);
}

#hero h1 em {
  font-style: italic;
  color: var(--purple);
  display: block;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-blob {
  position: absolute;
  width: 88%;
  height: 88%;
  background: var(--lavender-mid);
  border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%;
  z-index: 0;
  animation: blobAnim 8s ease-in-out infinite;
}

@keyframes blobAnim {
  0%, 100% { border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%; }
  33%       { border-radius: 40% 60% 30% 70% / 60% 40% 60% 40%; }
  66%       { border-radius: 70% 30% 50% 50% / 40% 70% 30% 60%; }
}

.hero-img-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
}

.hero-img-wrapper img {
  width: 100%;
  height: 580px;
  object-fit: cover;
  object-position: top center;
}

/* ===================================================
   BANNER
   =================================================== */
.banner {
  background: var(--purple);
  overflow: hidden;
  padding: 1rem 0;
  display: flex;          /* affianca i due .banner-inner */
}

.banner-inner {
  display: flex;
  flex-shrink: 0;         /* non si comprime */
  gap: 3rem;
  padding-right: 3rem;    /* gap uniforme anche al loop */
  animation: marquee 112s linear infinite;
  white-space: nowrap;
  width: max-content;
}

.banner-inner span {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.9);
  text-transform: uppercase;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); } /* scorre via di 1 larghezza intera */
}

/* ===================================================
   ABOUT
   =================================================== */
#about { padding: 120px 0; }

.about-text h2 { margin-bottom: 1.5rem; }
.about-text p { margin-bottom: 1.2rem; }
.about-text .btn { margin-top: 0.5rem; }

.about-card {
  background: var(--soft-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
}

.info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.info-icon {
  font-size: 1.1rem;
  color: var(--purple);
  line-height: 1;
  flex-shrink: 0;
  width: 32px;
  text-align: center;
  padding-top: 3px;
}

.info-item strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--purple);
  margin-bottom: 0.2rem;
}

.info-item p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0;
}

/* ===================================================
   SERVICES CARDS
   =================================================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all var(--transition);
  cursor: default;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--lavender);
}

.card-icon {
  width: 52px;
  height: 52px;
  background: var(--lavender-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--purple);
  margin-bottom: 1.25rem;
}

.card h3 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.card p { font-size: 0.92rem; }

/* ===================================================
   PER CHI
   =================================================== */
#perchi { background: var(--white); }

.perchi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 4rem;
}

.perchi-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.perchi-item:hover {
  border-color: var(--lavender);
  box-shadow: var(--shadow);
  background: var(--soft-bg);
}

.perchi-num {
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--lavender-mid);
  line-height: 1;
  flex-shrink: 0;
  font-weight: 300;
}

.perchi-item h4 {
  color: var(--text);
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.perchi-item p {
  font-size: 0.92rem;
  margin: 0;
}

/* ===================================================
   QUOTE
   =================================================== */
.quote-section {
  background: linear-gradient(135deg, var(--lavender-light), var(--white));
  padding: 80px 0;
  text-align: center;
}

.quote-section blockquote {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  padding: 0 1rem 0 4rem;
}

.quote-section blockquote::before {
  content: '"';
  font-family: var(--font-serif);
  font-size: 8rem;
  color: var(--lavender-mid);
  line-height: 0;
  position: absolute;
  top: 2.5rem;
  left: -3rem;
  opacity: 0.5;
}

.quote-section blockquote p {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  color: var(--text);
  font-style: italic;
  line-height: 1.6;
}

/* ===================================================
   VALUES
   =================================================== */
.values-row {
  display: flex;
  gap: 0;
  align-items: stretch;
}

.value-block {
  flex: 1;
  padding: 3rem;
  text-align: center;
}

.value-divider {
  width: 1px;
  background: var(--border);
  flex-shrink: 0;
  margin: 2rem 0;
}

.value-icon {
  width: 68px;
  height: 68px;
  background: var(--lavender-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--purple);
  margin: 0 auto 1.5rem;
}

.value-block h3 {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.value-block p { font-size: 0.95rem; }

/* ===================================================
   HOW IT WORKS
   =================================================== */
#how { background: var(--white); }

.steps {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
}

.step {
  flex: 1;
  max-width: 280px;
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--soft-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.step-num {
  width: 52px;
  height: 52px;
  background: var(--purple);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin: 0 auto 1.25rem;
}

.step h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.step p { font-size: 0.9rem; }

.step-arrow {
  font-size: 1.5rem;
  color: var(--lavender);
  flex-shrink: 0;
}

/* ===================================================
   CONTACT
   =================================================== */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: start;
}

.contact-text h2 { color: var(--white); margin-bottom: 1rem; }
.contact-text em { color: rgba(255,255,255,0.75) !important; }
.contact-text p { color: rgba(255,255,255,0.75); margin-bottom: 2rem; }

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
  transition: color var(--transition);
  text-decoration: none;
}
.contact-link:hover { color: var(--white); }

.contact-icon {
  font-size: 1rem;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

/* Form */
.contact-form {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--white);
  outline: none;
  transition: border-color var(--transition), background var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.45);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.22);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-note {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  text-align: center;
  margin-top: -0.5rem;
}

/* ===================================================
   FOOTER
   =================================================== */
footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 3rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
  flex-wrap: wrap;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-left .logo-name { color: var(--white); font-size: 1.35rem; }
.footer-left .logo-title { color: var(--lavender); }
.footer-left p { font-size: 0.9rem; color: rgba(255,255,255,0.4); margin-top: 0.5rem; }

.footer-contact-icons {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.7rem;
}

.footer-contact-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.03);
  transition: color var(--transition), border-color var(--transition), transform var(--transition), background var(--transition);
}

.footer-contact-icons a:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.08);
  transform: translateY(-1px);
}

.footer-links, .footer-social {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a, .footer-social a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-links a:hover, .footer-social a:hover { color: var(--lavender); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  padding: 1.25rem 2rem;
}

.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.35); margin: 0; }

.footer-dev { margin-top: 0.35rem !important; }
.footer-dev a {
  color: rgba(255,255,255,0.5);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}
.footer-dev a:hover { color: var(--lavender); }

/* ===================================================
   SCROLL ANIMATIONS
   =================================================== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .contact-inner { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 860px) {
  #hero { flex-direction: column-reverse; text-align: center; min-height: auto; padding-top: calc(var(--nav-height) + 2rem); padding-bottom: 3rem; gap: 2.5rem; }
  .hero-image { width: 100%; }
  .hero-img-wrapper { max-width: 340px; margin: 0 auto; }
  .hero-img-wrapper img { height: 400px; }
  .hero-actions { justify-content: center; }
  .hero-sub { margin: 0 auto 2rem; }
  .two-col { grid-template-columns: 1fr; gap: 3rem; }
  .perchi-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .values-row { flex-direction: column; }
  .value-divider { width: 80%; height: 1px; margin: 0 auto; }
  .steps { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); }
  nav ul { display: none; }
  .hamburger { display: flex; }
  nav ul.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--white);
    padding: 1.5rem 2rem 2rem;
    box-shadow: var(--shadow-lg);
    gap: 0.5rem;
  }
  .info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  section { padding: 70px 0; }
  .cards-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 1.75rem; }
  .footer-inner { flex-direction: column; gap: 2rem; }
}
