/* ============================================================
   DONGU & SOGGIA — Design System & Styles
   Studio Odontoiatrico · Sassari
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;500;600&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Colors — derived from the logo palette */
  --color-bg: #F8F6F3;
  --color-bg-alt: #F0EDE8;
  --color-bg-dark: #1B2E3C;
  --color-accent: #8BA89A;
  --color-accent-dark: #6B8C7B;
  --color-navy: #1C3246;
  --color-navy-light: #2A4A62;
  --color-sky: #A8C8D8;
  --color-sky-light: #C5DDE9;
  --color-gold: #C4A96A;
  --color-text: #2D2D2D;
  --color-text-light: #6B6B6B;
  --color-white: #FFFFFF;
  --color-border: #E5E0DA;

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --fw-light: 200;
  --fw-regular: 300;
  --fw-medium: 400;
  --fw-semibold: 500;
  --fw-bold: 600;

  /* Spacing */
  --section-padding: 120px;
  --section-padding-mobile: 72px;
  --container-max: 1200px;
  --container-padding: 24px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.7s cubic-bezier(0.4, 0, 0.2, 1);

  /* Shadows */
  --shadow-soft: 0 4px 30px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 8px 40px rgba(0, 0, 0, 0.06);
  --shadow-elevated: 0 20px 60px rgba(0, 0, 0, 0.08);

  /* Borders */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--font-primary);
  font-weight: var(--fw-regular);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* ---------- Utility Classes ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section-overline {
  font-size: 0.7rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 16px;
  display: block;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: var(--fw-light);
  line-height: 1.2;
  color: var(--color-navy);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.05rem;
  font-weight: var(--fw-regular);
  color: var(--color-text-light);
  max-width: 600px;
  line-height: 1.8;
}

/* ---------- Scroll Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.stagger-child {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.stagger-child.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100vw;
  z-index: 1000;
  padding: 20px 0;
  transition: all var(--transition-base);
}

/* Transparent header over hero cover */
.header:not(.scrolled) {
  background: transparent;
}

.header:not(.scrolled) .nav-links a {
  color: var(--color-white);
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.header:not(.scrolled) .nav-links a::after {
  background-color: var(--color-white);
}

.header:not(.scrolled) .header-logo img {
  filter: brightness(0) invert(1) drop-shadow(0 1px 4px rgba(0,0,0,0.2));
}

.header:not(.scrolled) .hamburger span {
  background-color: var(--color-white);
}

.header:not(.scrolled) .btn-primary {
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.header:not(.scrolled) .btn-primary:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.header.scrolled {
  background: rgba(248, 246, 243, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 0;
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1001;
}

.header-logo img {
  height: 48px;
  width: auto;
  transition: height var(--transition-base);
}

.header.scrolled .header-logo img {
  height: 38px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.82rem;
  font-weight: var(--fw-medium);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-navy);
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-accent);
  transition: width var(--transition-base);
}

.nav-links a:hover::after {
  width: 100%;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background-color: var(--color-navy);
  color: var(--color-white);
  font-size: 0.8rem;
  font-weight: var(--fw-medium);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s;
}

.btn-primary:hover {
  background-color: var(--color-navy-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(28, 50, 70, 0.25);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background-color: transparent;
  color: var(--color-navy);
  font-size: 0.8rem;
  font-weight: var(--fw-medium);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--color-navy);
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
}

.btn-secondary:hover {
  background-color: var(--color-navy);
  color: var(--color-white);
  transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 28px;
  z-index: 1001;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background-color: var(--color-navy);
  transition: all var(--transition-base);
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav Overlay */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(248, 246, 243, 0.98);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-slow);
  z-index: 999;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 100px 24px;
}

.mobile-nav.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav a {
  font-size: 1.5rem;
  font-weight: var(--fw-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-navy);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s ease;
}

.mobile-nav .btn-primary {
  color: var(--color-white);
}

.mobile-nav .mobile-nav-cta {
  padding: 25px 25px;
}

.mobile-nav.active a {
  transform: translateY(0);
  opacity: 1;
}

.mobile-nav.active a:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav.active a:nth-child(2) { transition-delay: 0.15s; }
.mobile-nav.active a:nth-child(3) { transition-delay: 0.2s; }
.mobile-nav.active a:nth-child(4) { transition-delay: 0.25s; }
.mobile-nav.active a:nth-child(5) { transition-delay: 0.3s; }
.mobile-nav.active a:nth-child(6) { transition-delay: 0.35s; }
.mobile-nav.active a:nth-child(7) { transition-delay: 0.4s; }
.mobile-nav.active a:nth-child(8) { transition-delay: 0.45s; }
.mobile-nav.active a:nth-child(9) { transition-delay: 0.5s; }
.mobile-nav.active a:nth-child(10) { transition-delay: 0.55s; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
}

