/* ============================================
   DOTT.SSA M.G. LORETI — LIGHT GLASSMORPHISM
   Palette: Soft pink tones on white/cream
   ============================================ */

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

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

:root {
  --accent: #d4849a;
  --accent-light: #e8a5b8;
  --accent-dark: #b8607a;
  --accent-soft: #f5e0e7;
  --accent-glow: rgba(212, 132, 154, 0.12);
  --bg: #fdf7f9;
  --bg-warm: #faf0f3;
  --bg-white: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(212, 132, 154, 0.12);
  --glass-bg-strong: rgba(255, 255, 255, 0.8);
  --glass-shadow: rgba(212, 132, 154, 0.08);
  --text: #3a2a30;
  --text-muted: #6e5a62;
  --text-dim: #a08a92;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', -apple-system, sans-serif;
  --radius: 24px;
  --radius-sm: 16px;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

/* --- Animated Background --- */
.bg-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(212, 132, 154, 0.07) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(232, 165, 184, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(245, 224, 231, 0.15) 0%, transparent 60%),
    var(--bg);
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
  animation: orbFloat 20s ease-in-out infinite;
}

.bg-orb--1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(212, 132, 154, 0.12), transparent 70%);
  top: -15%; left: -10%;
  animation-duration: 25s;
}

.bg-orb--2 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(232, 165, 184, 0.10), transparent 70%);
  bottom: -20%; right: -10%;
  animation-duration: 30s;
  animation-delay: -5s;
}

.bg-orb--3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(245, 200, 215, 0.12), transparent 70%);
  top: 50%; left: 40%;
  animation-duration: 22s;
  animation-delay: -10s;
  opacity: 0.3;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(40px, -30px) scale(1.05); }
  50% { transform: translate(-20px, 40px) scale(0.95); }
  75% { transform: translate(30px, 20px) scale(1.02); }
}

/* --- Grid Overlay (subtle) --- */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(212, 132, 154, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 132, 154, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  transition: var(--transition);
}

.nav.scrolled {
  background: rgba(253, 247, 249, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px rgba(212, 132, 154, 0.06);
}

.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav__logo span {
  color: var(--accent);
  font-style: italic;
}

.nav__links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav__links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s;
  border-radius: 1px;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--accent-dark);
}

.nav__links a:hover::after,
.nav__links a.active::after {
  width: 100%;
}

.nav__cta {
  background: var(--accent) !important;
  border: 1px solid var(--accent) !important;
  padding: 0.5rem 1.2rem;
  border-radius: 100px;
  color: #fff !important;
  font-size: 0.8rem !important;
  transition: all 0.3s !important;
  letter-spacing: 0.08em;
}

.nav__cta::after {
  display: none !important;
}

.nav__cta:hover {
  background: var(--accent-dark) !important;
  border-color: var(--accent-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(212, 132, 154, 0.3);
}

/* Mobile nav */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* --- Main Content --- */
.page {
  position: relative;
  z-index: 1;
}

/* --- Section Layout --- */
.section {
  padding: 8rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section--hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 6rem;
}

/* --- Typography --- */
.label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: block;
}

.heading-xl {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.heading-lg {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.heading-md {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}

.heading-sm {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.italic-accent {
  font-style: italic;
  color: var(--accent);
}

.text-body {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.8;
}

.quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--text-muted);
  border-left: 3px solid var(--accent-light);
  padding-left: 1.5rem;
  margin: 2.5rem 0;
  max-width: 600px;
  line-height: 1.7;
}

/* --- Glass Card --- */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all var(--transition);
  box-shadow: 0 4px 24px var(--glass-shadow);
}

