/* =============================================
   DOTT.SSA ELEONORA SCANCAMARRA — PSICOLOGA
   style.css | Percorsi relativi (Hostinger-safe)
   Palette: azzurro polvere · crema · sage · peach
   Font: Cormorant Garamond + DM Sans
   ============================================= */

/* ---------- CSS VARIABLES ---------- */
:root {
  /* Brand palette — derivata dai post Instagram */
  --white:        #ffffff;
  --cream:        #faf6f1;        /* sfondo principale */
  --cream-dark:   #f1ebe2;        /* hover/sezioni alterne */
  --dust-blue:    #bcd3d4;        /* azzurro polvere dominante */
  --dust-light:   #e8eff0;        /* azzurro chiarissimo */
  --dust-deep:    #88a8aa;        /* azzurro scuro per accenti */
  --sage:         #c9d4b8;        /* verde salvia */
  --peach:        #efc7a8;        /* peach/blush dei post */
  --peach-light:  #f7e2d1;
  --mauve:        #c3a3a8;        /* accento secondario */

  --ink:          #2a2f33;        /* testo principale, blu/grigio scuro */
  --ink-light:    #4d5358;
  --ink-soft:     #7a8085;
  --line:         #e3dfd9;        /* bordi sottili */

  /* Tipografia */
  --font-serif:   'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-sans:    'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --max-w:        1180px;
  --pad-x:        1.5rem;

  /* Radius */
  --r-sm:         8px;
  --r-md:         16px;
  --r-lg:         28px;
  --r-xl:         48px;

  /* Shadow */
  --sh-sm:        0 2px 12px rgba(42,47,51,0.06);
  --sh-md:        0 8px 32px rgba(42,47,51,0.10);
  --sh-lg:        0 20px 60px rgba(42,47,51,0.14);

  /* Transition */
  --tr:           0.32s cubic-bezier(0.4, 0, 0.2, 1);
  --tr-slow:      0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video, iframe { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color var(--tr); }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

/* Lock scroll quando menu mobile aperto — safety extra per iOS */
html.menu-locked,
html.menu-locked body { overflow: hidden !important; touch-action: none; }
.mobile-menu, .menu-overlay { touch-action: pan-y; }

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.005em;
  color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 300; }
h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h3 { font-size: clamp(1.35rem, 2.5vw, 1.85rem); }
h4 { font-size: 1.05rem; font-weight: 500; }

h1 em, h2 em { font-style: italic; color: var(--dust-deep); }

p { margin-bottom: 1rem; color: var(--ink-light); }
p:last-child { margin-bottom: 0; }

.section-label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dust-deep);
  margin-bottom: 1rem;
}

/* ---------- LAYOUT ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
  position: relative;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.8rem;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: var(--r-xl);
  transition: all var(--tr);
  cursor: pointer;
  white-space: nowrap;
  border: 1.5px solid transparent;
}
.btn-primary {
  background: var(--ink);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--dust-deep);
  transform: translateY(-2px);
  box-shadow: var(--sh-md);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--white);
}
.btn-small {
  padding: 0.6rem 1.2rem;
  font-size: 0.82rem;
}

/* ---------- NAVBAR ---------- */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(250, 246, 241, 0.0);
  transition: background var(--tr), box-shadow var(--tr), padding var(--tr);
  padding: 1.2rem 0;
}
#navbar.scrolled {
  background: rgba(250, 246, 241, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--sh-sm);
  padding: 0.7rem 0;
}

.nav-inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.logo-sub {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--dust-deep);
  margin-top: 0.3rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.nav-links a {
  position: relative;
  padding: 0.5rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--ink-light);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0.2rem;
  width: 0;
  height: 1px;
  background: var(--dust-deep);
  transition: width var(--tr), left var(--tr);
}
.nav-links a:hover::after {
  width: 60%;
  left: 20%;
}
.nav-links .nav-cta {
  background: var(--ink);
  color: var(--white);
  border-radius: var(--r-xl);
  padding: 0.55rem 1.2rem;
  margin-left: 0.4rem;
}
.nav-links .nav-cta::after { display: none; }
.nav-links .nav-cta:hover {
  background: var(--dust-deep);
  color: var(--white);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  z-index: 200;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--tr), opacity var(--tr);
  transform-origin: center;
}
.nav-toggle.active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ---------- MENU MOBILE ---------- */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(42,47,51,0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--tr);
  z-index: 150;
}
.menu-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: min(86vw, 380px);
  height: 100vh;
  height: 100dvh;
  background: var(--cream);
  z-index: 180;
  transform: translateX(100%);
  transition: transform var(--tr-slow);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-menu.open {
  transform: translateX(0);
  box-shadow: var(--sh-lg);
}

