/* =========================================
   Dott. Alessandro Capezzuto — Psicologo Salerno
   Foglio di stile principale
   ========================================= */

@font-face {
  font-family: 'FS Ostro';
  src: url('FSOstro-Regular.woff2') format('woff2'),
       url('FSOstro-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --sage: #7a8f7e;
  --sage-light: #f0f4f0;
  --sage-dark: #0e1c2f;
  --stone: #b8a99a;
  --stone-light: #f7f4f1;
  --ink: #1c1c1c;
  --muted: #6b6b6b;
  --line: rgba(0, 0, 0, 0.08);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "DM Sans", sans-serif;
  --nav-font: 'FS Ostro', 'Cormorant Garamond', Georgia, serif;
  --nav-height: 124px; /* fallback; valore reale viene settato via JS */
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.7;
  font-size: 16px;
}

/* Blocca scroll quando il menu mobile è aperto */
body.nav-open {
  overflow: hidden;
}

/* =========================================
   NAVIGAZIONE
   ========================================= */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.2rem 5vw;
  background: #0e1c2f;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-logo-wrap {
  display: flex;
  align-items: center;
}

.immagineLogo {
  height: 120px;
  display: block;
}

.nav-logo {
  font-family: var(--nav-font);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--ink);
}

.nav-logo span {
  color: var(--sage);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-family: var(--nav-font);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--sage);
}

/* =========================================
   HAMBURGER BUTTON
   Visibile sotto 900px (vedi @media)
   ========================================= */

.nav-toggle {
  display: none; /* nascosto su desktop */
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 102;
  position: relative;
}

.nav-toggle-bar {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  margin: 0 auto;
  transition: transform 0.3s ease, opacity 0.2s ease;
  transform-origin: center;
}

/* Animazione hamburger -> X quando aperto */
.nav-toggle.is-active .nav-toggle-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle.is-active .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-active .nav-toggle-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* =========================================
   BOTTONE WHATSAPP
   ========================================= */

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 18px;
  background: transparent;
  color: #25D366;
  font-family: 'DM Sans', 'Helvetica Neue', sans-serif !important;
  font-size: 13px;
  font-weight: 700 !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 2px solid #25D366;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.btn-whatsapp:hover {
  background: #25D366;
  color: #fff;
}

/* =========================================
   HERO — nuova struttura:
   1) Citazione cinematica full-width in alto
   2) Riga inferiore con testo (sx) e foto (dx)
   ========================================= */

#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 100px 0 0;
  background: #fff;
}

/* --- CITAZIONE CINEMATICA (title card d'autore) --- */

.hero-cinequote {
  background: #fafaf7;
  padding: 4.5rem 5vw 4.75rem;
  text-align: center;
  border-bottom: 1px solid var(--line);
  width: 100%;
}

.hero-cinequote-line {
  width: 72px;
  height: 1px;
  background: var(--sage);
  margin: 0 auto 2.25rem;
}

.hero-cinequote-text {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.2;
  color: var(--sage-dark);
  margin: 0 auto 2rem;
  max-width: 980px;
  letter-spacing: 0.003em;
}

.hero-cinequote-author {
  display: inline-block;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--ink);
  padding-top: 0.6rem;
  border-top: 1px solid var(--ink);
}

/* --- RIGA INFERIORE: testo a sinistra, foto a destra --- */

.hero-bottom {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 4rem 0 0 5vw;
  gap: 4rem;
}

