/* =========================================================
   Anna Dermolab — styles.css
   Mobile-first, dark elegant theme
   ========================================================= */

/* ── Custom properties ─────────────────────────────────── */
:root {
  --bg:           #0F0E0E;
  --bg-card:      #1A1918;
  --bg-card-hover:#221F1E;
  --text:         #F5F0EB;
  --text-muted:   #A09890;
  --accent:       #C9A96E;
  --accent-hover: #E2C48A;
  --border:       #2C2826;

  --font-body:    'evolve_sans', Verdana, sans-serif;
  --font-serif:   'Cormorant Garamond', Georgia, serif;

  --nav-h:        64px;
  --section-gap:  80px;
  --radius:       4px;
  --transition:   0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }

/* ── Custom font ───────────────────────────────────────── */
@font-face {
  font-family: 'evolve_sans';
  src: url('evolve_sans-webfont.woff2') format('woff2'),
       url('evolve_sans-webfont.woff')  format('woff');
  font-weight: normal;
  font-style:  normal;
  font-display: swap;
}

/* ── Typography helpers ────────────────────────────────── */
.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.section-text {
  color: var(--text-muted);
  max-width: 60ch;
  line-height: 1.8;
}

/* ── Utility ───────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.accent { color: var(--accent); }

.btn {
  display: inline-block;
  padding: 13px 28px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #0F0E0E;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── Fade-in animation (Intersection Observer) ─────────── */
/* opacity:0 only when JS is loaded — content always visible without JS */
.js-loaded .fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js-loaded .fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ====================================================
   NAV
   ==================================================== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: rgba(15,14,14,0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo img {
  height: 44px;
  width: auto;
}

.nav-links {
  display: none;
  list-style: none;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--accent); }

/* Hamburger */
.nav-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 24px 20px;
  z-index: 99;
}
.nav-mobile.open { display: block; }
.nav-mobile ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.nav-mobile a {
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav-mobile a:hover { color: var(--accent); }

/* ====================================================
   HERO
   ==================================================== */
#hero {
  min-height: 100svh;
  padding-top: var(--nav-h);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('studio1.webp');
  background-size: cover;
  background-position: center 30%;
  filter: brightness(0.35);
  z-index: 0;
  transition: opacity 0.8s ease;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 60px;
  padding-bottom: 60px;
}

.hero-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 8vw, 5.5rem);
  font-weight: 300;
  line-height: 1.05;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  color: var(--text-muted);
  max-width: 44ch;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

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

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.hero-scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50%  { opacity: 1; }
  100% { opacity: 0; transform: scaleY(1); transform-origin: bottom; }
}

/* ====================================================
   CHI SONO
   ==================================================== */
#chi-sono {
  padding: var(--section-gap) 0;
}

.chi-sono-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

.chi-sono-img {
  position: relative;
  max-width: 400px;
  margin: 0 auto;
}
.chi-sono-img img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 3/4;
  object-fit: cover;
}
.chi-sono-img::before {
  content: '';
  position: absolute;
  top: -12px;
  left: -12px;
  right: 12px;
  bottom: 12px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  z-index: -1;
}

.chi-sono-bio {
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 2rem;
}

.chi-sono-stats {
  display: flex;
  gap: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ====================================================
   SERVIZI
   ==================================================== */
#servizi {
  padding: var(--section-gap) 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.servizi-header {
  text-align: center;
  margin-bottom: 48px;
}

.servizi-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.servizio-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}
.servizio-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.servizio-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.servizio-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.servizio-footer {
  margin-top: auto;
}

.servizio-num {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.servizio-name {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 400;
  margin-bottom: 10px;
}

.servizio-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.servizio-price {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.servizio-price strong {
  font-size: 1.1rem;
}

/* ====================================================
   GALLERY
   ==================================================== */
#gallery {
  padding: var(--section-gap) 0;
}

.gallery-header {
  text-align: center;
  margin-bottom: 40px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.gallery-item {
  overflow: hidden;
  border-radius: var(--radius);
  display: block;
  position: relative;
  aspect-ratio: 1 / 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item:hover img { transform: scale(1.04); }

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--transition);
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }

.gallery-ig-icon {
  width: 28px;
  height: 28px;
  fill: #fff;
}

.gallery-cta {
  text-align: center;
  margin-top: 40px;
}

/* Skeleton loader */
.gallery-skeleton {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.skeleton-item {
  border-radius: var(--radius);
  aspect-ratio: 1 / 1;
  background: var(--bg-card);
  animation: shimmer 1.5s infinite;
}
.skeleton-item:nth-child(odd)  { aspect-ratio: 1; }
.skeleton-item:nth-child(even) { aspect-ratio: 4/5; }

@keyframes shimmer {
  0%   { opacity: 0.5; }
  50%  { opacity: 1; }
  100% { opacity: 0.5; }
}

/* ====================================================
   CONTATTI
   ==================================================== */
#contatti {
  padding: var(--section-gap) 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

.contatti-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

.contatti-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.contatti-detail-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  fill: var(--accent);
  margin-top: 3px;
}

.social-row {
  display: flex;
  gap: 16px;
  margin-top: 2rem;
}
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  transition: border-color var(--transition), background var(--transition);
}
.social-link:hover {
  border-color: var(--accent);
  background: var(--accent);
}
.social-link:hover img { filter: brightness(0); }
.social-link img { width: 20px; height: 20px; }

.contatti-action {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}
.contatti-action-lead {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  line-height: 1.4;
  margin-bottom: 8px;
}

.rate-banner {
  margin-top: 20px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: border-color var(--transition);
  text-decoration: none;
}
.rate-banner:hover { border-color: var(--accent); }
.rate-banner strong { color: var(--text); }
.rate-banner-icon { font-size: 1.3rem; flex-shrink: 0; }

/* ====================================================
   FOOTER
   ==================================================== */
#footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.footer-logo img { height: 36px; opacity: 0.65; }

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ====================================================
   DESKTOP — min-width: 768px
   ==================================================== */
@media (min-width: 768px) {
  :root { --section-gap: 110px; }

  .nav-toggle { display: none; }
  .nav-links   { display: flex; }

  .chi-sono-grid {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }
  .chi-sono-img { max-width: none; margin: 0; }

  .servizi-grid { grid-template-columns: repeat(3, 1fr); }

  .gallery-grid    { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .gallery-skeleton { grid-template-columns: repeat(3, 1fr); gap: 10px; }

  .contatti-grid { grid-template-columns: 1fr 1fr; gap: 80px; }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

@media (min-width: 1024px) {
  .gallery-grid     { grid-template-columns: repeat(3, 1fr); }
  .gallery-skeleton { grid-template-columns: repeat(3, 1fr); }
}