.mobile-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  z-index: 1;
}
.mobile-close svg { width: 22px; height: 22px; }

.mobile-menu-inner {
  padding: 5rem 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.mobile-tag {
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--dust-deep);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.mobile-links {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
}
.mobile-links a,
.mobile-link {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 400;
  padding: 0.6rem 0;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: color var(--tr), padding var(--tr);
}
.mobile-links a:hover,
.mobile-links a:active,
.mobile-link:hover,
.mobile-link:active {
  color: var(--dust-deep);
  padding-left: 0.4rem;
}

.mobile-contact {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.mobile-link-contact {
  font-size: 0.88rem;
  color: var(--ink-light);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: 7rem;
  padding-bottom: 4rem;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(180deg, var(--cream) 0%, var(--dust-light) 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.5;
}
.hero-blob-1 {
  width: 380px;
  height: 380px;
  background: var(--peach);
  top: -100px;
  left: -120px;
}
.hero-blob-2 {
  width: 460px;
  height: 460px;
  background: var(--sage);
  bottom: -160px;
  right: -160px;
  opacity: 0.4;
}
.hero-leaf {
  position: absolute;
  width: 200px;
  height: 300px;
  color: var(--dust-deep);
  opacity: 0.12;
}
.hero-leaf-1 { top: 10%; right: 8%; transform: rotate(20deg); }
.hero-leaf-2 { bottom: 6%; left: 4%; transform: rotate(-30deg) scale(0.7); }

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: center;
}

.hero-text h1 {
  margin-bottom: 1.6rem;
  color: var(--ink);
}
.hero-lead {
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  color: var(--ink-light);
  margin-bottom: 2.2rem;
  max-width: 520px;
  line-height: 1.75;
}
.hero-lead strong { color: var(--ink); font-weight: 500; }

.hero-cta {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 2.4rem;
}

.hero-meta {
  display: flex;
  gap: 1.8rem;
  flex-wrap: wrap;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.meta-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.meta-item svg {
  width: 18px;
  height: 18px;
  color: var(--dust-deep);
  flex-shrink: 0;
}

/* Hero photo */
.hero-photo {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-photo-frame {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4/5;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--dust-light);
  box-shadow: var(--sh-lg);
  position: relative;
  z-index: 2;
}
.hero-photo-frame::before {
  /* placeholder gradient se l'immagine non c'è */
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--peach-light), var(--dust-blue));
  z-index: 0;
}
.hero-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}
.hero-photo-badge {
  position: absolute;
  bottom: -1rem;
  left: -1rem;
  background: var(--white);
  padding: 1rem 1.2rem;
  border-radius: var(--r-md);
  box-shadow: var(--sh-md);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  z-index: 3;
  max-width: 240px;
}
.badge-num {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--dust-deep);
  line-height: 1;
}
.badge-text {
  font-size: 0.7rem;
  line-height: 1.5;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}
.badge-text strong {
  color: var(--ink);
  font-weight: 500;
}

/* Hero scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 38px;
  border: 1.5px solid var(--ink-soft);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
  z-index: 3;
  opacity: 0.7;
  transition: opacity var(--tr);
}
.hero-scroll:hover { opacity: 1; }
.hero-scroll span {
  width: 2px;
  height: 6px;
  background: var(--ink-soft);
  border-radius: 1px;
  animation: scrollDot 1.8s infinite;
}
@keyframes scrollDot {
  0% { opacity: 1; transform: translateY(0); }
  50% { opacity: 0.3; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ---------- CHI SONO ---------- */
.section-chi { background: var(--cream); }

