/* ============================================================
   Dott.ssa Maria Mazzucato — Psicologa
   Palette: verde salvia · sabbia · terracotta · bianco caldo
   ============================================================ */

:root {
  --cream: #FAF6EF;
  --cream-2: #F4EDE0;
  --sand: #EADFCB;
  --sage-light: #DFE9DC;
  --sage: #7E9B7E;
  --sage-deep: #4E6B55;
  --terra: #C2643F;
  --terra-dark: #A4512F;
  --terra-light: #F4DccA;
  --ink: #2E3B33;
  --text: #4C554E;
  --muted: #7C837C;
  --white: #FFFFFF;
  --radius: 24px;
  --radius-lg: 36px;
  --shadow: 0 10px 30px rgba(46, 59, 51, 0.08);
  --shadow-soft: 0 6px 18px rgba(46, 59, 51, 0.06);
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.01em;
  /* distribuisce le righe in modo equilibrato: niente parole orfane a fine titolo */
  text-wrap: balance;
  overflow-wrap: break-word;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.5rem); }

p + p { margin-top: 1em; }

a { color: var(--sage-deep); }

/* focus da tastiera coerente con la palette (al posto dell'outline blu di sistema) */
:focus-visible {
  outline: 2.5px solid var(--terra);
  outline-offset: 3px;
  border-radius: 6px;
}

:focus:not(:focus-visible) { outline: none; }

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 0.9rem;
}

.section-intro {
  max-width: 46rem;
  margin-top: 1rem;
}

.center { text-align: center; }
.center .section-intro { margin-inline: auto; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease,
              background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(46, 59, 51, 0.14);
}

.btn:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 4px 10px rgba(46, 59, 51, 0.12);
  transition-duration: 0.12s;
}

.btn-primary {
  background: var(--terra);
  color: var(--white);
}
.btn-primary:hover { background: var(--terra-dark); }

.btn-secondary {
  background: transparent;
  color: var(--sage-deep);
  border-color: var(--sage);
}
.btn-secondary:hover { background: var(--sage-light); }

.btn-light {
  background: var(--white);
  color: var(--terra);
}
.btn-light:hover { background: var(--cream-2); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.25s ease;
}

/* l'effetto vetro sta su uno pseudo-elemento: un backdrop-filter direttamente
   sull'header intrappolerebbe il menu mobile (position: fixed) dentro l'header */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(250, 246, 239, 0.92);
  backdrop-filter: blur(10px);
}

.site-header.is-scrolled { box-shadow: var(--shadow-soft); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem 0;
}

.brand {
  position: relative;
  z-index: 110;
  text-decoration: none;
  line-height: 1.15;
  display: grid;
  grid-template-columns: auto auto;
  justify-content: start;
  align-items: center;
  column-gap: 0.6rem;
}

.brand-logo {
  grid-row: 1 / span 2;
  height: 32px;
  width: auto;
}

.brand strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.brand span {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-deep);
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  list-style: none;
}

.main-nav a {
  position: relative;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  color: var(--ink);
  padding: 0.3rem 0;
  transition: color 0.25s ease;
}

.main-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--terra);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--terra);
}

.main-nav a:not(.btn):hover::after,
.main-nav a[aria-current="page"]:not(.btn)::after {
  transform: scaleX(1);
}

.main-nav .dropdown a::after { display: none; }

.main-nav .btn {
  padding: 0.6rem 1.3rem;
  font-size: 0.92rem;
  border-bottom: none;
}
.main-nav a.btn:hover { color: var(--white); border-bottom: none; }

/* dropdown */
.has-dropdown { position: relative; }

