*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --white: #FFFFFF;
  --black: #0A0A0A;
  --navy: #0B1F3A;
  --navy-dark: #081629;
  --gold: #1A6BFF;
  --grey: #888888;
  --border: #E8E8E8;
  --dark-surface: #122040;
  --playfair: 'Playfair Display', Georgia, serif;
  --dm: 'DM Sans', system-ui, sans-serif;
}

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

body {
  font-family: var(--dm);
  background: var(--white);
  color: var(--black);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--gold); color: var(--white); }

a { text-decoration: none; color: inherit; cursor: pointer; }
button { cursor: pointer; border: none; background: none; font-family: var(--dm); }

/* ============================================================
   NAVBAR
============================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 72px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}

#navbar.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,0.08); }

.nav-logo { display: flex; flex-direction: column; gap: 2px; }
.nav-logo-name {
  font-family: var(--playfair);
  font-weight: 700;
  font-size: 22px;
  color: var(--black);
  letter-spacing: 0.04em;
  line-height: 1;
}
.nav-logo-sub {
  font-family: var(--dm);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey);
}

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

.nav-links li a {
  font-family: var(--dm);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--black);
  transition: color 0.2s;
}
.nav-links li a:hover { color: var(--gold); }

.nav-cta {
  font-family: var(--dm);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--gold);
  border: 1px solid var(--gold);
  padding: 8px 20px;
  border-radius: 0;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.nav-cta:hover { background: #0050dd; border-color: #0050dd; color: var(--white); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--navy);
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0; bottom: 0;
  background: var(--white);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--playfair);
  font-size: 36px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--gold); }

/* ============================================================
   SCROLL ANIMATIONS
============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   HERO
============================================================ */
#hero {
  height: 100vh;
  background: var(--navy);
  background-image: url('assets/studio.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 0;
}
#hero > * { position: relative; z-index: 1; }

.hero-inner {
  text-align: center;
  padding: 0 24px;
}

.hero-line {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 32px;
}

.hero-title {
  font-family: 'Times New Roman', Times, serif;
  font-weight: 700;
  font-size: clamp(56px, 8vw, 96px);
  color: var(--white);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

.hero-sub {
  font-family: var(--dm);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 52px;
}

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

.btn-outline-white {
  font-family: var(--dm);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.6);
  padding: 14px 32px;
  transition: background 0.25s, border-color 0.25s;
  cursor: pointer;
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--white);
}

.btn-text-white {
  font-family: var(--dm);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.2s;
  cursor: pointer;
}
.btn-text-white:hover { gap: 14px; }
.btn-text-white .arrow { transition: transform 0.2s; }
.btn-text-white:hover .arrow { transform: translateX(4px); }

.hero-address {
  position: absolute;
  bottom: 36px;
  left: 48px;
  font-family: var(--dm);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  right: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0.3;
}

.hero-scroll-text {
  font-family: var(--dm);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--white);
  writing-mode: vertical-rl;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: var(--white);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.3; }
  50% { transform: scaleY(0.5); opacity: 0.8; }
}

/* ============================================================
   STRIP NUMERI
============================================================ */
#numeri {
  background: var(--white);
  padding: 80px 48px;
  border-bottom: 1px solid var(--border);
}

.numeri-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.numero-item {
  text-align: center;
  padding: 40px 20px;
  border-right: 1px solid var(--border);
}
.numero-item:last-child { border-right: none; }

.numero-value {
  font-family: var(--playfair);
  font-weight: 700;
  font-size: clamp(48px, 5vw, 64px);
  color: var(--black);
  line-height: 1;
  margin-bottom: 12px;
}

.numero-value-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.numero-stars {
  display: inline-flex;
  gap: 3px;
}

.numero-stars svg {
  display: block;
  width: 14px;
  height: 14px;
  fill: var(--gold);
}

.numero-label {
  font-family: var(--dm);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey);
}

/* ============================================================
   INTRO
============================================================ */
#intro {
  position: relative;
  background: var(--navy);
}
.intro-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 48px;
}

.intro-grid {
  display: grid;
  grid-template-columns: 40% 1fr;
  gap: 80px;
  align-items: start;
}
.intro-photo { display: none; }