.chi-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 4rem;
  align-items: center;
}

.chi-photo {
  position: relative;
  padding-bottom: 5.5rem;  /* altezza card accent + margine */
}
.chi-photo-frame {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--peach-light);
  box-shadow: var(--sh-md);
  position: relative;
}
.chi-photo-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--peach), var(--sage));
  z-index: 0;
}
.chi-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}
/* Card accent: dentro il padding-bottom di chi-photo,
   ancorata in basso a destra — mai sopra la foto */
.chi-accent {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--dust-blue);
  padding: 1.2rem 1.4rem;
  border-radius: var(--r-md);
  max-width: 220px;
  box-shadow: var(--sh-sm);
  z-index: 3;
}
.chi-accent p {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
}
.chi-accent em {
  font-style: italic;
  color: var(--ink);
  font-weight: 500;
}

.chi-text h2 { margin-bottom: 1.6rem; }
.chi-text p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.1rem;
}
.chi-text strong { color: var(--ink); font-weight: 500; }
.chi-text em { font-style: italic; color: var(--dust-deep); }

.chi-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.8rem;
}
.chi-tags li {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-light);
  padding: 0.45rem 1rem;
  border: 1px solid var(--dust-deep);
  border-radius: var(--r-xl);
  background: transparent;
}
.chi-firma {
  margin-top: 2rem;
  opacity: 0.75;
}
.firma-img {
  max-width: 240px;
  height: auto;
  display: block;
}

/* ---------- AREE DI INTERVENTO ---------- */
.section-aree {
  background: var(--dust-light);
  position: relative;
  overflow: hidden;
}

.aree-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 4rem;
}
.aree-header h2 { margin-bottom: 1rem; }
.aree-header p { color: var(--ink-light); font-size: 1rem; }

.aree-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.area-card {
  background: var(--white);
  padding: 2.2rem 1.8rem;
  border-radius: var(--r-md);
  position: relative;
  transition: transform var(--tr), box-shadow var(--tr);
  overflow: hidden;
  border: 1px solid transparent;
}
.area-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--dust-deep);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--tr-slow);
}
.area-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-md);
}
.area-card:hover::before {
  transform: scaleX(1);
}

.area-num {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--dust-blue);
  font-style: italic;
}

.area-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--r-sm);
  background: var(--dust-light);
  color: var(--dust-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
}
.area-icon svg { width: 30px; height: 30px; }

.area-card h3 {
  margin-bottom: 0.8rem;
  color: var(--ink);
}
.area-card p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--ink-light);
}

/* ---------- APPROCCIO ---------- */
.section-approccio {
  background: var(--cream);
  position: relative;
}
.section-approccio::before {
  content: '';
  position: absolute;
  top: 8%;
  right: -6%;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: var(--peach-light);
  filter: blur(80px);
  opacity: 0.6;
  z-index: 0;
}

.approccio-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 820px);
  justify-content: center;
}
.approccio-text h2 { margin-bottom: 1.4rem; }
.approccio-text > p {
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 1.2rem;
  max-width: 720px;
}
.approccio-text strong { color: var(--ink); font-weight: 500; }
.approccio-text em { font-style: italic; color: var(--dust-deep); }

.approccio-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  margin-top: 3rem;
}
.pillar {
  padding: 1.8rem 1.4rem;
  background: var(--white);
  border-radius: var(--r-md);
  border-left: 3px solid var(--dust-deep);
  box-shadow: var(--sh-sm);
}
.pillar-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--dust-deep);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.6rem;
}
.pillar h4 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--ink);
}
.pillar p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--ink-light);
  margin: 0;
}

/* ---------- RECENSIONI ---------- */
.section-recensioni {
  background: var(--dust-light);
}

.rec-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}
.rec-header h2 { margin-bottom: 1.2rem; }