.has-dropdown > a::after {
  content: "";
  display: inline-block;
  margin-left: 0.35rem;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.dropdown {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 0.6rem;
  min-width: 240px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.has-dropdown.is-open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown li { width: 100%; }

.dropdown a {
  display: block;
  padding: 0.55rem 0.9rem;
  border-radius: 10px;
  border-bottom: none;
  font-size: 0.92rem;
}

/* solo con un vero puntatore: su touch l'hover resterebbe "appiccicato" dopo il tap */
@media (hover: hover) {
  .dropdown a:hover {
    background: var(--sage-light);
    color: var(--ink);
    border-bottom: none;
  }
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 110;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  border-radius: 3px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- Hero ---------- */

.hero {
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 5.5rem);
  overflow: hidden;
  background:
    linear-gradient(rgba(250, 246, 239, 0.82), rgba(250, 246, 239, 0.92)),
    url("../assets/bg-home.jpg") center / cover no-repeat;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-kicker {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 1rem;
}

.hero h1 { margin-bottom: 0.5rem; }

/* credenziali come bolle, tutte con lo stesso peso, una sotto l'altra */
.hero-role {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1.8rem;
}

.hero-role li {
  padding: 0.42rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(126, 155, 126, 0.35);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--sage-deep);
}

.hero-sub {
  font-size: 1.15rem;
  max-width: 34rem;
  margin-bottom: 2rem;
}

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

.hero-media {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

/* ===== Scena hero: pittura in movimento =====
   Livelli (dal fondo): macchie ad acquerello con bordi vivi (turbolenza SVG
   animata) → anello a pennellata che si disegna da solo → foto in cornice
   organica → foglioline dipinte che scendono. I [data-depth] sono mossi dal
   parallasse al mouse (js/main.js). */

:root { --ease-sine: cubic-bezier(0.37, 0, 0.63, 1); }

.hero-scene {
  position: relative;
  width: min(100%, 500px);
  aspect-ratio: 1 / 1.06;
  animation: scene-in 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

/* macchie d'acquerello: i bordi "ribollono" piano grazie alla turbolenza animata */
.wash {
  position: absolute;
  inset: -17%;
  width: 134%;
  height: 134%;
  z-index: 0;
  overflow: visible;
}

.wash path {
  transform-origin: 320px 320px;
  transform-box: view-box;
}

.wash-1 { animation: wash-drift-1 38s var(--ease-sine) infinite; }
.wash-2 { animation: wash-drift-2 46s var(--ease-sine) -16s infinite; }
.wash-3 { animation: wash-drift-3 42s var(--ease-sine) -29s infinite; }

@keyframes wash-drift-1 {
  0%, 100% { transform: rotate(0deg) translate(0, 0) scale(1); opacity: 0.75; }
  50%      { transform: rotate(2.4deg) translate(9px, 7px) scale(1.03); opacity: 0.6; }
}

@keyframes wash-drift-2 {
  0%, 100% { transform: rotate(0deg) translate(0, 0) scale(1); opacity: 0.62; }
  50%      { transform: rotate(-3deg) translate(-11px, 5px) scale(1.045); opacity: 0.5; }
}

@keyframes wash-drift-3 {
  0%, 100% { transform: rotate(0deg) translate(0, 0) scale(1); opacity: 0.68; }
  50%      { transform: rotate(2deg) translate(6px, -9px) scale(0.97); opacity: 0.55; }
}

/* anello a pennellata: si disegna al caricamento, poi respira appena */
.ring-layer {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 106%;
  aspect-ratio: 1 / 1;
  z-index: 1;
  pointer-events: none;
}

.brush-ring {
  width: 100%;
  height: 100%;
  overflow: visible;
  animation: ring-breathe 16s var(--ease-sine) 2.6s infinite;
  transform-origin: 50% 50%;
}

.ring-stroke {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: ring-draw 1.7s cubic-bezier(0.65, 0, 0.35, 1) 0.55s forwards;
}

.ring-stroke--thin {
  animation-delay: 0.8s;
  animation-duration: 1.5s;
}

@keyframes ring-draw { to { stroke-dashoffset: 0; } }

@keyframes ring-breathe {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50%      { transform: rotate(-1.6deg) scale(1.012); }
}

/* la foto, in una cornice organica dai toni caldi */
.hero-blob {
  position: absolute;
  inset: 6% 4% 0 4%;
  z-index: 2;
  background: linear-gradient(160deg, var(--sage-light) 0%, var(--sand) 100%);
  border-radius: 61% 39% 53% 47% / 57% 46% 54% 43%;
  overflow: hidden;
  box-shadow: 0 26px 50px rgba(46, 59, 51, 0.15);
}

.hero-photo {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 115%;
  max-width: none;
}

/* ingresso coreografato al caricamento */
@keyframes scene-in {
  from { opacity: 0; transform: translateY(18px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-kicker, .hero h1, .hero-role, .hero-sub, .hero-cta {
  opacity: 0;
  animation: rise-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-kicker { animation-delay: 0.05s; }
.hero h1     { animation-delay: 0.14s; }
.hero-role   { animation-delay: 0.24s; }
.hero-sub    { animation-delay: 0.36s; }
.hero-cta    { animation-delay: 0.48s; }

@media (prefers-reduced-motion: reduce) {
  .hero-scene, .hero-kicker, .hero h1, .hero-role, .hero-sub, .hero-cta {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .wash path, .brush-ring { animation: none; }
  .ring-stroke { animation: none; stroke-dashoffset: 0; }
}

/* ---------- Cards ---------- */

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

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.card-media img { transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.card:hover .card-media img { transform: scale(1.06); }

.card-media {
  aspect-ratio: 3 / 2;
  background: var(--cream-2);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 1.5rem 1.6rem 1.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.card-body p { flex: 1; font-size: 0.98rem; }

.card-link {
  display: inline-block;
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--terra);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.card:hover .card-link { transform: translateX(5px); }

/* ---------- Split / feature rows ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.split.reverse > .split-media { order: 2; }

.split-media { position: relative; }

.media-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.media-frame:hover img { transform: scale(1.035); }

/* citazione in overlay sulla foto */
.quote-frame { position: relative; }

/* la foto è panoramica: in colonna la ritaglio sul punto focale
   (i due profili e la mano sul muso) invece di schiacciarla */
.media-frame.quote-frame img {
  aspect-ratio: 4 / 3;
  object-position: 46% center;
}

/* velatura salvia uniforme: dà il tono e tiene leggibile la citazione */
.quote-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(78, 107, 85, 0.78);
  pointer-events: none;
}

.media-quote {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(1.4rem, 4vw, 2.6rem);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(1.1rem, 2.1vw, 1.6rem);
  line-height: 1.28;
  letter-spacing: -0.01em;
  color: var(--white);
  text-shadow: 0 2px 18px rgba(46, 59, 51, 0.45);
}

.is-placeholder::after {
  content: "Foto in arrivo";
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--sage-deep);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}

/* ---------- Numbered points (Come lavoro) ---------- */

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

.point {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.8rem 1.7rem;
  box-shadow: var(--shadow-soft);
}

.point-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sage-light);
  color: var(--sage-deep);
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.point h3 { margin-bottom: 0.5rem; }
.point p { font-size: 0.98rem; }

/* ---------- Alt background band ---------- */

.band { background: var(--cream-2); }
.band-sage { background: var(--sage-light); }

/* ---------- CTA band ---------- */

.cta-band {
  background:
    linear-gradient(rgba(78, 107, 85, 0.92), rgba(78, 107, 85, 0.92)),
    url("../assets/bkg_box.png") center / cover no-repeat;
  background-color: var(--sage-deep);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
  color: var(--white);
}

.cta-band h2 { color: var(--white); margin-bottom: 0.8rem; }

.cta-band p {
  max-width: 38rem;
  margin: 0 auto 1.8rem;
  color: rgba(255, 255, 255, 0.88);
}

/* ---------- Chips (aree anteprima) ---------- */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  margin-top: 2rem;
}

.chip {
  background: var(--white);
  border: 1.5px solid var(--sand);
  border-radius: 999px;
  padding: 0.55rem 1.2rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease,
              transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.chip:hover {
  border-color: var(--terra);
  color: var(--terra);
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

/* ---------- Accordion (aree + FAQ) ---------- */

.accordion {
  display: grid;
  gap: 0.9rem;
  margin-top: 2.2rem;
  max-width: 50rem;
}

.accordion.centered { margin-inline: auto; }

.accordion details {
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.accordion summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 3.4rem 1.15rem 1.5rem;
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--ink);
  position: relative;
  transition: color 0.25s ease;
}

.accordion summary:hover { color: var(--terra); }

.accordion details[open] > div {
  animation: acc-open 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes acc-open {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.accordion summary::-webkit-details-marker { display: none; }

.accordion summary::after {
  content: "";
  position: absolute;
  right: 1.4rem;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2.5px solid var(--terra);
  border-bottom: 2.5px solid var(--terra);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.25s ease;
}

.accordion details[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}

.accordion details > div {
  padding: 0 1.5rem 1.4rem;
  font-size: 0.99rem;
}

/* ---------- Info list (percorsi details) ---------- */

.info-list {
  list-style: none;
  display: grid;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.info-list li {
  display: flex;
  gap: 0.7rem;
  align-items: baseline;
  font-size: 0.99rem;
}

.info-list li strong { color: var(--ink); }

.info-list li::before {
  content: "";
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--terra);
  transform: translateY(-1px);
}

/* ---------- Formazione list ---------- */

.cred-list {
  list-style: none;
  display: grid;
  gap: 0.9rem;
  margin-top: 1.6rem;
}

.cred-list li {
  background: var(--white);
  border-radius: 14px;
  padding: 0.95rem 1.3rem;
  box-shadow: var(--shadow-soft);
  font-size: 0.98rem;
  display: flex;
  gap: 0.8rem;
  align-items: baseline;
}

.cred-list li::before {
  content: "✓";
  color: var(--sage-deep);
  font-weight: 800;
}

.placeholder-note {
  color: var(--terra);
  font-weight: 700;
}

/* ---------- Wide photo band ---------- */

.photo-band {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  max-height: 420px;
}


.photo-band img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
  object-position: center 40%;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  margin-top: 2.5rem;
}

/* contatti in colonna singola centrata (dopo la rimozione di form e mappa) */
.contact-simple {
  max-width: 40rem;
}

.contact-simple a:not(.btn) { color: var(--terra); font-weight: 700; }

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--sand);
}

.contact-item:last-of-type { border-bottom: none; }

.contact-icon {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--sage-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sage-deep);
}

/* icone dipinte (SVG inline: ereditano il colore del testo) */
.ico {
  width: 1.3em;
  height: 1.3em;
  flex: none;
  display: block;
  overflow: visible;
}

.contact-icon .ico { width: 24px; height: 24px; }

.mobile-cta .ico { width: 1.15em; height: 1.15em; }

.contact-item strong {
  display: block;
  color: var(--ink);
  font-size: 1rem;
}

.contact-item span { font-size: 0.95rem; }

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.6rem, 4vw, 2.4rem);
}

.contact-form h3 { margin-bottom: 1.4rem; }

.form-field { margin-bottom: 1.2rem; }

.form-field label {
  display: block;
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--sand);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--cream);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 4px rgba(126, 155, 126, 0.16);
}

.form-consent {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.85rem;
  margin-bottom: 1.4rem;
}

.form-consent input {
  margin-top: 0.3rem;
  accent-color: var(--terra);
}

.form-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 1rem;
}

.map-frame {
  margin-top: 2.5rem;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  padding: 3.5rem 0 2rem;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.site-footer h4 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 0.9rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.25s ease;
}

.site-footer a:hover { color: var(--white); text-decoration: underline; }

.footer-brand strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 0.3rem;
}