/* ---- Full-screen cover ---- */
.hero-cover {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.05);
  animation: heroZoomIn 20s ease-out forwards;
}

@keyframes heroZoomIn {
  0%   { transform: scale(1.15); }
  100% { transform: scale(1.05); }
}

.hero-cover-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg,
      rgba(28, 50, 70, 0.30) 0%,
      rgba(28, 50, 70, 0.10) 40%,
      rgba(28, 50, 70, 0.15) 70%,
      rgba(28, 50, 70, 0.45) 100%
    );
}

/* Logo centred on cover */
.hero-logo-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: logoFadeIn 1.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s both;
}

.hero-logo-img {
  width: clamp(180px, 28vw, 340px);
  height: auto;
  filter: drop-shadow(0 8px 40px rgba(0, 0, 0, 0.25));
}

@keyframes logoFadeIn {
  0%   { opacity: 0; transform: translateY(30px) scale(0.92); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Scroll indicator inside cover */
.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--color-white);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: float 3s ease-in-out infinite;
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}

.hero-scroll-indicator .scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.8), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}

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

@keyframes scroll-line {
  0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
  100% { opacity: 0; transform: scaleY(1); transform-origin: bottom; }
}

/* ---- Scroll-reveal content below cover ---- */
.hero-reveal-content {
  padding: 100px 0 80px;
  background-color: var(--color-bg);
  position: relative;
}

.hero-reveal-content .hero-content {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.hero-reveal-content .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(139, 168, 154, 0.1);
  border-radius: 50px;
  margin-bottom: 32px;
  font-size: 0.72rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
}

.hero-reveal-content .hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-accent);
  animation: pulse-dot 2s infinite;
}

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

.hero-reveal-content h1 {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: var(--fw-light);
  line-height: 1.1;
  color: var(--color-navy);
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.hero-reveal-content h1 em {
  font-style: italic;
  font-weight: var(--fw-light);
  color: var(--color-accent-dark);
}

.hero-reveal-content .hero-text {
  font-size: 1.1rem;
  font-weight: var(--fw-regular);
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.hero-reveal-content .hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================================
   VALUE PROPOSITIONS
   ============================================================ */
.values {
  padding: var(--section-padding) 0;
  background-color: var(--color-white);
}

.values-header {
  text-align: center;
  margin-bottom: 80px;
}

.values-header .section-subtitle {
  margin: 0 auto;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
}

.value-card {
  text-align: center;
  padding: 40px 24px;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.value-card:hover {
  background: var(--color-bg);
  transform: translateY(-4px);
}

.value-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-sky-light), var(--color-sky));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 1.3rem;
  color: var(--color-navy);
}

.value-card h3 {
  font-size: 1.15rem;
  font-weight: var(--fw-medium);
  color: var(--color-navy);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.value-card p {
  font-size: 0.92rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* Divider with image */
.values-image {
  margin-top: 80px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-height: 400px;
}

.values-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: center 65%;
}

/* ============================================================
   CHI SIAMO / TEAM
   ============================================================ */
.team {
  padding: var(--section-padding) 0;
  background-color: var(--color-bg);
}

.team-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.team-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  position: relative;
}

.team-image-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

.team-image-card:first-child {
  margin-top: 40px;
}

.team-image-card img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  object-position: top center;
  transition: transform var(--transition-slow);
}

.team-image-card:hover img {
  transform: scale(1.04);
}

.team-image-card .doctor-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 16px 16px;
  background: linear-gradient(to top, rgba(28, 50, 70, 0.8), transparent);
  color: var(--color-white);
  font-size: 0.82rem;
  font-weight: var(--fw-medium);
  letter-spacing: 0.06em;
}

.team-content {
  max-width: 480px;
}

.team-content blockquote {
  font-size: 1.4rem;
  font-weight: var(--fw-light);
  color: var(--color-navy);
  line-height: 1.5;
  margin-bottom: 32px;
  font-style: italic;
  position: relative;
  padding-left: 24px;
  border-left: 2px solid var(--color-accent);
}

.team-content .body-text {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 16px;
}