.rec-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--ink-light);
}
.rec-stars { display: flex; gap: 2px; color: #e6b54a; }
.rec-stars svg { width: 18px; height: 18px; }
.rec-rating strong { color: var(--ink); font-weight: 500; }
.rec-rating a { color: var(--dust-deep); border-bottom: 1px solid currentColor; }

/* wrap: flex row → [freccia] [clip] [freccia] */
.rec-slider-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}
/* clip: overflow hidden — contiene le card, non le frecce */
.rec-slider-clip {
  flex: 1;
  overflow: hidden;
  padding: 0.5rem 0;
}
.rec-slider {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.rec-card {
  flex: 0 0 calc((100% - 3rem) / 3);
  background: var(--white);
  padding: 2rem 1.8rem;
  border-radius: var(--r-md);
  box-shadow: var(--sh-sm);
  position: relative;
  display: flex;
  flex-direction: column;
}
.rec-quote {
  width: 28px;
  height: 28px;
  color: var(--dust-blue);
  margin-bottom: 1rem;
  opacity: 0.6;
}
.rec-card p {
  font-family: var(--font-serif);
  font-size: 1.02rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 1.4rem;
  flex: 1;
}
.rec-card footer {
  font-size: 0.8rem;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.rec-card footer strong { color: var(--ink); font-weight: 500; }

.rec-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sh-sm);
  color: var(--ink);
  z-index: 2;
  transition: all var(--tr);
}
.rec-btn:hover {
  background: var(--ink);
  color: var(--white);
  transform: scale(1.05);
}
.rec-btn svg { width: 18px; height: 18px; }

.rec-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}
.rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dust-blue);
  opacity: 0.4;
  transition: all var(--tr);
}
.rec-dot.active {
  width: 26px;
  border-radius: 4px;
  opacity: 1;
  background: var(--dust-deep);
}

.rec-cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* ---------- STUDI ---------- */
.section-studi { background: var(--cream); }

.studi-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}
.studi-header h2 { margin-bottom: 1rem; }
.studi-header strong { color: var(--ink); font-weight: 500; }

.studi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.studio-card {
  background: var(--white);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  transition: transform var(--tr), box-shadow var(--tr);
  display: flex;
  flex-direction: column;
}
.studio-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
}

.studio-map {
  width: 100%;
  height: 260px;
  background: var(--dust-light);
  position: relative;
  overflow: hidden;
}
.studio-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(0.7) contrast(0.95);
}

.studio-online-icon {
  width: 100%;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--dust-blue), var(--sage));
  color: var(--ink);
}
.studio-online-icon svg {
  width: 80px;
  height: 80px;
  opacity: 0.5;
}
.studio-card-online {
  /* variante card "online", eredita base studio-card */
  background: var(--white);
}

.studio-body {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.studio-tag {
  display: inline-block;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dust-deep);
  font-weight: 500;
  margin-bottom: 0.8rem;
}
.studio-body h3 { margin-bottom: 0.8rem; }
.studio-addr {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: var(--ink-light);
  margin-bottom: 1rem;
}
.studio-addr svg {
  width: 16px;
  height: 16px;
  color: var(--dust-deep);
  flex-shrink: 0;
  margin-top: 4px;
}
.studio-feat {
  margin-bottom: 1.2rem;
}
.studio-feat li {
  font-size: 0.85rem;
  color: var(--ink-light);
  padding: 0.3rem 0;
  padding-left: 1.1rem;
  position: relative;
}
.studio-feat li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--dust-deep);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1;
}
.studio-link {
  margin-top: auto;
  font-size: 0.85rem;
  color: var(--dust-deep);
  font-weight: 500;
  letter-spacing: 0.02em;
  border-bottom: 1px solid currentColor;
  align-self: flex-start;
  padding-bottom: 2px;
}
.studio-link:hover { color: var(--ink); }

/* ---------- TARIFFE ---------- */
.section-tariffe {
  background: var(--dust-light);
  padding: clamp(3rem, 6vw, 5rem) 0;
}
.tariffe-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
  background: var(--white);
  border-radius: var(--r-lg);
  padding: clamp(2rem, 4vw, 3.5rem);
  box-shadow: var(--sh-sm);
}
.tariffe-text h2 { margin-bottom: 1.2rem; }
.tariffe-text strong { color: var(--ink); font-weight: 500; }
.tariffe-note {
  font-size: 0.86rem;
  color: var(--ink-soft);
  font-style: italic;
  margin-top: 1rem;
}