.glass:hover {
  background: var(--glass-bg-strong);
  border-color: rgba(212, 132, 154, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(212, 132, 154, 0.1),
              0 4px 24px var(--glass-shadow);
}

.glass--strong {
  background: var(--glass-bg-strong);
}

.glass--no-hover:hover {
  transform: none;
  box-shadow: 0 4px 24px var(--glass-shadow);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 100px;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.3s;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff;
  box-shadow: 0 8px 30px rgba(212, 132, 154, 0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(212, 132, 154, 0.4);
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(212, 132, 154, 0.25);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: rgba(212, 132, 154, 0.06);
}

.btn__arrow {
  transition: transform 0.3s;
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

/* --- Service Cards Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.service-card {
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.service-card__icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.service-card__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.service-card__title {
  font-family: var(--serif);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
  color: var(--text);
}

.service-card__desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.service-card__glow {
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(212, 132, 154, 0.08), transparent 70%);
  border-radius: 50%;
  transition: opacity 0.5s;
  opacity: 0;
}

.service-card:hover .service-card__glow {
  opacity: 1;
}

/* --- Steps / Method --- */
.steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 3rem;
}

.step {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  padding: 2rem;
}

.step__number {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 50%;
  border: 1px solid var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--accent);
  background: var(--accent-glow);
}

.step__content h3 {
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.step__content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- Studio Cards --- */
.studios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.studio-card {
  padding: 2.5rem;
}

.studio-card__badge {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.studio-card__city {
  font-family: var(--serif);
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.studio-card__address {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.studio-card__info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.studio-card__info-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.studio-card__info-row svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
}

/* --- Contact Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.contact-card {
  padding: 2rem;
  text-align: center;
}

.contact-card__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-glow);
  color: var(--accent);
}

.contact-card__icon svg {
  width: 22px;
  height: 22px;
}

.contact-card__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.contact-card__value {
  color: var(--text);
  font-size: 1rem;
  text-decoration: none;
}

.contact-card__value:hover {
  color: var(--accent-dark);
}

/* --- Credentials Grid --- */
.cred-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  margin-top: 3rem;
}

.cred-card {
  padding: 2rem;
  text-align: center;
}

.cred-card__icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.cred-card__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.cred-card__text {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* --- Footer --- */
.footer {
  padding: 3rem 2rem;
  text-align: center;
  border-top: 1px solid var(--glass-border);
  margin-top: 4rem;
}

.footer__text {
  font-size: 0.8rem;
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

.footer__brand {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* --- Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.stagger.visible > *:nth-child(1) { transition-delay: 0.1s; }
.stagger.visible > *:nth-child(2) { transition-delay: 0.2s; }
.stagger.visible > *:nth-child(3) { transition-delay: 0.3s; }
.stagger.visible > *:nth-child(4) { transition-delay: 0.4s; }
.stagger.visible > *:nth-child(5) { transition-delay: 0.5s; }
.stagger.visible > *:nth-child(6) { transition-delay: 0.6s; }

.stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* --- Hero specifics --- */
.hero__buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 3rem;
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

/* --- Two-col layout --- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* --- Divider --- */
.divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  margin: 3rem 0;
  border-radius: 1px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }

  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(253, 247, 249, 0.95);
    backdrop-filter: blur(20px);
    padding: 2rem;
    border-bottom: 1px solid var(--glass-border);
    gap: 1rem;
  }

  .section { padding: 5rem 1.5rem; }
  .section--hero { padding-top: 5rem; }
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .services-grid { grid-template-columns: 1fr; }
  .studios-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .cred-grid { grid-template-columns: 1fr 1fr; }
  .step { flex-direction: column; gap: 1rem; }
}

@media (max-width: 480px) {
  .cred-grid { grid-template-columns: 1fr; }
  .hero__buttons { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}

/* --- Cookie Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
  box-shadow: 0 -4px 30px rgba(212, 132, 154, 0.08);
  padding: 1.5rem 2rem;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.cookie-banner.visible {
  transform: translateY(0);
}
.cookie-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.cookie-banner__text {
  flex: 1;
  min-width: 280px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.cookie-banner__text a {
  color: var(--accent-dark);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--accent-light);
}
.cookie-banner__text a:hover {
  border-bottom-color: var(--accent-dark);
}
.cookie-banner__actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.cookie-btn {
  padding: 0.6rem 1.4rem;
  border-radius: 100px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}
.cookie-btn--accept {
  background: var(--accent);
  color: #fff;
}
.cookie-btn--accept:hover {
  background: var(--accent-dark);
}
.cookie-btn--necessary {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--glass-border);
}
.cookie-btn--necessary:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}
.cookie-btn--settings {
  background: transparent;
  color: var(--text-dim);
  border: none;
  text-decoration: underline;
  font-size: 0.78rem;
  padding: 0.6rem 0.5rem;
}
.cookie-btn--settings:hover {
  color: var(--accent-dark);
}
@media (max-width: 600px) {
  .cookie-banner__inner { flex-direction: column; align-items: stretch; gap: 1rem; }
  .cookie-banner__actions { justify-content: center; }
}

/* --- Footer links --- */
.footer__links {
  margin-bottom: 0.8rem;
}
.footer__links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.8rem;
  border-bottom: 1px solid var(--glass-border);
  transition: color 0.3s, border-color 0.3s;
}
.footer__links a:hover {
  color: var(--accent-dark);
  border-bottom-color: var(--accent);
}
.footer__sep {
  margin: 0 0.5rem;
  color: var(--text-dim);
  font-size: 0.8rem;
}