/* ============================================================
   TREATMENTS
   ============================================================ */
.treatments {
  padding: var(--section-padding) 0;
  background-color: var(--color-white);
  position: relative;
}

.treatments-header {
  text-align: center;
  margin-bottom: 64px;
}

.treatments-header .section-subtitle {
  margin: 0 auto;
}

.treatments-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.treatment-card {
  position: relative;
  padding: 36px 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background-color: var(--color-white);
  transition: all var(--transition-base);
  overflow: hidden;
  cursor: default;
  min-height: 220px;
}

/* Blurred background image layer */
.treatment-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(4px);
  transform: scale(1.1); /* prevent blur white edges */
  transition: filter var(--transition-base), transform var(--transition-base);
  z-index: 0;
}

.treatment-card:hover .treatment-card-bg {
  filter: blur(3px);
  transform: scale(1.15);
}

/* Semi-transparent dark overlay for text readability */
.treatment-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(28, 50, 70, 0.55);
  z-index: 1;
  transition: background var(--transition-base);
}

.treatment-card:hover .treatment-card-overlay {
  background: rgba(28, 50, 70, 0.6);
}

/* Text content on top */
.treatment-card-content {
  position: relative;
  z-index: 2;
}

.treatment-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-sky), var(--color-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
  z-index: 3;
}

.treatment-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: transparent;
}

.treatment-card:hover::before {
  transform: scaleX(1);
}

.treatment-icon {
  font-size: 1.8rem;
  margin-bottom: 20px;
  display: block;
}

.treatment-card h3 {
  font-size: 1rem;
  font-weight: var(--fw-semibold);
  color: var(--color-white);
  margin-bottom: 12px;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.treatment-card p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.65;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

/* ============================================================
   OLTRE IL SORRISO — NARRATIVO
   ============================================================ */
.oltre-sorriso {
  padding: var(--section-padding) 0;
  background-color: var(--color-white);
}

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

.oltre-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.oltre-content .body-text {
  font-size: 1.02rem;
  color: var(--color-text-light);
  line-height: 1.85;
  margin-bottom: 20px;
}

.oltre-highlight {
  margin-top: 12px;
  padding: 24px 32px;
  background: rgba(139, 168, 154, 0.08);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius-sm);
  font-style: italic;
  color: var(--color-navy) !important;
  font-weight: var(--fw-medium);
}

/* ============================================================
   LO STUDIO — GALLERY
   ============================================================ */
.studio {
  padding: var(--section-padding) 0;
  background-image: url('studio-odontoiatrico-sassari-interni.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.studio::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(248, 246, 243, 0.82);
  z-index: 0;
}

.studio > .container {
  position: relative;
  z-index: 1;
}

.studio-header {
  text-align: center;
  margin-bottom: 64px;
}

.studio-header .section-subtitle {
  margin: 0 auto;
}

.studio-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: 16px;
}

.studio-gallery .gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.studio-gallery .gallery-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.studio-gallery .gallery-item.large {
  grid-column: span 2;
}

.studio-gallery .gallery-item.large img {
  height: 360px;
}

.gallery-item .gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28, 50, 70, 0.4), transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-base);
  display: flex;
  align-items: flex-end;
  padding: 24px;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay span {
  color: var(--color-white);
  font-size: 0.8rem;
  font-weight: var(--fw-medium);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  cursor: zoom-out;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  transform: scale(0.9);
  transition: transform var(--transition-base);
}

.lightbox.active img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 50%;
  transition: background var(--transition-fast);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ============================================================
   REVIEWS
   ============================================================ */
.reviews {
  padding: var(--section-padding) 0;
  background-color: var(--color-white);
  overflow: hidden;
}

.reviews-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 64px;
  flex-wrap: wrap;
  gap: 24px;
}

.reviews-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  background: var(--color-bg);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: var(--fw-medium);
  color: var(--color-navy);
}

.reviews-badge .stars {
  color: #F4B400;
  letter-spacing: 2px;
}

.reviews-track-wrapper {
  overflow: hidden;
  position: relative;
}

.reviews-track-wrapper::before,
.reviews-track-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.reviews-track-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--color-white), transparent);
}

.reviews-track-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--color-white), transparent);
}

.reviews-track {
  display: flex;
  gap: 24px;
  cursor: grab;
  will-change: transform;
}

.reviews-track.is-dragging {
  cursor: grabbing;
}