.tariffe-prices {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.price-item {
  background: var(--cream);
  padding: 1.4rem 1.6rem;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  gap: 1.4rem;
  border-left: 3px solid var(--dust-deep);
}
.price-num {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--ink);
  line-height: 1;
  flex-shrink: 0;
}
.price-label {
  font-size: 0.95rem;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.4;
}
.price-label small {
  display: block;
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-top: 0.3rem;
}

/* ---------- CONTATTI ---------- */
.section-contatti { background: var(--cream); }

.contatti-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
}

.contatti-info h2 { margin-bottom: 1.2rem; }
.contatti-info > p {
  font-size: 1rem;
  margin-bottom: 2rem;
  max-width: 460px;
}

.contatti-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.contatti-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.ci-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--dust-light);
  color: var(--dust-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ci-icon svg { width: 18px; height: 18px; }
.ci-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 2px;
}
.ci-value {
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: border-color var(--tr);
}
.ci-value:hover { border-color: var(--dust-deep); }

/* Form */
.contatti-form {
  background: var(--white);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border-radius: var(--r-md);
  box-shadow: var(--sh-sm);
  position: relative;
}
.contatti-form h3 {
  margin-bottom: 1.6rem;
  font-family: var(--font-serif);
}
.form-row {
  margin-bottom: 1.1rem;
}
.form-row label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.form-row label small {
  font-weight: 400;
  color: var(--ink-soft);
}
.form-row label span[aria-hidden] {
  color: var(--dust-deep);
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--cream);
  color: var(--ink);
  transition: border-color var(--tr), background var(--tr);
  font-family: inherit;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--dust-deep);
  background: var(--white);
}
.form-row textarea {
  resize: vertical;
  min-height: 110px;
  font-family: inherit;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}
.form-check input {
  width: auto;
  margin-top: 4px;
  flex-shrink: 0;
}
.form-check label {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--ink-light);
  margin: 0;
  letter-spacing: 0;
  line-height: 1.5;
}
.form-check label a {
  color: var(--dust-deep);
  border-bottom: 1px solid currentColor;
}

.form-submit {
  width: 100%;
  margin-top: 0.6rem;
}
.form-note {
  font-size: 0.78rem;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 1rem;
  margin-bottom: 0;
}

/* ---------- FOOTER ---------- */
#footer {
  background: var(--ink);
  color: var(--cream);
  padding: 4rem 0 1.5rem;
}
#footer .container { padding: 0 var(--pad-x); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand { /* container per logo + tag + claim */ }

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--white);
}
.footer-tag {
  font-size: 0.85rem;
  color: rgba(250,246,241,0.6);
  margin-bottom: 1.4rem;
  line-height: 1.6;
}
.footer-claim {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-style: italic;
  color: rgba(250,246,241,0.8);
  max-width: 280px;
  line-height: 1.5;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(250,246,241,0.5);
  margin-bottom: 1.2rem;
  font-weight: 500;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-col a {
  font-size: 0.9rem;
  color: rgba(250,246,241,0.85);
  transition: color var(--tr);
}
.footer-col a:hover { color: var(--dust-blue); }

.footer-bottom {
  border-top: 1px solid rgba(250,246,241,0.12);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(250,246,241,0.5);
  margin: 0;
}
.footer-credits {
  font-style: italic;
  opacity: 0.7;
}
.footer-bottom em { font-style: italic; }

/* ---------- COOKIE BANNER ---------- */
.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 90;
  background: var(--white);
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
  padding: 1.2rem 1.4rem;
  max-width: 640px;
  margin: 0 auto;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--tr), opacity var(--tr);
}
.cookie-banner.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
.cookie-inner {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.cookie-text {
  flex: 1;
  min-width: 220px;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--ink-light);
}
.cookie-text strong { color: var(--ink); display: block; margin-bottom: 0.2rem; }
.cookie-text a {
  color: var(--dust-deep);
  border-bottom: 1px solid currentColor;
}
.cookie-btns {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* ---------- REVEAL ANIMATION ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   RESPONSIVE
   ============================================= */

/* Tablet & medium screens */
@media (max-width: 1023px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-photo { max-width: 340px; margin: 0 auto; order: -1; padding-bottom: 1.4rem; } /* foto SOPRA il testo */
  .hero { overflow: visible; min-height: auto; padding-bottom: 5rem; }
  .chi-grid { grid-template-columns: 1fr; gap: 3rem; }
  .chi-photo { max-width: 420px; margin: 0 auto; padding-bottom: 5.5rem; }
  .chi-accent { right: 0; bottom: 0; }
  .aree-grid { grid-template-columns: repeat(2, 1fr); }
  .approccio-pillars { grid-template-columns: 1fr; gap: 1rem; }
  .studi-grid { grid-template-columns: 1fr; }
  .tariffe-card { grid-template-columns: 1fr; gap: 2rem; padding: 2rem; }
  .contatti-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
  .rec-card { flex: 0 0 calc((100% - 1.5rem) / 2); }
  .rec-btn { width: 38px; height: 38px; }
}

/* Mobile breakpoint — attiva hamburger */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}