.hero-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-eyebrow::before {
  content: "";
  display: block;
  width: 32px;
  height: 1px;
  background: var(--sage);
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 300;
  line-height: 1.18;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.hero-title em {
  font-style: italic;
  color: var(--sage-dark);
}

.hero-desc {
  font-size: 16px;
  color: var(--muted);
  font-weight: 300;
  max-width: 440px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.hero-visual {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  min-height: 540px;
}

.hero-photo-placeholder {
  width: 100%;
  height: 100%;
  background: var(--sage-light);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero-tag {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  background: #fff;
  padding: 1rem 1.25rem;
  font-size: 13px;
  border-left: 2px solid var(--sage);
  z-index: 2;
}

.hero-tag strong {
  display: block;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 2px;
}

.hero-tag span {
  color: var(--muted);
}

/* =========================================
   SEZIONI — BASE
   ========================================= */

section {
  padding: 6rem 5vw;
}

.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

/* =========================================
   PULSANTI
   ========================================= */

.btn-primary {
  display: inline-block;
  padding: 14px 32px;
  background: var(--sage-dark);
  color: #fff;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: var(--ink);
}

.btn-ghost {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.btn-ghost:hover {
  color: var(--ink);
  border-color: var(--ink);
}

/* =========================================
   CHI SONO
   ========================================= */

#chi-sono {
  background: var(--stone-light);
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 5rem;
  align-items: center;
}

.chi-sono-quote {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--sage-dark);
  line-height: 1.6;
  margin-bottom: 2rem;
  padding-left: 1.5rem;
  border-left: 2px solid var(--sage);
}

.chi-sono-text {
  font-size: 15px;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.9;
  margin-bottom: 1.5rem;
}

.credentials {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
}

.credential {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  font-size: 14px;
  color: var(--muted);
}

.credential-dot {
  width: 6px;
  height: 6px;
  background: var(--sage);
  border-radius: 50%;
  margin-top: 8px;
  flex-shrink: 0;
}

/* =========================================
   SERVIZI
   ========================================= */

#servizi {
  background: #fff;
}

.servizi-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.servizi-subtitle {
  max-width: 64%;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.5vw, 1.4rem);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.55;
  font-style: italic;
}

.servizi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line);
}

/* Pallini indicatori carosello (nascosti su desktop) */
.servizi-dots {
  display: none;
}

/* =========================================
   SERVIZIO CARD — con immagine background
   ========================================= */

.servizio-card {
  background: #fff;
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
}

.servizio-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--card-bg);
  background-size: cover;
  background-position: center;
  opacity: 1;
  z-index: 0;
}

.servizio-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(14, 28, 47, 0.68);
  opacity: 1;
  z-index: 1;
}

.servizio-card > * {
  position: relative;
  z-index: 2;
}

.servizio-num {
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.15);
  line-height: 1;
  margin-bottom: 1rem;
}

.servizio-title {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: #fff;
  margin-bottom: 0.75rem;
}

.servizio-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 300;
  line-height: 1.8;
}

/* =========================================
   IL BIOFEEDBACK
   ========================================= */

#biofeedback {
  background: var(--stone-light);
}

.biofeedback-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.biofeedback-image-wrap {
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.biofeedback-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.biofeedback-image-wrap:hover .biofeedback-img {
  transform: scale(1.03);
}

.biofeedback-text {
  font-size: 15px;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.9;
  margin-bottom: 1.5rem;
}

.biofeedback-text strong {
  color: var(--ink);
  font-weight: 500;
}

.biofeedback-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}

.biofeedback-tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  border: 1px solid var(--sage);
  padding: 6px 14px;
}

/* =========================================
   THE MIND BEHIND
   ========================================= */

#mind-behind {
  background: #fff;
}

.mind-behind-header {
  text-align: center;
  margin-bottom: 3rem;
}

.mind-behind-header .section-label {
  display: block;
}

.mind-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.mind-text-block {
  background: var(--stone-light);
  padding: 2.5rem;
  display: flex;
  align-items: center;
  min-height: 260px;
}

.mind-placeholder-text {
  font-size: 15px;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.9;
  padding: 1.5rem;
  width: 100%;
}

.mind-placeholder-text strong {
  color: var(--ink);
  font-weight: 500;
}

.mind-photo-block {
  position: relative;
  min-height: 260px;
  background: #0e1c2f;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mind-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  display: block;
}

.mind-pill-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* =========================================
   MIND PILL
   ========================================= */

.mind-pill {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--line);
  background: #fff;
  transition: border-color 0.2s, background 0.2s;
}

.mind-pill:hover {
  background: var(--sage-light);
  border-color: var(--sage);
}

.mind-pill-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255,255,255,0.2);
}

.mind-pill-avatar--ig {
  background: #0e1c2f;
}

.mind-pill-avatar--yt {
  background: #FF0000;
}

.mind-pill-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  display: block;
  border-radius: 50%;
}