.review-card {
  flex: 0 0 360px;
  padding: 36px;
  background: var(--color-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  transition: box-shadow var(--transition-base), border-color var(--transition-base);
  user-select: none;
}

.review-card:hover {
  box-shadow: var(--shadow-card);
  border-color: transparent;
}

.review-stars {
  color: #F4B400;
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.review-text {
  font-size: 0.9rem;
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-sky-light), var(--color-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: var(--fw-semibold);
  color: var(--color-white);
}

.review-author-info h4 {
  font-size: 0.85rem;
  font-weight: var(--fw-medium);
  color: var(--color-navy);
}

.review-author-info span {
  font-size: 0.75rem;
  color: var(--color-text-light);
}

/* ============================================================
   PARALLAX BANNER
   ============================================================ */
.parallax-banner {
  position: relative;
  height: 400px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-bg);
}

.parallax-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-navy);
  max-width: 600px;
  padding: 0 24px;
}

.parallax-content h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: var(--fw-light);
  line-height: 1.3;
  margin-bottom: 24px;
  color: var(--color-navy);
}

.parallax-content .btn-primary {
  background: var(--color-navy);
  color: var(--color-white);
}

.parallax-content .btn-primary:hover {
  background: var(--color-navy-light);
  box-shadow: 0 4px 20px rgba(28, 50, 70, 0.25);
}

/* ============================================================
   PRENOTA LA TUA VISITA
   ============================================================ */
.section-prenota {
  padding: var(--section-padding) 0;
  background-color: var(--color-bg);
}

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

.prenota-header .section-subtitle {
  margin: 0 auto;
}

.section-prenota .contact-form-wrapper {
  max-width: 720px;
  margin: 0 auto;
  background: var(--color-white);
  padding: 48px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.section-prenota .contact-form-wrapper h3 {
  font-size: 1.5rem;
  font-weight: var(--fw-medium);
  color: var(--color-navy);
  margin-bottom: 8px;
}

.section-prenota .contact-form-wrapper .form-subtitle {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: var(--fw-medium);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-primary);
  font-size: 0.92rem;
  font-weight: var(--fw-regular);
  color: var(--color-text);
  background: var(--color-bg);
  transition: all var(--transition-fast);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--color-accent);
  background: var(--color-white);
  box-shadow: 0 0 0 3px rgba(139, 168, 154, 0.1);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group-checkbox {
  margin-bottom: 24px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  position: relative;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--color-text);
}

.checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.checkbox-custom {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-bg);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.checkbox-custom::after {
  content: '';
  display: block;
  width: 5px;
  height: 10px;
  border: solid var(--color-white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.15s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
  transform: rotate(45deg) scale(1);
}

.checkbox-label input[type="checkbox"]:focus-visible + .checkbox-custom {
  box-shadow: 0 0 0 3px rgba(139, 168, 154, 0.25);
  border-color: var(--color-accent);
}

.checkbox-text {
  color: var(--color-text-light);
  font-size: 0.85rem;
}

.checkbox-text a {
  color: var(--color-accent-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition-fast);
}

.checkbox-text a:hover {
  color: var(--color-navy);
}

.form-submit {
  margin-top: 8px;
  width: 100%;
  padding: 16px;
  justify-content: center;
}

.form-submit:disabled {
  background-color: #B0B8BF;
  color: rgba(255, 255, 255, 0.6);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.form-submit:disabled:hover {
  background-color: #B0B8BF;
  transform: none;
  box-shadow: none;
}

.form-submit:disabled::before {
  display: none;
}

/* ============================================================
   ORARI DI APERTURA
   ============================================================ */
.section-orari {
  padding: var(--section-padding) 0;
  background-color: var(--color-white);
}

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

.orari-header .section-subtitle {
  margin: 0 auto;
}

.orari-content {
  max-width: 600px;
  margin: 0 auto;
}

.contact-hours {
  padding: 32px;
  background: var(--color-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.contact-hours h4 {
  font-size: 0.85rem;
  font-weight: var(--fw-medium);
  color: var(--color-navy);
  margin-bottom: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--color-border);
}

.hours-row:last-child {
  border-bottom: none;
}

.hours-row .day {
  color: var(--color-text);
  font-weight: var(--fw-medium);
}

.hours-row .time {
  color: var(--color-text-light);
}

/* ============================================================
   DOVE SIAMO
   ============================================================ */
.section-dove-siamo {
  padding: var(--section-padding) 0;
  background-color: var(--color-bg);
}

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

.dove-header .section-subtitle {
  margin: 0 auto;
}

.dove-info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.dove-info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 28px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  transition: all var(--transition-base);
}

.dove-info-card:hover {
  box-shadow: var(--shadow-card);
  border-color: transparent;
  transform: translateY(-4px);
}

.dove-info-card .info-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-sky-light), var(--color-sky));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  color: var(--color-navy);
}