.eyebrow {
  font-family: var(--dm);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.intro-title {
  font-family: var(--playfair);
  font-weight: 700;
  font-size: clamp(36px, 4vw, 52px);
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 24px;
}

.gold-rule {
  width: 60px;
  height: 2px;
  background: var(--gold);
}

.intro-body {
  font-family: var(--dm);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(255,255,255,0.75);
  margin-bottom: 36px;
}

.firma {
  font-family: var(--playfair);
  font-style: italic;
  font-size: 24px;
  color: var(--white);
  margin-bottom: 24px;
}

.link-gold {
  font-family: var(--dm);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(200,169,110,0.3);
  padding-bottom: 4px;
  transition: gap 0.2s, border-color 0.2s;
  cursor: pointer;
}
.link-gold:hover { gap: 14px; border-color: var(--gold); }

/* ============================================================
   SERVIZI
============================================================ */
#servizi {
  position: relative;
  background: var(--navy);
  background-image: url('assets/studio4.jpg');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  padding: 120px 48px;
}
#servizi::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(11, 31, 58, 0.85);
  z-index: 0;
}
#servizi > * { position: relative; z-index: 1; }

.servizi-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.servizi-header {
  margin-bottom: 64px;
}

.eyebrow-light {
  font-family: var(--dm);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.section-title-light {
  font-family: var(--playfair);
  font-weight: 700;
  font-size: clamp(36px, 4.5vw, 56px);
  color: var(--white);
  line-height: 1.1;
}

.servizi-list {
  list-style: none;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.servizio-row {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 28px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background 0.25s;
  cursor: pointer;
}
.servizio-row:hover { background: rgba(255,255,255,0.04); }

.servizio-num {
  font-family: var(--dm);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--grey);
  min-width: 28px;
}

.servizio-name {
  font-family: var(--playfair);
  font-weight: 700;
  font-size: clamp(22px, 2.5vw, 32px);
  color: var(--white);
  flex: 1;
  line-height: 1.1;
}

.servizio-arrow {
  font-size: 18px;
  color: rgba(255,255,255,0.4);
  transition: transform 0.25s, color 0.25s;
}
.servizio-row:hover .servizio-arrow {
  transform: translateX(8px);
  color: var(--gold);
}

/* ---- Voce espandibile ---- */
.servizio-item { border-bottom: 1px solid rgba(255,255,255,0.08); }
.servizio-item .servizio-row {
  width: 100%;
  border-bottom: none;
  text-align: left;
  font-family: inherit;
  color: inherit;
}
.servizio-toggle:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}

/* La freccia ruota verso il basso quando il pannello è aperto */
.servizio-toggle[aria-expanded="true"] .servizio-arrow {
  transform: rotate(90deg);
  color: var(--gold);
}
.servizio-toggle[aria-expanded="true"]:hover .servizio-arrow {
  transform: rotate(90deg) translateX(4px);
}

/* max-height viene impostata da JS sull'altezza reale del contenuto,
   così l'animazione funziona con testi di qualsiasi lunghezza */
.servizio-dettaglio {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s ease;
}

.servizio-dettaglio-inner {
  padding: 4px 24px 36px 84px;
  max-width: 1180px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
}

/* Le foto stanno nella colonna destra, impilate */
.servizio-foto {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 96px;
}

.servizio-foto img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid rgba(255,255,255,0.12);
}

.servizio-foto figcaption {
  margin-top: 10px;
  font-family: var(--dm);
  font-size: 11px;
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.45);
}

.servizio-testo {
  grid-column: 1;
  grid-row: 1;
}

.servizio-dettaglio-inner p {
  font-family: var(--dm);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255,255,255,0.65);
}
.servizio-dettaglio-inner p + p { margin-top: 18px; }
.servizio-dettaglio-inner strong {
  color: rgba(255,255,255,0.9);
  font-weight: 500;
}

@media (prefers-reduced-motion: reduce) {
  .servizio-dettaglio { transition: none; }
}

/* ============================================================
   PERCHÉ NOI
============================================================ */
#perche {
  padding: 120px 48px;
  background: var(--white);
}

.perche-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header-centered {
  text-align: center;
  margin-bottom: 72px;
}