.footer-logo {
  height: 34px;
  width: auto;
  margin-bottom: 0.9rem;
  opacity: 0.9;
}

.footer-links { list-style: none; display: grid; gap: 0.5rem; }

.footer-bottom {
  padding-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- Floating mobile CTA ---------- */

.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--white);
  box-shadow: 0 -4px 20px rgba(46, 59, 51, 0.12);
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
  gap: 0.7rem;
}

.mobile-cta .btn {
  flex: 1;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
}

/* ---------- Page hero (interne) ---------- */

.page-hero {
  background: var(--cream-2);
  padding: clamp(2.8rem, 6vw, 4.5rem) 0;
}

.page-hero p {
  max-width: 44rem;
  margin-top: 1rem;
  font-size: 1.12rem;
}

/* ---------- Quote block ---------- */

.big-quote {
  max-width: 46rem;
  margin: 0 auto;
  text-align: center;
  font-family: var(--font-head);
  font-style: italic;
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  color: var(--sage-deep);
  line-height: 1.5;
}

.big-quote footer {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
  margin-top: 1rem;
}

/* ============================================================
   Reveal allo scroll (attivato da js/main.js con la classe .js)
   ============================================================ */

html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1) var(--rdelay, 0s),
              transform 0.75s cubic-bezier(0.22, 1, 0.36, 1) var(--rdelay, 0s);
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1040px) {
  /* mobile nav */
  .nav-toggle { display: block; }

  .main-nav {
    position: fixed;
    inset: 0;
    background: var(--cream);
    padding: 5.5rem 8% 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    z-index: 100;
  }

  .main-nav.is-open { transform: translateX(0); }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .main-nav > ul > li { width: 100%; border-bottom: 1px solid var(--sand); }
  .main-nav > ul > li:last-child { border-bottom: none; padding-top: 1rem; }

  .main-nav a {
    display: block;
    padding: 0.9rem 0;
    font-size: 1.1rem;
  }

  .main-nav .btn { text-align: center; }

  /* i selettori :hover/:focus-within coprono anche le regole desktop del
     dropdown, che altrimenti riapplicherebbero translateX(-50%) al passaggio
     del mouse spostando il sottomenu fuori schermo a sinistra */
  .dropdown,
  .has-dropdown:hover .dropdown,
  .has-dropdown:focus-within .dropdown,
  .has-dropdown.is-open .dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    background: transparent;
    padding: 0 0 0.6rem 1rem;
    min-width: 0;
    display: none;
  }

  .has-dropdown.is-open .dropdown { display: block; }

  .dropdown a { font-size: 0.98rem; padding: 0.5rem 0.9rem; margin-left: -0.9rem; }

  body.nav-open { overflow: hidden; }

  .nav-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-scene { width: min(85%, 410px); }
  .aurora { filter: blur(32px); }
  .cards-grid, .points { grid-template-columns: 1fr; }
  .split, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .split.reverse > .split-media { order: 0; }

  .mobile-cta { display: flex; }
  body { padding-bottom: 70px; }
}