.mind-pill-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.mind-pill-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mind-pill-handle {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mind-pill-btn {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  text-decoration: none;
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}

.mind-pill-btn--ig:hover { background: #0e1c2f; color: #fff; border-color: #0e1c2f; }
.mind-pill-btn--yt:hover { background: #FF0000; color: #fff; border-color: #FF0000; }

/* =========================================
   SOCIAL CARD (sezione contatti)
   ========================================= */

.social-card {
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s;
}

.social-card:hover {
  background: var(--sage-light);
  border-color: var(--sage);
}

.social-banner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-banner--ig { background: #0e1c2f; }
.social-banner--yt { background: #0e1c2f; }

.social-body { padding: 1rem 1.25rem; }

.social-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-top: -24px;
  margin-bottom: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  position: relative;
}

.social-avatar--dr  { background: #7a8f7e; color: #fff; }
.social-avatar--ig  { background: #b8a99a; color: #fff; }
.social-avatar--yt  { background: #FF0000; color: #fff; }

.social-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  display: block;
  border-radius: 50%;
}

.social-platform {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.social-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 2px;
}

.social-handle {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}

.social-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.social-divider {
  height: 1px;
  background: var(--line);
  margin: 10px 0;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.social-btn:hover { opacity: 0.8; }
.social-btn--ig { background: #0e1c2f; color: #fff; }
.social-btn--yt { background: #FF0000; color: #fff; }

/* =========================================
   APPROCCIO
   ========================================= */

#approccio {
  background: var(--sage-dark);
  color: #fff;
}

#approccio .section-label { color: rgba(255, 255, 255, 0.5); }
#approccio .section-title { color: #fff; max-width: 500px; }

.approccio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
}

.approccio-text {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 300;
  line-height: 1.9;
  margin-bottom: 1.5rem;
}

.approccio-text strong {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
}

.approccio-text em {
  color: var(--sage);
  font-style: italic;
}

.pillar {
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.pillar-title {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.5rem;
}

.pillar-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 300;
  line-height: 1.8;
}

/* =========================================
   CONTATTI — layout 2×2
   ========================================= */

#contatti {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 0;
  padding: 0;
  background: var(--stone-light);
}

.contatti-cell {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.contatti-cell--text {
  background: var(--stone-light);
  padding: 4rem 3vw 3rem 5vw;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.contatti-cell--maps {
  background: #e8ede8;
  border-bottom: 1px solid var(--line);
  min-height: 340px;
}

.contatti-cell--maps iframe {
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
  display: block;
}

.contatti-cell--email {
  background: #0e1c2f;
  border-right: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 2rem;
  min-height: 200px;
}

.contatti-cell--email:hover {
  background: #162c47;
}

.contatti-cell--ig {
  background: #fff;
  transition: background 0.2s;
}

.contatti-cell--ig:hover {
  background: var(--sage-light);
}

.contatti-cell--ig .social-banner {
  height: 52px;
  flex-shrink: 0;
}

.contatti-cell--ig .social-body {
  padding: 0.75rem 1.25rem;
}

.contatti-cell--ig .social-avatar {
  width: 40px;
  height: 40px;
  margin-top: -20px;
  margin-bottom: 6px;
}

.contatti-cell--ig .social-name   { font-size: 13px; }
.contatti-cell--ig .social-handle { font-size: 11px; margin-bottom: 6px; }
.contatti-cell--ig .social-desc   { font-size: 11px; margin-bottom: 8px; }

.contatti-intro {
  font-size: 15px;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 380px;
}

.contact-info { margin-top: 2rem; }

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.contact-item label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
}

.contact-item span {
  font-size: 15px;
  color: var(--ink);
  font-weight: 300;
}

.email-hero-icon {
  width: 56px;
  height: 56px;
  background: rgba(122, 143, 126, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.email-hero-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.6rem;
}

.email-hero-text {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.email-hero-address {
  font-size: 13px;
  color: var(--sage);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
  word-break: break-all;
}


.email-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 28px;
  background: var(--sage);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 24px;
  transition: background 0.2s, transform 0.15s;
}

.email-hero-btn:hover {
  background: #6a7d6e;
  transform: translateY(-1px);
}

/* =========================================
   FOOTER
   ========================================= */

footer {
  padding: 2rem 5vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  gap: 1rem;
  flex-wrap: wrap;
}

footer strong {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 1100px) {
  .contatti-cell--maps,
  .contatti-cell--maps iframe {
    min-height: 260px;
  }
}

/* ========================================
   BREAKPOINT MOBILE/TABLET — sotto 900px
   - Hamburger menu attivo
   - Carosello servizi attivo
   - Layout colonna singola
   - Logo ridotto per nav compatta
   ======================================== */
@media (max-width: 900px) {

  /* --- NAV COMPATTA --- */
  nav {
    padding: 0.5rem 5vw;
  }

  .immagineLogo {
    height: 64px; /* logo molto più piccolo per nav meno alta */
  }

  /* --- HAMBURGER MENU --- */
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    /* Da inline a tendina full-width sotto la nav */
    position: fixed;
    /* top settato dinamicamente da JS via --nav-height */
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: #0e1c2f;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    padding: 1.25rem 5vw 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    transform: translateY(-110%); /* nascosta sopra */
    transition: transform 0.4s ease, opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
    /* altezza max = viewport - nav, così non sfora mai */
    max-height: calc(100vh - var(--nav-height));
    overflow-y: auto;
    z-index: 99;
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    list-style: none;
  }

  .nav-links li a {
    display: block;
    padding: 1rem 0;
    font-size: 16px;
  }

  .nav-links .btn-whatsapp {
    width: 100%;
    justify-content: center;
    margin-top: 1.25rem;
    padding: 12px 18px;
    order: 99; /* va in fondo */
  }

  /* --- HERO --- */
  #hero {
    padding-top: 90px; /* meno top padding perché la nav è più piccola */
  }

  .hero-cinequote {
    padding: 3.25rem 6vw 3.5rem;
  }

  .hero-cinequote-line {
    width: 56px;
    margin-bottom: 1.75rem;
  }

  .hero-cinequote-author {
    letter-spacing: 0.28em;
    font-size: 10px;
  }

  .hero-bottom {
    grid-template-columns: 1fr;
    padding: 2.5rem 5vw 0;
    gap: 2.5rem;
  }

  .hero-visual {
    height: 320px;
    min-height: auto;
  }

  /* --- CHI SONO --- */
  #chi-sono {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* --- SERVIZI: ATTIVA CAROSELLO --- */
  .servizi-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .servizi-subtitle {
    max-width: 100%;
    font-size: 1.1rem;
  }

  /* La griglia diventa una striscia orizzontale scrollabile */
  .servizi-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    gap: 0;
    background: transparent;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .servizi-grid::-webkit-scrollbar {
    display: none;
  }

  .servizio-card {
    scroll-snap-align: start;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }

  /* Pallini indicatori visibili */
  .servizi-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 1.75rem;
  }

  .servizi-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.18);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
  }

  .servizi-dot.is-active {
    background: var(--sage-dark);
    transform: scale(1.3);
  }

  /* --- APPROCCIO --- */
  .approccio-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* --- BIOFEEDBACK --- */
  .biofeedback-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* --- MIND BEHIND --- */
  .mind-top {
    grid-template-columns: 1fr;
  }

  .mind-photo-block {
    min-height: 220px;
  }

  .mind-pill-row {
    grid-template-columns: 1fr;
  }

  /* --- CONTATTI --- */
  #contatti {
    grid-template-columns: 1fr;
  }

  .contatti-cell--text  { border-right: none; }
  .contatti-cell--maps,
  .contatti-cell--maps iframe { min-height: 240px; }
  .contatti-cell--email { min-height: 180px; }
  .contatti-cell--ig    { border-left: none; }
}

/* ========================================
   BREAKPOINT SMARTPHONE — sotto 600px
   ======================================== */
@media (max-width: 600px) {
  .immagineLogo {
    height: 54px; /* logo ancora più piccolo su smartphone */
  }

  nav {
    padding: 0.4rem 5vw;
  }

  .hero-cinequote {
    padding: 2.5rem 7vw 2.75rem;
  }

  .servizi-subtitle {
    font-size: 1rem;
  }

  footer {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}