.section-title {
  font-family: var(--playfair);
  font-weight: 700;
  font-size: clamp(36px, 4vw, 52px);
  color: var(--black);
  line-height: 1.1;
  margin-top: 16px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.card {
  border: 1px solid rgba(255,255,255,0.12);
  background: var(--navy-dark);
  padding: 48px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, background 0.25s;
}
.card:not(:first-child) { border-left: none; }
.card:hover { border-color: var(--gold); background: rgba(26,107,255,0.12); }

.card-ghost-num {
  font-family: var(--playfair);
  font-weight: 700;
  font-size: 120px;
  color: rgba(255,255,255,0.06);
  line-height: 1;
  margin-bottom: -16px;
  position: relative;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

.card-title {
  font-family: var(--dm);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.card-text {
  font-family: var(--dm);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255,255,255,0.7);
  position: relative;
  z-index: 1;
}

/* ============================================================
   PRENOTAZIONE
============================================================ */
#prenota {
  background: var(--navy);
  padding: 120px 48px;
}

.prenota-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 45% 55%;
  gap: 80px;
  align-items: start;
}

.prenota-left { padding-top: 8px; }

.prenota-title {
  font-family: var(--playfair);
  font-weight: 700;
  font-size: clamp(36px, 4vw, 56px);
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 28px;
  margin-top: 16px;
}

.prenota-desc {
  font-family: var(--dm);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255,255,255,0.55);
  margin-bottom: 36px;
}

.prenota-orari {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.prenota-orari li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--dm);
  font-size: 14px;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
}

.orari-arrow {
  color: var(--gold);
  font-size: 12px;
}

/* FORM */
.form-card {
  background: var(--dark-surface);
  padding: 48px;
}

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

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

.form-label {
  display: block;
  font-family: var(--dm);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  font-family: var(--dm);
  font-size: 15px;
  font-weight: 300;
  padding: 10px 0;
  outline: none;
  transition: border-color 0.2s;
  border-radius: 0;
  -webkit-appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-bottom-color: var(--gold);
}

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

.form-select { cursor: pointer; }
.form-select option { background: #1a1a1a; color: var(--white); }

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

.btn-submit {
  width: 100%;
  background: var(--white);
  color: var(--black);
  font-family: var(--dm);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 18px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  border-radius: 0;
  margin-top: 8px;
}
.btn-submit:hover { background: var(--gold); color: var(--white); }

.form-success {
  display: none;
  text-align: center;
  padding: 32px;
}
.form-success.visible { display: block; }
.form-success-icon {
  width: 48px;
  height: 48px;
  background: #4CAF50;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.form-success-title {
  font-family: var(--playfair);
  font-size: 28px;
  color: var(--white);
  margin-bottom: 12px;
}
.form-success-text {
  font-family: var(--dm);
  font-size: 14px;
  color: rgba(255,255,255,0.5);
}

/* ============================================================
   DOVE SIAMO
============================================================ */
#dove {
  padding: 120px 48px;
  background: var(--white);
}

.dove-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.dove-title {
  font-family: var(--playfair);
  font-weight: 700;
  font-size: clamp(32px, 3.5vw, 48px);
  color: var(--black);
  line-height: 1.1;
  margin-bottom: 36px;
  margin-top: 16px;
}

.dove-detail {
  font-family: var(--dm);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.9;
  color: #555555;
  margin-bottom: 28px;
}

.dove-label {
  font-family: var(--dm);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.dove-orari-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
}

.dove-orario-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--dm);
  font-size: 14px;
  font-weight: 300;
  color: #555555;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.map-wrapper {
  overflow: hidden;
}
.map-wrapper iframe {
  width: 100%;
  height: 400px;
  border: none;
  display: block;
}

/* ============================================================
   CTA FINALE
============================================================ */
#cta-finale {
  background: var(--navy);
  padding: 160px 48px;
  text-align: center;
  position: relative;
}

.cta-line {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 40px;
}

.cta-title {
  font-family: var(--playfair);
  font-weight: 900;
  font-size: clamp(64px, 10vw, 120px);
  color: var(--white);
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}

.cta-sub {
  font-family: var(--dm);
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 48px;
}

/* ============================================================
   FOOTER
============================================================ */
footer {
  background: var(--navy);
  padding: 80px 48px 40px;
  border-top: 1px solid #1a1a1a;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.footer-logo-name {
  font-family: var(--playfair);
  font-weight: 700;
  font-size: 28px;
  color: var(--white);
  letter-spacing: 0.04em;
}