/* Mobile small */
@media (max-width: 640px) {
  :root { --pad-x: 1.2rem; }

  .section { padding: 4rem 0; }
  .hero { padding-top: 5.5rem; min-height: auto; padding-bottom: 5rem; }
  .hero h1 { font-size: clamp(2rem, 8vw, 2.8rem); }
  .hero-lead { font-size: 0.98rem; }
  .hero-cta { width: 100%; justify-content: center; }
  .hero-cta .btn { flex: 1; }
  .hero-meta { gap: 0.8rem; flex-direction: column; align-items: center; }
  .hero-photo-frame { max-width: 300px; }
  .hero-photo-badge { padding: 0.8rem 1rem; max-width: 200px; bottom: 0; left: 0; }
  .badge-num { font-size: 1.8rem; }
  .badge-text { font-size: 0.62rem; }
  .hero-leaf { width: 130px; height: 200px; }
  .hero-scroll { display: none; }

  /* ── Centering su mobile ── */
  .hero-text { text-align: center; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-meta { align-items: center; }
  .section-label { display: block; text-align: center; }
  .chi-text { text-align: center; }
  .chi-tags { justify-content: center; }
  .chi-firma { display: flex; justify-content: center; }
  .aree-header { text-align: center; }
  .area-card { text-align: center; }
  .approccio-header { text-align: center; }
  .pillar { text-align: center; }
  .pillar-icon { margin: 0 auto 1rem; }
  .studi-header { text-align: center; }
  .studio-body { text-align: center; }
  .studio-addr { justify-content: center; }
  .studio-link { display: block; text-align: center; }
  .rec-header { text-align: center; }
  .contatti-info { text-align: center; }
  .contatti-item { justify-content: center; }
  .footer-col { text-align: center; }
  .footer-bottom { align-items: center; }
  .section-header { text-align: center; }

  .aree-grid { grid-template-columns: 1fr; gap: 1rem; }
  .area-card { padding: 1.8rem 1.4rem; }

  .rec-card { flex: 0 0 100%; padding: 1.6rem 1.4rem; text-align: center; }
  .rec-btn { width: 38px; height: 38px; }
  .rec-slider-wrap { gap: 0.5rem; }

  .studio-body { padding: 1.4rem; }

  .price-num { font-size: 2rem; }
  .price-item { padding: 1.1rem 1.2rem; gap: 1rem; }

  .contatti-form { padding: 1.4rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: center; }

  .cookie-banner { padding: 1rem; left: 0.6rem; right: 0.6rem; bottom: 0.6rem; }
  .cookie-inner { flex-direction: column; align-items: stretch; }
  .cookie-btns { flex-direction: column; }
  .cookie-btns .btn { width: 100%; }
}

/* Very small screens */
@media (max-width: 380px) {
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .nav-logo .logo-name { font-size: 1.1rem; }
  .nav-logo .logo-sub { font-size: 0.55rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* Print */
@media print {
  #navbar, .menu-overlay, .mobile-menu, .nav-toggle,
  .hero-scroll, .cookie-banner, .rec-btn { display: none !important; }
  body { background: white; color: black; }
}