.dove-info-card h4 {
  font-size: 0.85rem;
  font-weight: var(--fw-medium);
  color: var(--color-navy);
  margin-bottom: 4px;
  letter-spacing: 0.04em;
}

.dove-info-card p,
.dove-info-card a {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

.dove-info-card a:hover {
  color: var(--color-accent-dark);
}

.dove-content .contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 400px;
  border: 1px solid var(--color-border);
}

.dove-content .contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background-color: var(--color-bg-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .footer-logo-img {
  width: 140px;
  height: auto;
  object-fit: contain;
  margin-bottom: 20px;
  filter: brightness(10);
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 10px;
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--color-white);
}

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  margin-bottom: 0;
}

.footer-socials a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 0;
}

.footer-bottom a:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* ============================================================
   WHATSAPP FLOATING BUTTON
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 12px;
}

.whatsapp-tooltip {
  padding: 8px 16px;
  background: var(--color-white);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: var(--fw-medium);
  color: var(--color-text);
  box-shadow: var(--shadow-card);
  opacity: 0;
  transform: translateX(10px);
  transition: all var(--transition-base);
  white-space: nowrap;
  pointer-events: none;
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

.whatsapp-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
  transition: all var(--transition-base);
  color: white;
}

.whatsapp-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.45);
}

.whatsapp-btn svg {
  width: 28px;
  height: 28px;
  fill: white;
}

/* ============================================================
   FORM SUCCESS MESSAGE
   ============================================================ */
.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.form-success.show {
  display: block;
}

.form-success .success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.5rem;
  color: white;
}

.form-success h3 {
  font-size: 1.3rem;
  color: var(--color-navy);
  margin-bottom: 8px;
}

.form-success p {
  font-size: 0.92rem;
  color: var(--color-text-light);
}

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 1024px) {
  :root {
    --section-padding: 88px;
  }

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

  .team-inner {
    gap: 48px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --section-padding: var(--section-padding-mobile);
    --container-padding: 20px;
  }

  /* Header */
  .nav-links,
  .header-nav .btn-primary {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .header-logo img {
    height: 38px;
  }

  .header.scrolled .header-logo img {
    height: 32px;
  }

  /* Hero */
  .hero-cover {
    height: 85vh;
  }

  .hero-logo-img {
    width: clamp(140px, 45vw, 220px);
  }

  .hero-reveal-content {
    padding: 64px 0 48px;
  }

  .hero-reveal-content .hero-content {
    text-align: center;
  }

  .hero-reveal-content .hero-ctas {
    justify-content: center;
  }

  .hero-scroll-indicator {
    bottom: 24px;
  }

  .hero-bg-image img {
    object-position: 77% center;
  }

  /* Values */
  .values-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Team */
  .team-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .team-image-card img {
    height: 280px;
  }

  .team-image-card:first-child {
    margin-top: 0;
  }

  /* Treatments */
  .treatments-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Studio Gallery */
  .studio-gallery {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .studio-gallery .gallery-item.large {
    grid-column: span 2;
  }

  .studio-gallery .gallery-item img,
  .studio-gallery .gallery-item.large img {
    height: 200px;
  }

  /* Reviews */
  .reviews-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .review-card {
    flex: 0 0 300px;
  }

  /* Prenota / Orari / Dove Siamo */
  .section-prenota .contact-form-wrapper {
    padding: 28px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .dove-info-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .dove-content .contact-map {
    height: 280px;
  }

  /* Parallax */
  .parallax-banner {
    height: 300px;
  }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* WhatsApp */
  .whatsapp-tooltip {
    display: none;
  }

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
  }

  .whatsapp-btn {
    width: 50px;
    height: 50px;
  }

  .whatsapp-btn svg {
    width: 24px;
    height: 24px;
  }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE
   ============================================================ */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero-text {
    font-size: 0.95rem;
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }

  .hero-ctas .btn-primary,
  .hero-ctas .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .team-images {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .team-image-card img {
    height: 220px;
  }

  .studio-gallery {
    grid-template-columns: 1fr;
  }

  .studio-gallery .gallery-item.large {
    grid-column: span 1;
  }
}