.footer-logo-sub {
  font-family: var(--dm);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey);
  margin-top: 4px;
}

.footer-sep {
  height: 1px;
  background: #222222;
  margin-bottom: 48px;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 64px;
}

.footer-col-title {
  font-family: var(--dm);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-family: var(--dm);
  font-size: 13px;
  font-weight: 300;
  color: var(--grey);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-family: var(--dm);
  font-size: 12px;
  font-weight: 300;
  color: #444444;
}

.footer-legal {
  display: flex;
  gap: 24px;
}
.footer-legal a {
  font-family: var(--dm);
  font-size: 12px;
  font-weight: 300;
  color: #444444;
  transition: color 0.2s;
}
.footer-legal a:hover { color: var(--grey); }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
  #navbar { padding: 0 32px; }
  .intro-grid { grid-template-columns: 1fr; gap: 48px; }
  .prenota-inner { grid-template-columns: 1fr; gap: 56px; }
  .dove-inner { grid-template-columns: 1fr; gap: 48px; }
  #intro, #servizi, #perche, #prenota, #dove { padding: 80px 32px; }
  #cta-finale { padding: 120px 32px; }
  footer { padding: 60px 32px 32px; }
  #numeri { padding: 60px 32px; }
}

@media (max-width: 768px) {
  #navbar { padding: 0 24px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .numeri-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .numero-item:nth-child(2) { border-right: none; }
  .numero-item:nth-child(3) { border-top: 1px solid var(--border); }
  .numero-item:nth-child(4) { border-top: 1px solid var(--border); border-right: none; }

  .card-grid { grid-template-columns: 1fr; }
  .card:not(:first-child) { border-left: 1px solid var(--border); border-top: none; }

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

  .footer-top { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-cols { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  /* La griglia non deve poter diventare più larga dello schermo:
     min-width:0 permette alle colonne di restringersi sotto la
     larghezza del numero, altrimenti "10.000+" sfonda il viewport. */
  .numero-item { min-width: 0; padding: 36px 12px; }
  .numero-value { font-size: clamp(30px, 8.5vw, 48px); }
  .numero-value-rating { flex-wrap: wrap; gap: 8px; }
  .numero-stars svg { width: 12px; height: 12px; }

  /* clamp() partiva da 56px: "Odontoiatrico" a 56px è più largo
     dello schermo e il titolo veniva tagliato ai lati */
  .hero-title { font-size: clamp(32px, 10vw, 56px); }

  /* Il rientro di 84px lasciava una colonna di ~27 caratteri:
     su schermo stretto il testo va allineato al bordo */
  .servizio-dettaglio-inner {
    padding: 4px 24px 32px;
    grid-template-columns: 1fr;
    gap: 28px;
  }
  /* Su mobile le foto vanno sopra il testo, in colonna unica */
  .servizio-foto {
    grid-column: 1;
    grid-row: 1;
    position: static;
    max-width: 420px;
  }
  .servizio-testo { grid-column: 1; grid-row: 2; }

  /* Rete di sicurezza contro lo scorrimento laterale: su body da solo
     non basta. Solo mobile, così il desktop resta intatto. */
  html { overflow-x: hidden; }

  /* #hero > * ha specificità maggiore (id) di .hero-address / .hero-scroll
     e imponeva position:relative, mandando i due elementi in flusso flex
     accanto al titolo invece che negli angoli. Qui la specificità è più
     alta, così torna l'absolute previsto dal design. */
  #hero > .hero-address,
  #hero > .hero-scroll { position: absolute; }

  /* Vincolato a destra per andare a capo invece di sbordare */
  .hero-address {
    left: 24px;
    right: 56px;
    font-size: 10px;
    line-height: 1.6;
  }
  .hero-scroll { right: 24px; }

  #intro, #servizi, #perche, #prenota, #dove { padding: 72px 24px; }
  #cta-finale { padding: 100px 24px; }
  footer { padding: 56px 24px 28px; }
  #numeri { padding: 60px 24px; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; gap: 24px; }
  .form-card { padding: 32px 24px; }
  .dove-inner { gap: 40px; }
}