/* ---------- Telefoni (iPhone 11 = 414px e simili) ---------- */

@media (max-width: 520px) {
  .hero-cta .btn { width: 100%; }

  /* tipografia rimpicciolita: a 414px i minimi dei clamp restavano troppo grandi
     e i titoli si spezzavano lasciando parole orfane a fine riga */
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.18rem; }

  body { font-size: 1rem; }

  .hero-sub { font-size: 1.05rem; }
  .page-hero p { font-size: 1.04rem; }
  .section-intro { font-size: 1rem; }

  /* i box CTA avevano 40px di padding per lato: troppo su schermo stretto */
  .cta-band {
    padding: 2.4rem 1.5rem;
    border-radius: 26px;
  }

  .big-quote { font-size: 1.15rem; }

  .accordion summary {
    font-size: 0.97rem;
    padding: 1rem 2.9rem 1rem 1.2rem;
  }

  .accordion summary::after { right: 1.1rem; }
  .accordion details > div { padding: 0 1.2rem 1.2rem; font-size: 0.95rem; }

  .point { padding: 1.5rem 1.4rem; }
  .card-body { padding: 1.3rem 1.4rem 1.5rem; }

  .chip { font-size: 0.88rem; padding: 0.5rem 1rem; }

  .media-quote { font-size: 1.02rem; }
}
