
/* =========================================
   IRENE SCALA — DESIGN SYSTEM
   ========================================= */

:root {
  --ivory: #f7f5ef;
  --paper: #fffefa;
  --sage: #dce5d8;
  --sage-dark: #c8d6c5;
  --green: #45664f;
  --green-dark: #2e4938;
  --ink: #303a32;
  --muted: #72796f;
  --line: #e3e3d9;

  --font-display: Georgia, "Times New Roman", serif;
  --font-body: Arial, Helvetica, sans-serif;

  --page-width: 1180px;
  --page-padding: clamp(22px, 6vw, 84px);
}

/* RESET */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

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

::selection {
  background: var(--sage-dark);
  color: var(--green-dark);
}

/* HEADER */

.site-header {
  min-height: 94px;
  padding: 20px var(--page-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: rgba(247, 245, 239, 0.94);
  border-bottom: 1px solid rgba(69, 102, 79, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.2;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 27px;
  letter-spacing: -1px;
  color: var(--green-dark);
}

.brand-role {
  margin-top: 6px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--green);
}

.navigation {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 42px);
}

.navigation > a:not(.nav-cta) {
  color: #515a50;
  font-size: 13px;
  transition: color 0.2s ease;
}

.navigation > a:not(.nav-cta):hover {
  color: var(--green);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
  background: var(--green);
  color: white;
  font-size: 12px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-cta:hover,
.button-primary:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
}

/* GENERAL */

section {
  scroll-margin-top: 110px;
}

.section {
  padding: 110px var(--page-padding);
}

.hero,
.intro,
.section-heading,
.service-grid,
.approach-content,
.booking-content {
  width: 100%;
  max-width: var(--page-width);
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  margin: 0 0 24px;
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  line-height: 1.6;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -1.7px;
}

h1 em,
h2 em {
  color: var(--green);
  font-weight: 400;
}

h2 {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.17;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--green);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 600;
  transition: gap 0.2s ease;
}

.text-link:hover {
  gap: 16px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 52px;
  padding: 14px 22px;
  font-size: 12px;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease;
}

.button-primary {
  background: var(--green);
  color: white;
}

/* HERO */

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(40px, 7vw, 100px);
  min-height: 660px;
  padding: 70px var(--page-padding) 95px;
  max-width: 1440px;
}

.hero-content {
  max-width: 580px;
  padding-top: 10px;
}

.hero h1 {
  max-width: 620px;
  margin-bottom: 28px;
  font-size: clamp(48px, 5.5vw, 75px);
  line-height: 1.07;
}

.hero h1 em {
  display: block;
  margin-top: 8px;
}

.hero-description {
  max-width: 450px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 42px;
  color: var(--muted);
  font-size: 11px;
}

.note-dot {
  width: 7px;
  height: 7px;
  background: #829b7e;
  border-radius: 50%;
}

/* HERO VISUAL */

.hero-visual {
  position: relative;
  min-height: 470px;
  max-width: 470px;
  width: 100%;
  justify-self: end;
}

.visual-shape {
  position: absolute;
  inset: 0 0 30px 35px;
  background: var(--sage);
  border-radius: 48% 48% 4px 4px;
}

.portrait-placeholder {
  position: absolute;
  inset: 25px 25px 55px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 40%, #e7e4d8 0 17%, transparent 17.5%),
    radial-gradient(ellipse at 50% 100%, #d0d7c9 0 43%, transparent 43.5%),
    linear-gradient(145deg, #e9e8dc, #cbd8c8);
  border-radius: 48% 48% 4px 4px;
}

.portrait-placeholder::before {
  content: "";
  position: absolute;
  top: 23%;
  left: 50%;
  width: 25%;
  height: 32%;
  transform: translateX(-50%);
  border-radius: 48% 48% 43% 43%;
  background: #b5a18e;
  opacity: 0.7;
}

.portrait-placeholder::after {
  content: "";
  position: absolute;
  bottom: -12%;
  left: 23%;
  width: 54%;
  height: 53%;
  border-radius: 50% 50% 0 0;
  background: #7e947e;
}

.portrait-monogram {
  position: relative;
  z-index: 2;
  margin-top: 65px;
  font-family: var(--font-display);
  font-size: 46px;
  color: rgba(255, 254, 250, 0.92);
}

.portrait-caption {
  position: absolute;
  z-index: 3;
  right: 18px;
  bottom: 24px;
  left: 18px;
  color: white;
  text-align: center;
  font-family: var(--font-display);
  font-size: 16px;
}

.floating-note {
  position: absolute;
  right: -22px;
  bottom: 5px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 18px 22px;
  background: var(--paper);
  box-shadow: 0 10px 40px rgba(46, 73, 56, 0.08);
  color: var(--green-dark);
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.5;
}

.floating-symbol {
  font-size: 30px;
  color: var(--green);
}

.hero-portrait {
  position: absolute;
  inset: 25px 25px 55px 0;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 48% 48% 4px 4px;
}

/* INTRO */

.intro {
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  gap: 60px;
  border-top: 1px solid var(--line);
}

.section-label {
  padding-top: 8px;
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
}

.intro-content {
  max-width: 700px;
}

.professional-details {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--green-dark);
  font-size: 12px;
  line-height: 1.9;
}

.intro-content h2 {
  max-width: 650px;
  margin-bottom: 28px;
}

.intro-content > p:not(.eyebrow) {
  max-width: 630px;
  color: var(--muted);
  line-height: 1.95;
}

.intro-content .text-link {
  margin-top: 15px;
}

/* SERVICES */

.services {
  background: var(--paper);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 50px;
  margin-bottom: 50px;
}

.section-heading h2 {
  max-width: 570px;
  margin-bottom: 0;
}

.section-description {
  max-width: 340px;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 350px;
  padding: 32px 27px;
  background: var(--ivory);
  border: 1px solid #eeede6;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(46, 73, 56, 0.06);
}

.service-card-featured {
  background: #e8ede4;
  border-color: #e8ede4;
}

.service-number {
  align-self: flex-end;
  color: #8c9587;
  font-size: 10px;
  letter-spacing: 1px;
}

.service-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 10px 0 25px;
  border: 1px solid #c8d3c4;
  border-radius: 50%;
  color: var(--green);
  font-family: var(--font-display);
  font-size: 27px;
}

.service-card h3 {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 400;
  line-height: 1.3;
}

.service-card p {
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}

.service-card .text-link {
  margin-top: auto;
  font-size: 11px;
}

/* APPROACH */

.approach {
  position: relative;
  overflow: hidden;
  background: var(--sage);
}

.approach-content {
  position: relative;
  z-index: 1;
}

.approach h2 {
  max-width: 750px;
  margin-bottom: 25px;
  font-size: clamp(38px, 5vw, 62px);
}

.approach-content > p:not(.eyebrow) {
  max-width: 570px;
  color: #5e6d60;
  line-height: 1.9;
}

.approach-decoration {
  position: absolute;
  top: -110px;
  right: 8%;
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--font-display);
  font-size: 400px;
  line-height: 1;
  pointer-events: none;
}

.approach-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin-top: 65px;
  padding-top: 32px;
  border-top: 1px solid rgba(69, 102, 79, 0.2);
}

.approach-details > div {
  max-width: 260px;
}

.detail-number {
  display: block;
  margin-bottom: 16px;
  color: var(--green);
  font-size: 11px;
  letter-spacing: 2px;
}

.approach-details h3 {
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 400;
}

.approach-details p {
  color: #5e6d60;
  font-size: 12px;
  line-height: 1.9;
}

/* BOOKING */

.booking {
  background: var(--paper);
  text-align: center;
}

.booking-content {
  max-width: 720px;
}

.booking h2 {
  max-width: 680px;
  margin: 0 auto 25px;
}

.booking-content > p:not(.eyebrow) {
  max-width: 540px;
  margin: 0 auto 30px;
  color: var(--muted);
  line-height: 1.9;
}

.booking-actions {
  margin: 32px 0;
}

.booking-note {
  font-size: 11px;
}

/* FOOTER */

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1.3fr auto;
  align-items: center;
  gap: 35px;
  padding: 45px var(--page-padding);
  border-top: 1px solid var(--line);
}

.footer-brand .brand-name {
  font-size: 24px;
}

.site-footer > p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.9;
}

.footer-links {
  display: flex;
  gap: 20px;
  font-size: 11px;
}

.footer-links a:hover {
  color: var(--green);
}

.copyright {
  grid-column: 1 / -1;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

/* ACCESSIBILITY */

a:focus-visible,
button:focus-visible {
  outline: 3px solid #8aa88a;
  outline-offset: 4px;
}

/* TABLET */

@media (max-width: 900px) {
  :root {
    --page-padding: 35px;
  }

  .hero {
    gap: 35px;
    min-height: 560px;
  }

  .hero h1 {
    font-size: clamp(44px, 6vw, 60px);
  }

  .hero-visual {
    min-height: 390px;
  }

  .floating-note {
    right: -8px;
    padding: 13px 15px;
  }

  .section {
    padding-top: 85px;
    padding-bottom: 85px;
  }

  .intro {
    gap: 35px;
  }

  .service-grid {
    gap: 12px;
  }

  .service-card {
    padding: 24px 18px;
  }

  .service-card h3 {
    font-size: 22px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 20px;
  }
}

/* MOBILE MENU */

@media (max-width: 680px) {
  :root {
    --page-padding: 23px;
  }

  .site-header {
    min-height: 78px;
    padding-top: 15px;
    padding-bottom: 15px;
    gap: 15px;
  }

  .brand-name {
    font-size: 25px;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--line);
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    width: 100%;
    height: 1px;
    background: var(--green-dark);
    transition: transform 0.2s ease;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .navigation {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px var(--page-padding) 24px;
    background: var(--ivory);
    border-bottom: 1px solid var(--line);
  }

  .navigation.is-open {
    display: flex;
  }

  .navigation > a:not(.nav-cta) {
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-cta {
    justify-content: space-between;
    margin-top: 15px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 45px;
    min-height: 0;
    padding-top: 65px;
    padding-bottom: 75px;
  }

  .hero h1 {
    max-width: 510px;
    font-size: clamp(44px, 12vw, 62px);
  }

  .hero-description {
    font-size: 14px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
  }

  .hero-note {
    margin-top: 30px;
  }

  .hero-visual {
    justify-self: center;
    min-height: 390px;
    max-width: 400px;
  }

  .visual-shape {
    left: 22px;
  }

  .portrait-placeholder {
    right: 18px;
  }

  .hero-portrait {
    right: 18px;
  }

  .floating-note {
    right: -2px;
    bottom: 0;
  }

  .section {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .intro {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  h2 {
    font-size: 39px;
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .service-card {
    min-height: 300px;
    padding: 28px;
  }

  .service-card h3 {
    font-size: 26px;
  }

  .approach-decoration {
    top: -30px;
    right: -20px;
    font-size: 240px;
  }

  .approach-details {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 40px;
  }

  .approach-details > div {
    max-width: 100%;
  }

  .detail-number {
    margin-bottom: 8px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 35px;
    padding-bottom: 25px;
  }

  .footer-links {
    flex-wrap: wrap;
  }

  .copyright {
    grid-column: auto;
    margin-top: 5px !important;
  }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==============================
   PRESENTAZIONE — CHI SONO
   ============================== */

.intro {
  position: relative;
  overflow: hidden;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading .eyebrow {
  margin-bottom: 16px;
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.section-heading h2 {
  max-width: 700px;
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.3rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.intro-content {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.8fr);
  align-items: start;
  gap: clamp(32px, 6vw, 90px);
}

.intro-text p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.intro-text p:last-child {
  margin-bottom: 0;
}

.intro-note {
  position: relative;
  padding: 34px 30px;
  border: 1px solid rgba(69, 102, 79, 0.12);
  border-radius: 4px 28px 4px 28px;
  background: linear-gradient(
    145deg,
    rgba(220, 229, 216, 0.72),
    rgba(255, 254, 250, 0.92)
  );
  transition:
    transform 350ms ease,
    box-shadow 350ms ease;
}

.intro-note-mark {
  display: block;
  margin-bottom: 4px;
  color: var(--green);
  font-family: Georgia, serif;
  font-size: 4rem;
  line-height: 1;
}

.intro-note p {
  margin: 0;
  color: var(--green-dark);
  font-family: Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.55;
}

@media (hover: hover) and (pointer: fine) {
  .intro-note:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 45px rgba(46, 73, 56, 0.09);
  }
}

@media (max-width: 700px) {
  .section-heading {
    margin-bottom: 28px;
  }

  .intro-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .intro-note {
    padding: 26px 24px;
  }
}

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

/* Animazioni all'ingresso delle sezioni */


.reveal {
  opacity: 0;
  transform: translateY(45px);
  transition:
    opacity 950ms ease,
    transform 950ms cubic-bezier(0.16, 1, 0.3, 1);
}

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


.reveal-delay-1 {
  transition-delay: 100ms;
}

.reveal-delay-2 {
  transition-delay: 200ms;
}

.reveal-delay-3 {
  transition-delay: 300ms;
}

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

/* Profondità e movimento dell'illustrazione iniziale */

.hero-visual {
  perspective: 1000px;
}

.visual-shape {
  box-shadow:
    18px 24px 55px rgba(46, 73, 56, 0.08),
    inset 1px 1px 0 rgba(255, 255, 255, 0.35);
  transform: translateZ(-20px);
  transition:
    box-shadow 700ms ease,
    transform 700ms ease;
}

.portrait-placeholder {
  box-shadow:
    0 25px 55px rgba(46, 73, 56, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transform: translateZ(15px);
  transform-origin: center;
  transition:
    transform 600ms ease,
    box-shadow 600ms ease;
}

.floating-note {
  transform: translateZ(35px);
  transition:
    transform 400ms ease,
    box-shadow 400ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .hero-visual:hover .portrait-placeholder {
    transform: translateZ(25px) rotateY(-2deg) rotateX(2deg);
    box-shadow:
      0 32px 65px rgba(46, 73, 56, 0.14),
      inset 0 1px 0 rgba(255, 255, 255, 0.5);
  }

  .hero-visual:hover .visual-shape {
    transform: translateZ(-25px);
    box-shadow:
      22px 30px 65px rgba(46, 73, 56, 0.11),
      inset 1px 1px 0 rgba(255, 255, 255, 0.4);
  }

  .hero-visual:hover .floating-note {
    transform: translateZ(45px) translateY(-5px);
    box-shadow: 0 18px 45px rgba(46, 73, 56, 0.13);
  }
}

@media (prefers-reduced-motion: reduce) {
  .visual-shape,
  .portrait-placeholder,
  .floating-note {
    transition: none;
    transform: none;
  }
}

/* Profondità 3D più evidente */

.hero-visual {
  perspective: 750px;
  transform-style: preserve-3d;
}

.visual-shape {
  box-shadow:
    24px 30px 65px rgba(46, 73, 56, 0.15),
    inset 2px 2px 0 rgba(255, 255, 255, 0.5);
  transform: translateZ(-35px) scale(0.98);
  transition:
    box-shadow 700ms ease,
    transform 700ms ease;
}

.portrait-placeholder {
  box-shadow:
    0 35px 65px rgba(46, 73, 56, 0.18),
    inset 0 2px 0 rgba(255, 255, 255, 0.6);
  transform: translateZ(25px) rotateY(-2deg);
  transition:
    transform 650ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 650ms ease;
}

.floating-note {
  transform: translateZ(55px) translateY(0);
  box-shadow: 0 16px 45px rgba(46, 73, 56, 0.13);
  transition:
    transform 450ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 450ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .hero-visual:hover .portrait-placeholder {
    transform: translateZ(45px) rotateY(-6deg) rotateX(4deg);
    box-shadow:
      0 45px 80px rgba(46, 73, 56, 0.22),
      inset 0 2px 0 rgba(255, 255, 255, 0.6);
  }

  .hero-visual:hover .visual-shape {
    transform: translateZ(-45px) scale(0.97);
    box-shadow:
      28px 36px 75px rgba(46, 73, 56, 0.18),
      inset 2px 2px 0 rgba(255, 255, 255, 0.55);
  }

  .hero-visual:hover .floating-note {
    transform: translateZ(75px) translateY(-10px);
    box-shadow: 0 25px 55px rgba(46, 73, 56, 0.2);
  }
}

@media (prefers-reduced-motion: reduce) {
  .visual-shape,
  .portrait-placeholder,
  .floating-note {
    transition: none;
    transform: none;
  }
}

/* Rotazione 3D controllata dal mouse */

@media (hover: hover) and (pointer: fine) and
       (prefers-reduced-motion: no-preference) {

  .hero-visual .portrait-placeholder {
    transform:
      translateZ(25px)
      rotateX(var(--mouse-rotate-x, 0deg))
      rotateY(var(--mouse-rotate-y, -2deg));
    transition:
      transform 180ms ease-out,
      box-shadow 400ms ease;
  }

  .hero-visual .visual-shape {
    transform:
      translateZ(-35px)
      rotateX(calc(var(--mouse-rotate-x, 0deg) * -0.35))
      rotateY(calc(var(--mouse-rotate-y, 0deg) * -0.35));
    transition: transform 250ms ease-out;
  }

  .hero-visual .floating-note {
    transform:
      translateZ(55px)
      translateY(var(--mouse-note-lift, 0px))
      rotateX(calc(var(--mouse-rotate-x, 0deg) * -0.5))
      rotateY(calc(var(--mouse-rotate-y, 0deg) * -0.5));
    transition:
      transform 250ms ease-out,
      box-shadow 400ms ease;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual .portrait-placeholder,
  .hero-visual .visual-shape,
  .hero-visual .floating-note {
    transform: none !important;
    transition: none !important;
  }
}
/* Correzione: il movimento 3D segue il mouse */

@media (hover: hover) and (pointer: fine) and
       (prefers-reduced-motion: no-preference) {

  .hero-visual:hover .portrait-placeholder {
    transform:
      translateZ(25px)
      rotateX(var(--mouse-rotate-x, 0deg))
      rotateY(var(--mouse-rotate-y, -2deg));
  }

  .hero-visual:hover .visual-shape {
    transform:
      translateZ(-35px)
      rotateX(var(--shape-rotate-x, 0deg))
      rotateY(var(--shape-rotate-y, 0deg));
  }

  .hero-visual:hover .floating-note {
    transform:
      translateZ(55px)
      translateY(var(--mouse-note-lift, 0px))
      rotateX(var(--note-rotate-x, 0deg))
      rotateY(var(--note-rotate-y, 0deg));
  }
}/* Hero: proporzioni più controllate */

@media (min-width: 901px) {
  .hero-visual {
    width: 100%;
    max-width: 430px;
    min-height: 450px;
  }
}

/* PRENOTAZIONI — sezione in evidenza, dopo la presentazione iniziale */
.booking {
  position: relative;
  padding-top: clamp(58px, 7vw, 88px);
  padding-bottom: clamp(64px, 8vw, 100px);
  background:
    radial-gradient(ellipse at 12% 15%, rgba(220, 229, 216, 0.72), transparent 42%),
    var(--paper);
  text-align: left;
}

.booking-content {
  max-width: 1040px;
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid rgba(69, 102, 79, 0.13);
  border-radius: 28px;
  background: rgba(255, 254, 250, 0.92);
  box-shadow: 0 24px 70px rgba(46, 73, 56, 0.07);
}

.booking-content > .eyebrow {
  margin-bottom: 14px;
}

.booking h2 {
  max-width: 720px;
  margin: 0 0 18px;
  font-size: clamp(36px, 4.5vw, 54px);
}

.booking-content > p:not(.eyebrow) {
  max-width: 620px;
  margin: 0 0 28px;
  color: var(--muted);
  line-height: 1.85;
}

.booking-calendar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  max-width: 760px;
  margin-top: 28px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--ivory);
}

.booking-calendar > label {
  grid-column: 1 / -1;
  margin-bottom: -5px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 700;
}

#appointment-type,
#appointment-type-note {
  grid-column: 1 / -1;
}

#appointment-type {
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #d8ded3;
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}

.booking-type-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

#booking-date,
#appointment-type,
#booking-form input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #d8ded3;
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}

#booking-date:focus,
#appointment-type:focus,
#booking-form input:focus {
  outline: 3px solid rgba(138, 168, 138, 0.35);
  border-color: var(--green);
}

#check-availability {
  min-height: 50px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}

#check-availability:disabled,
#confirm-booking:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

#availability-message {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  color: var(--green-dark);
  font-size: 13px;
}

#availability-slots {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2px;
}

#availability-slots:empty {
  display: none;
}

#availability-slots .booking-slot {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #c7d5c3;
  border-radius: 10px;
  background: var(--paper);
  color: var(--green-dark);
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

#availability-slots .booking-slot:hover {
  border-color: var(--green);
  background: var(--green);
  color: white;
  transform: translateY(-2px);
}

#booking-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px 16px;
  max-width: 760px;
  margin-top: 18px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--ivory);
  text-align: left;
}

#booking-form[hidden] {
  display: none;
}

#booking-form h3,
#booking-form > p,
#booking-form > label,
#booking-form > button,
#booking-form > #booking-message {
  grid-column: 1 / -1;
}

#booking-form h3 {
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
}

#booking-form > p {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 13px;
}

#booking-form > label {
  margin-bottom: -8px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 700;
}

#confirm-booking {
  justify-self: start;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}

#booking-message,
#booking-success {
  color: var(--green-dark);
  font-size: 13px;
}

#booking-success {
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid #c7d5c3;
  border-radius: 12px;
  background: #edf2e9;
}

#booking-success[hidden] {
  display: none;
}

.booking-note {
  max-width: 760px !important;
  margin: 22px 0 0 !important;
  padding-left: 14px;
  border-left: 2px solid var(--sage-dark);
  font-size: 11px;
  line-height: 1.8 !important;
}

@media (max-width: 680px) {
  .booking-content {
    padding: 26px 18px;
    border-radius: 20px;
  }

  .booking-calendar {
    grid-template-columns: 1fr;
    padding: 18px;
    border-radius: 14px;
  }

  .booking-calendar > label,
  #appointment-type,
  #appointment-type-note,
  #availability-message,
  #availability-slots {
    grid-column: 1;
  }

  #check-availability {
    width: 100%;
  }

  #availability-slots .booking-slot {
    flex: 1 1 calc(50% - 10px);
  }

  #booking-form {
    grid-template-columns: 1fr;
    padding: 18px;
    border-radius: 14px;
  }

  #booking-form h3,
  #booking-form > p,
  #booking-form > label,
  #booking-form > button,
  #booking-form > #booking-message {
    grid-column: 1;
  }

  #confirm-booking {
    width: 100%;
  }
}


/* Ritratto: cornice ripristinata; si regola solo il ritaglio della foto. */
.hero-visual {
  min-height: 470px;
  max-width: 470px;
}

.visual-shape {
  inset: 0 0 30px 35px;
  border-radius: 48% 48% 4px 4px;
}

.hero-portrait {
  inset: 25px 25px 55px 0;
  object-fit: cover;
  object-position: center 0%;
  border-radius: 48% 48% 4px 4px;
}

@media (max-width: 680px) {
  .hero-visual {
    min-height: 390px;
    max-width: 400px;
  }

  .hero-portrait {
    right: 18px;
  }

  .visual-shape {
    left: 22px;
  }
}

/* Luogo di ricevimento */
.location-section {
  background: var(--paper);
}

.location-card,
.reviews-card {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid rgba(69, 102, 79, 0.14);
  border-radius: 24px;
  background: var(--ivory);
}

.location-card h2,
.reviews-card h2 {
  max-width: 680px;
  margin-bottom: 20px;
}

.location-card p:not(.eyebrow),
.reviews-card p:not(.eyebrow) {
  max-width: 680px;
  color: var(--muted);
  line-height: 1.9;
}

.location-card address {
  margin: 22px 0;
  color: var(--green-dark);
  font-style: normal;
  line-height: 1.9;
}

.quote-section {
  background: var(--ivory);
}

.quote-carousel {
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(69, 102, 79, 0.14);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 0 18px 50px rgba(46, 73, 56, 0.06);
}

.quote-slide {
  min-height: 300px;
  padding: clamp(28px, 6vw, 64px);
  text-align: center;
}

.quote-slide[hidden] {
  display: none;
}

.quote-index {
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
}

.quote-slide blockquote {
  max-width: 720px;
  margin: 24px auto 16px;
  color: var(--green-dark);
  font-family: var(--font-display);
  font-size: clamp(27px, 4vw, 44px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.7px;
}

.quote-slide p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 0 24px 26px;
}

.carousel-arrow {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--ivory);
  color: var(--green-dark);
  font-size: 20px;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}

.carousel-arrow:hover {
  background: var(--green);
  color: white;
}

.carousel-dots {
  display: flex;
  align-items: center;
  gap: 9px;
}

.carousel-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #c8d6c5;
  cursor: pointer;
}

.carousel-dots button[aria-current="true"] {
  background: var(--green-dark);
  transform: scale(1.3);
}

.reviews-section {
  padding-top: 40px;
  background: var(--paper);
}

.reviews-card {
  background: var(--ivory);
}

.reviews-card .eyebrow {
  margin-bottom: 14px;
}

@media (max-width: 680px) {
  .location-card,
  .reviews-card {
    padding: 26px 20px;
    border-radius: 18px;
  }

  .quote-slide {
    min-height: 270px;
  }

  .carousel-controls {
    gap: 18px;
    padding-bottom: 22px;
  }
}


/* Correzione interattività: il movimento si applica alla foto reale */
.hero-visual {
  perspective: 900px;
  transform-style: preserve-3d;
}

.hero-visual .hero-portrait {
  transform: translateZ(25px)
    rotateX(var(--mouse-rotate-x, 0deg))
    rotateY(var(--mouse-rotate-y, -2deg));
  transform-origin: center;
  transition: transform 140ms ease-out, box-shadow 300ms ease;
  will-change: transform;
}

.hero-visual .visual-shape {
  transform: translateZ(-35px)
    rotateX(var(--shape-rotate-x, 0deg))
    rotateY(var(--shape-rotate-y, 0deg));
  transition: transform 220ms ease-out, box-shadow 300ms ease;
}

.hero-visual .floating-note {
  transform: translateZ(55px)
    translateY(var(--mouse-note-lift, 0px))
    rotateX(var(--note-rotate-x, 0deg))
    rotateY(var(--note-rotate-y, 0deg));
  transition: transform 220ms ease-out, box-shadow 300ms ease;
}

@media (hover: hover) and (pointer: fine) and
       (prefers-reduced-motion: no-preference) {
  .hero-visual:hover .hero-portrait {
    box-shadow: 0 32px 65px rgba(46, 73, 56, 0.17);
  }

  .hero-visual:hover .floating-note {
    box-shadow: 0 22px 48px rgba(46, 73, 56, 0.16);
  }
}

/* Presentazione più compatta e bilanciata sui computer */
@media (min-width: 901px) {
  .intro {
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: clamp(32px, 4.5vw, 68px);
  }

  .intro > .section-heading {
    margin-bottom: 0;
  }

  .intro > .section-heading h2 {
    font-size: clamp(2rem, 3.2vw, 2.8rem);
    line-height: 1.18;
  }

  .intro-content {
    grid-template-columns: minmax(0, 1.35fr) minmax(190px, 0.75fr);
    align-items: center;
    gap: clamp(24px, 3vw, 42px);
  }

  .intro-text p {
    font-size: 0.96rem;
    line-height: 1.65;
  }

  .intro-note {
    padding: 26px 24px;
  }

  .intro-note p {
    font-size: 1.2rem;
    line-height: 1.45;
  }
}

@media (max-width: 900px) {
  .intro {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .intro > .section-heading {
    margin-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual .hero-portrait,
  .hero-visual .visual-shape,
  .hero-visual .floating-note {
    transform: none !important;
    transition: none !important;
    will-change: auto;
  }
}

/* Recensioni: carosello con una sola scheda visibile */
.reviews-carousel { margin-top: 34px; max-width: 860px; margin-inline: auto; }
.reviews-viewport { min-width: 0; }
.review-slide[hidden] { display: none !important; }
.review-slide {
  display: flex; flex-direction: column; justify-content: center; min-width: 0;
  min-height: 245px; padding: clamp(26px, 5vw, 42px);
  border: 1px solid rgba(69, 102, 79, 0.14); border-radius: 20px;
  background: var(--ivory); box-shadow: 0 12px 32px rgba(46, 73, 56, 0.045);
}
.review-stars { margin-bottom: 17px; color: #b47c32; font-size: 1rem; letter-spacing: 3px; line-height: 1; }
.review-item blockquote { flex: 1; margin: 0 0 24px; color: var(--green-dark); font-size: 1.02rem; line-height: 1.8; }
.review-author { margin: 0; padding-top: 15px; border-top: 1px solid rgba(69, 102, 79, 0.14); color: var(--green-dark); font-size: 0.9rem; font-weight: 700; }
.reviews-controls { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 20px; }
.reviews-counter { color: var(--green-dark); font-size: 0.88rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.reviews-dots { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; }
.review-dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: rgba(69, 102, 79, 0.25); cursor: pointer; }
.review-dot[aria-current="true"] { background: var(--green-dark); transform: scale(1.25); }
.review-dot:focus-visible, .reviews-controls .carousel-arrow:focus-visible { outline: 2px solid var(--green-dark); outline-offset: 4px; }
@media (max-width: 600px) {
  .reviews-carousel { margin-top: 24px; }
  .review-slide { min-height: 0; padding: 24px 21px; }
  .reviews-controls { gap: 11px; }
  .reviews-dots { order: 3; flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { .review-dot { transition: none !important; } }

/* Contatti diretti sotto il calendario di prenotazione */
.booking-contact {
  margin-top: 30px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(69, 102, 79, 0.16);
  border-radius: 20px;
  background: var(--ivory);
}

.booking-contact h3 {
  margin: 0 0 8px;
  color: var(--green-dark);
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.65rem);
  font-weight: 500;
}

.booking-contact > p:not(.booking-contact-note) {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.booking-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.booking-contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 19px;
  border: 1px solid var(--green-dark);
  border-radius: 999px;
  color: var(--green-dark);
  font-size: 0.94rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.booking-contact-whatsapp {
  background: var(--green-dark);
  color: var(--ivory);
}

.booking-contact-email {
  background: transparent;
}

.booking-contact-link:hover {
  transform: translateY(-2px);
}

.booking-contact-whatsapp:hover {
  background: var(--green);
  color: var(--ivory);
}

.booking-contact-email:hover {
  background: rgba(69, 102, 79, 0.08);
}

.booking-contact-link:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

.booking-contact-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

@media (max-width: 560px) {
  .booking-contact-actions {
    flex-direction: column;
  }

  .booking-contact-link {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .booking-contact-link {
    transition: none;
  }

  .booking-contact-link:hover {
    transform: none;
  }
}



/* Sfondo d'acqua interattivo: visibile ma non invasivo */
.water-canvas {
  position: fixed;
  inset: 0;
  display: block;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
}

html.water-background-enabled body {
  isolation: isolate;
}

/* Il contenuto resta davanti al canvas, che così può vedersi sotto le sezioni trasparenti. */
html.water-background-enabled body > .site-header,
html.water-background-enabled body > main,
html.water-background-enabled body > footer {
  position: relative;
  z-index: 1;
}

html.water-background-enabled .site-header {
  background: rgba(247, 245, 239, 0.76);
}

html.water-background-enabled main > .hero,
html.water-background-enabled main > .intro,
html.water-background-enabled main > .quote-section {
  background-color: rgba(247, 245, 239, 0.40);
}

html.water-background-enabled main > .services,
html.water-background-enabled main > .booking,
html.water-background-enabled main > .location-section,
html.water-background-enabled main > .reviews-section {
  background-color: rgba(255, 254, 250, 0.48);
  background-image: none;
}

html.water-background-enabled main > .approach {
  background: rgba(220, 229, 216, 0.52);
}

@media (prefers-reduced-motion: reduce) {
  .water-canvas {
    display: none;
  }
}


/* Riflessi d'acqua più organici, in armonia con la palette salvia. */
.water-canvas {
  opacity: 1;
  mix-blend-mode: normal;
}

html.water-background-enabled main > .hero,
html.water-background-enabled main > .intro,
html.water-background-enabled main > .quote-section {
  background-color: rgba(247, 245, 239, 0.24);
}

html.water-background-enabled main > .services,
html.water-background-enabled main > .booking,
html.water-background-enabled main > .location-section,
html.water-background-enabled main > .reviews-section {
  background-color: rgba(255, 254, 250, 0.32);
}

html.water-background-enabled main > .approach {
  background: rgba(220, 229, 216, 0.38);
}

/* Pulsante audio: discreto, sempre accessibile e mai attivo in automatico. */
.water-sound-toggle {
  position: fixed;
  right: max(22px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 1200;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 17px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(46, 73, 56, 0.94);
  color: #fffefa;
  box-shadow: 0 8px 28px rgba(46, 73, 56, 0.18);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(10px);
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.water-sound-toggle:hover {
  background: rgba(36, 61, 45, 0.98);
  transform: translateY(-2px);
  box-shadow: 0 11px 32px rgba(46, 73, 56, 0.22);
}

.water-sound-toggle[aria-pressed="true"] {
  background: rgba(69, 102, 79, 0.96);
  box-shadow: 0 0 0 3px rgba(134, 190, 179, 0.22), 0 8px 28px rgba(46, 73, 56, 0.18);
}

.water-sound-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 17px;
  line-height: 1;
}

.water-sound-toggle:focus-visible {
  outline: 3px solid #8ebcb5;
  outline-offset: 4px;
}

@media (max-width: 480px) {
  .water-sound-toggle {
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
    min-height: 46px;
    padding: 11px 14px;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .water-sound-toggle {
    transition: none;
  }

  .water-sound-toggle:hover {
    transform: none;
  }
}


/* Acqua touch in stile lock-screen classica: più leggibile, senza diventare un fondale invadente. */
.water-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 1;
}

html.water-background-enabled .site-header {
  background: rgba(247, 245, 239, 0.66);
}

html.water-background-enabled main > .hero,
html.water-background-enabled main > .intro,
html.water-background-enabled main > .quote-section {
  background-color: rgba(247, 245, 239, 0.13);
  background-image: none;
}

html.water-background-enabled main > .services,
html.water-background-enabled main > .booking,
html.water-background-enabled main > .location-section,
html.water-background-enabled main > .reviews-section {
  background-color: rgba(255, 254, 250, 0.18);
  background-image: none;
}

html.water-background-enabled main > .approach {
  background: rgba(220, 229, 216, 0.22);
}

/* Pulsante audio piccolo e sobrio; nessuna riproduzione viene nascosta all'utente. */
.water-sound-toggle {
  position: fixed;
  right: max(22px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 1200;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  background: rgba(46, 73, 56, 0.9);
  color: #fffefa;
  box-shadow: 0 5px 22px rgba(46, 73, 56, 0.14);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.025em;
  line-height: 1.2;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(12px);
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.water-sound-toggle:hover {
  background: rgba(36, 61, 45, 0.98);
  transform: translateY(-1px);
}

.water-sound-toggle[aria-pressed="true"] {
  background: rgba(69, 102, 79, 0.94);
}

.water-sound-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 13px;
  line-height: 1;
}

.water-sound-toggle:focus-visible {
  outline: 3px solid #8ebcb5;
  outline-offset: 4px;
}

@media (max-width: 480px) {
  .water-sound-toggle {
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
    min-height: 42px;
    padding: 9px 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .water-sound-toggle,
  .water-sound-toggle:hover {
    transition: none;
    transform: none;
  }
}

/* Cornice del ritratto: arco salvia elegante, bordo avorio e ombra morbida.
   Mantiene invariati dimensioni, posizione e ritaglio della fotografia. */
.hero-visual .visual-shape {
  background: linear-gradient(145deg, #e4ebe0 0%, var(--sage) 72%, #d2dfcf 100%);
  border: 1px solid rgba(69, 102, 79, 0.13);
  border-radius: 49% 49% 18px 18px;
  box-shadow: 0 22px 48px rgba(46, 73, 56, 0.12), inset 1px 1px 0 rgba(255, 255, 255, 0.55);
}

.hero-visual .hero-portrait {
  border: 7px solid var(--paper);
  border-radius: 49% 49% 18px 18px;
  box-shadow: 0 20px 42px rgba(46, 73, 56, 0.16), 0 3px 10px rgba(46, 73, 56, 0.08);
}

@media (max-width: 680px) {
  .hero-visual .hero-portrait {
    border-width: 5px;
  }
}


/* WIDGET RESPIRAZIONE GUIDATA */
.breathing-widget {
  width: calc(100% - 48px);
  max-width: 1120px;
  margin: clamp(30px, 5vw, 54px) auto;
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 254, 250, 0.96), rgba(220, 229, 216, 0.52));
  box-shadow: 0 16px 40px rgba(46, 73, 56, 0.06);
}
.breathing-heading { max-width: 620px; margin: 0 auto 26px; text-align: center; }
.breathing-heading h3 { margin: 0 0 10px; color: var(--green-dark); font: 400 clamp(1.7rem, 4vw, 2.25rem)/1.2 var(--font-display); }
.breathing-heading > p:last-child { margin: 0; color: var(--muted); line-height: 1.65; }
.breathing-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 680px; margin: 0 auto 26px; }
.breathing-field { display: grid; gap: 8px; }
.breathing-field label { color: var(--ink); font-size: 0.9rem; font-weight: 600; }
.breathing-field select { width: 100%; min-height: 48px; padding: 10px 38px 10px 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); font: inherit; }
.breathing-practice { display: flex; flex-direction: column; align-items: center; }
.breathing-orb-wrap { position: relative; display: grid; place-items: center; width: min(100%, 270px); aspect-ratio: 1; margin: 0 auto 10px; }
.breathing-orb { position: absolute; width: 66%; aspect-ratio: 1; border: 1px solid rgba(69, 102, 79, 0.2); border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f5f5e9 0%, #dce8d8 48%, #b9cfbf 100%); box-shadow: 0 15px 45px rgba(69, 102, 79, 0.13), inset 0 0 25px rgba(255,255,255,0.55); transform: scale(0.82); transition: transform 4s ease-in-out, box-shadow 4s ease-in-out; }
.breathing-practice[data-phase="inhale"] .breathing-orb { transform: scale(1.08); box-shadow: 0 20px 55px rgba(69, 102, 79, 0.2), inset 0 0 30px rgba(255,255,255,0.7); }
.breathing-practice[data-phase="hold-in"], .breathing-practice[data-phase="hold-out"] { }
.breathing-practice[data-phase="hold-in"] .breathing-orb { transform: scale(1.08); }
.breathing-practice[data-phase="exhale"] .breathing-orb { transform: scale(0.82); }
.breathing-orb-label { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; max-width: 80%; text-align: center; color: var(--green-dark); }
.breathing-orb-label span { font-size: clamp(1rem, 3.5vw, 1.25rem); font-weight: 600; }
.breathing-orb-label strong { font-size: 1rem; font-variant-numeric: tabular-nums; font-weight: 500; }
.breathing-guidance { min-height: 1.5em; margin: 0 0 22px; color: var(--muted); text-align: center; line-height: 1.5; }
.breathing-time-row { display: flex; justify-content: space-between; gap: 20px; width: min(100%, 430px); margin-bottom: 9px; color: var(--muted); font-size: 0.9rem; }
.breathing-time-row strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.breathing-progress { overflow: hidden; width: min(100%, 430px); height: 5px; margin-bottom: 24px; border-radius: 99px; background: var(--sage); }
.breathing-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--green); transition: width 0.15s linear; }
.breathing-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.breathing-actions button:disabled { opacity: 0.45; cursor: not-allowed; }
.breathing-actions .button-secondary { border: 1px solid var(--line); background: rgba(255,254,250,0.8); color: var(--green-dark); }
.breathing-note { max-width: 700px; margin: 22px auto 0; color: var(--muted); font-size: 0.84rem; line-height: 1.6; text-align: center; }
@media (max-width: 560px) {
  .breathing-widget { width: calc(100% - 32px); border-radius: 18px; padding: 22px 16px; }
  .breathing-controls { grid-template-columns: 1fr; gap: 12px; }
  .breathing-orb-wrap { width: min(100%, 235px); }
  .breathing-actions { width: 100%; }
  .breathing-actions button { flex: 1 1 30%; padding-inline: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .breathing-orb, .breathing-progress span { transition: none !important; }
}


/* Finestra iniziale del respiro guidato */
.breathing-modal[hidden] { display: none !important; }
.breathing-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 18px; }
.breathing-modal-backdrop { position: absolute; inset: 0; background: rgba(34, 45, 37, 0.56); backdrop-filter: blur(5px); }
.breathing-modal-panel { position: relative; z-index: 1; width: min(100%, 760px); max-height: min(92vh, 900px); overflow-y: auto; padding: clamp(22px, 4vw, 36px); border: 1px solid var(--line); border-radius: 24px; background: var(--ivory); box-shadow: 0 24px 90px rgba(20, 32, 23, 0.25); }
.breathing-modal-close { position: absolute; top: 12px; right: 14px; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--green-dark); font-size: 1.7rem; line-height: 1; cursor: pointer; }
.breathing-modal-panel > .eyebrow { margin: 0 48px 8px 0; }
.breathing-modal-panel > h2 { margin: 0 48px 10px 0; color: var(--green-dark); font: 400 clamp(1.8rem, 4vw, 2.4rem)/1.15 var(--font-display); }
.breathing-modal-description { margin: 0 0 14px; color: var(--muted); line-height: 1.6; }
.breathing-modal .breathing-widget { width: 100%; max-width: none; margin: 0; padding: clamp(16px, 3vw, 26px); box-shadow: none; }
.breathing-modal .breathing-heading { margin-bottom: 16px; }
.breathing-modal .breathing-heading > .eyebrow { display: none; }
.breathing-modal .breathing-heading h3 { font-size: clamp(1.4rem, 3vw, 1.8rem); }
.breathing-modal .breathing-heading > p:last-child { font-size: 0.92rem; }
.breathing-modal .breathing-controls { margin-bottom: 12px; }
.breathing-modal .breathing-orb-wrap { width: min(100%, 190px); }
.breathing-modal .breathing-guidance { margin-bottom: 12px; }
.breathing-modal .breathing-progress { margin-bottom: 16px; }
.breathing-modal .breathing-note { margin-top: 12px; }
.breathing-modal-footnote { margin: 16px 0 12px; color: var(--muted); font-size: 0.88rem; line-height: 1.55; text-align: center; }
.breathing-modal-continue { display: block; margin: 0 auto; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--green-dark); font: inherit; cursor: pointer; }
.breathing-modal-continue:hover, .breathing-modal-close:hover { background: var(--sage); }
body.breathing-modal-open { overflow: hidden; }
@media (max-width: 560px) {
  .breathing-modal { padding: 10px; }
  .breathing-modal-panel { max-height: 94vh; padding: 22px 14px 18px; border-radius: 18px; }
  .breathing-modal .breathing-widget { padding: 14px 10px; }
  .breathing-modal .breathing-controls { grid-template-columns: 1fr; gap: 10px; }
  .breathing-modal .breathing-orb-wrap { width: min(100%, 160px); }
  .breathing-modal .breathing-actions button { padding-inline: 9px; }
}
@media (prefers-reduced-motion: reduce) { .breathing-modal-backdrop { backdrop-filter: none; } }


/* MIGLIORIA 1 — finestra del respiro più compatta e uscite evidenti */
.breathing-modal {
  padding: 14px;
}

.breathing-modal-panel {
  width: min(100%, 620px);
  max-height: min(88vh, 780px);
  max-height: min(88dvh, 780px);
  padding: clamp(18px, 2.8vw, 28px);
  border-radius: 20px;
}

.breathing-modal-panel > .eyebrow {
  margin-bottom: 6px;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
}

.breathing-modal-panel > h2 {
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  line-height: 1.12;
}

.breathing-modal-description {
  max-width: 52ch;
  margin-bottom: 10px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.breathing-modal-close {
  top: 10px;
  right: 10px;
  width: 48px;
  height: 48px;
  border: 2px solid var(--green-dark);
  background: var(--green-dark);
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(20, 32, 23, 0.18);
}

.breathing-modal-close:hover {
  background: var(--green);
  color: #fff;
}

.breathing-modal .breathing-widget {
  padding: 12px 16px;
}

.breathing-modal .breathing-heading {
  margin-bottom: 10px;
}

.breathing-modal .breathing-heading h3 {
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  line-height: 1.2;
}

.breathing-modal .breathing-heading > p:last-child {
  margin-bottom: 8px;
  font-size: 0.85rem;
  line-height: 1.45;
}

.breathing-modal .breathing-orb-wrap {
  width: min(100%, 150px);
}

.breathing-modal .breathing-guidance {
  margin-bottom: 8px;
  font-size: 0.85rem;
}

.breathing-modal .breathing-progress {
  margin-bottom: 10px;
}

.breathing-modal .breathing-note {
  margin-top: 8px;
  font-size: 0.78rem;
  line-height: 1.45;
}

.breathing-modal-footnote {
  margin: 10px 0;
  font-size: 0.8rem;
  line-height: 1.45;
}

.breathing-modal-continue {
  min-height: 48px;
  width: min(100%, 320px);
  padding: 12px 22px;
  border: 2px solid var(--green-dark);
  background: var(--green-dark);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(46, 73, 56, 0.16);
}

.breathing-modal-continue:hover {
  background: var(--green);
  color: #fff;
}

@media (max-width: 560px) {
  .breathing-modal {
    padding: 8px;
    align-items: center;
  }

  .breathing-modal-panel {
    width: 100%;
    max-height: 88vh;
    max-height: 88dvh;
    padding: 18px 12px 14px;
    border-radius: 16px;
  }

  .breathing-modal-panel > .eyebrow {
    margin-right: 48px;
    font-size: 0.62rem;
  }

  .breathing-modal-panel > h2 {
    margin-right: 44px;
    margin-bottom: 8px;
    font-size: clamp(1.35rem, 6vw, 1.7rem);
    letter-spacing: -0.7px;
  }

  .breathing-modal-description {
    margin-bottom: 8px;
    font-size: 0.82rem;
  }

  .breathing-modal-close {
    top: 8px;
    right: 8px;
    width: 46px;
    height: 46px;
  }

  .breathing-modal .breathing-widget {
    padding: 8px 6px;
  }

  .breathing-modal .breathing-heading {
    margin-bottom: 6px;
  }

  .breathing-modal .breathing-heading h3 {
    font-size: 1.2rem;
  }

  .breathing-modal .breathing-heading > p:last-child {
    font-size: 0.78rem;
  }

  .breathing-modal .breathing-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 8px;
  }

  .breathing-modal .breathing-orb-wrap {
    width: min(100%, 112px);
  }

  .breathing-modal .breathing-actions {
    gap: 8px;
  }

  .breathing-modal .breathing-actions button {
    min-height: 42px;
    padding: 8px 6px;
    font-size: 0.82rem;
  }

  .breathing-modal .breathing-guidance {
    margin-bottom: 6px;
    font-size: 0.78rem;
  }

  .breathing-modal .breathing-progress {
    margin-bottom: 8px;
  }

  .breathing-modal .breathing-note {
    margin-top: 6px;
    font-size: 0.72rem;
  }

  .breathing-modal-footnote {
    margin: 8px 0;
    font-size: 0.74rem;
  }

  .breathing-modal-continue {
    width: 100%;
    min-height: 48px;
    padding: 11px 16px;
    font-size: 0.92rem;
  }
}

@media (max-height: 720px) {
  .breathing-modal-panel {
    max-height: 94vh;
    max-height: 94dvh;
  }

  .breathing-modal .breathing-orb-wrap {
    width: min(100%, 112px);
  }
}


/* HERO RITRATTO — cornice editoriale più raffinata */
.hero-visual {
  isolation: isolate;
  min-height: 490px;
}

.visual-shape {
  inset: 4px 0 26px 28px;
  border-radius: 49% 49% 10px 10px;
  background: linear-gradient(155deg, #e5ece1 0%, #d4dfd1 58%, #c4d2c1 100%);
  box-shadow:
    16px 22px 48px rgba(46, 73, 56, 0.09),
    inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  transform: none;
}

.hero-portrait {
  inset: 18px 18px 46px 0;
  width: calc(100% - 18px);
  height: calc(100% - 64px);
  object-fit: cover;
  object-position: center 22%;
  padding: 0;
  border: 7px solid rgba(255, 254, 250, 0.96);
  border-radius: 49% 49% 10px 10px;
  background: var(--paper);
  box-shadow:
    0 20px 46px rgba(39, 54, 42, 0.16),
    0 3px 10px rgba(39, 54, 42, 0.08);
  filter: saturate(0.92) contrast(1.025);
  transform: none;
  transition:
    box-shadow 500ms ease,
    filter 500ms ease;
}

.floating-note {
  right: -8px;
  bottom: 6px;
  gap: 12px;
  padding: 15px 20px;
  border: 1px solid rgba(69, 102, 79, 0.10);
  border-left: 3px solid #91a68c;
  border-radius: 3px 14px 3px 3px;
  box-shadow: 0 14px 36px rgba(39, 54, 42, 0.13);
  transform: none;
}

.floating-symbol {
  font-size: 27px;
  line-height: 1;
}

@media (hover: hover) and (pointer: fine) {
  .hero-visual:hover .hero-portrait {
    box-shadow:
      0 26px 54px rgba(39, 54, 42, 0.19),
      0 3px 10px rgba(39, 54, 42, 0.08);
    filter: saturate(0.98) contrast(1.035);
  }

  .hero-visual:hover .visual-shape {
    box-shadow:
      18px 25px 54px rgba(46, 73, 56, 0.11),
      inset 0 0 0 1px rgba(255, 255, 255, 0.65);
  }
}

@media (max-width: 900px) {
  .hero-visual {
    min-height: 410px;
  }

  .hero-portrait {
    inset: 16px 16px 42px 0;
    width: calc(100% - 16px);
    height: calc(100% - 58px);
    border-width: 6px;
  }

  .floating-note {
    right: -2px;
    padding: 12px 15px;
  }
}

@media (max-width: 680px) {
  .hero-visual {
    min-height: 400px;
    width: min(100%, 400px);
  }

  .visual-shape {
    inset: 4px 0 24px 20px;
  }

  .hero-portrait {
    inset: 15px 15px 40px 0;
    width: calc(100% - 15px);
    height: calc(100% - 55px);
    border-width: 6px;
  }

  .floating-note {
    right: -2px;
    bottom: 0;
    padding: 11px 14px;
    font-size: 14px;
  }
}

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

/* MIGLIORIA TIPOGRAFIA E SPAZIATURE — intervento finale, senza cambiare il layout */
body {
  font-size: 16px;
  line-height: 1.8;
}

.hero-description,
.intro-text p,
.intro-content > p:not(.eyebrow),
.section-description,
.booking-content > p:not(.eyebrow) {
  line-height: 1.85;
}

.section {
  padding-top: clamp(76px, 8vw, 104px);
  padding-bottom: clamp(76px, 8vw, 104px);
}

.section-heading {
  margin-bottom: clamp(30px, 4vw, 44px);
}

@media (max-width: 680px) {
  body {
    font-size: 15.5px;
  }

  .section {
    padding-top: 68px;
    padding-bottom: 68px;
  }

  .section-heading {
    margin-bottom: 28px;
  }
}



/* MIGLIORIA 2 — popup meditazione più discreto, soprattutto su smartphone */
.breathing-modal {
  padding: 12px;
}

.breathing-modal-backdrop {
  background: rgba(34, 45, 37, 0.42);
  backdrop-filter: blur(2px);
}

.breathing-modal-panel {
  width: min(100%, 540px);
  max-height: min(84dvh, 700px);
  padding: 22px 24px 18px;
  border-radius: 16px;
  box-shadow: 0 14px 42px rgba(20, 32, 23, 0.16);
}

.breathing-modal-panel > h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.8rem);
  letter-spacing: -0.6px;
}

.breathing-modal-description {
  font-size: 0.84rem;
}

.breathing-modal-close {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--green-dark);
  font-size: 1.55rem;
  box-shadow: none;
}

.breathing-modal-close:hover {
  background: var(--sage);
  color: var(--green-dark);
}

.breathing-modal .breathing-widget {
  padding: 8px 10px;
}

.breathing-modal .breathing-heading h3 {
  font-size: clamp(1.12rem, 2.4vw, 1.4rem);
}

.breathing-modal .breathing-heading > p:last-child,
.breathing-modal .breathing-guidance {
  font-size: 0.8rem;
}

.breathing-modal .breathing-orb-wrap {
  width: min(100%, 126px);
  margin-bottom: 4px;
}

.breathing-modal .breathing-progress {
  margin-bottom: 10px;
}

.breathing-modal .breathing-note {
  display: none;
}

.breathing-modal-footnote {
  margin: 8px 0 10px;
  font-size: 0.74rem;
}

.breathing-modal-continue {
  min-height: 42px;
  width: auto;
  padding: 9px 18px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--green-dark);
  font-size: 0.86rem;
  font-weight: 500;
  box-shadow: none;
}

.breathing-modal-continue:hover {
  background: var(--sage);
  color: var(--green-dark);
}

@media (max-width: 560px) {
  .breathing-modal {
    padding: 8px;
  }

  .breathing-modal-panel {
    width: min(100%, 420px);
    max-height: 82dvh;
    padding: 16px 12px 12px;
    border-radius: 14px;
  }

  .breathing-modal-panel > .eyebrow {
    margin-bottom: 4px;
    font-size: 0.58rem;
  }

  .breathing-modal-panel > h2 {
    margin-right: 38px;
    margin-bottom: 6px;
    font-size: clamp(1.2rem, 5.2vw, 1.45rem);
    line-height: 1.15;
  }

  .breathing-modal-description {
    margin-bottom: 5px;
    font-size: 0.76rem;
    line-height: 1.4;
  }

  .breathing-modal-close {
    top: 7px;
    right: 7px;
    width: 34px;
    height: 34px;
    font-size: 1.4rem;
  }

  .breathing-modal .breathing-widget {
    padding: 5px 4px;
  }

  .breathing-modal .breathing-heading {
    margin-bottom: 4px;
  }

  .breathing-modal .breathing-heading h3 {
    font-size: 1.05rem;
  }

  .breathing-modal .breathing-heading > p:last-child {
    margin-bottom: 4px;
    font-size: 0.72rem;
  }

  .breathing-modal .breathing-controls {
    gap: 6px;
    margin-bottom: 5px;
  }

  .breathing-modal .breathing-field {
    gap: 4px;
  }

  .breathing-modal .breathing-field label {
    font-size: 0.74rem;
  }

  .breathing-modal .breathing-field select {
    min-height: 38px;
    padding: 7px 26px 7px 9px;
    border-radius: 8px;
    font-size: 0.78rem;
  }

  .breathing-modal .breathing-orb-wrap {
    width: min(100%, 94px);
    margin-bottom: 2px;
  }

  .breathing-modal .breathing-orb-label {
    gap: 3px;
  }

  .breathing-modal .breathing-orb-label span {
    font-size: 0.78rem;
  }

  .breathing-modal .breathing-orb-label strong {
    font-size: 0.76rem;
  }

  .breathing-modal .breathing-guidance {
    margin-bottom: 4px;
    font-size: 0.72rem;
  }

  .breathing-modal .breathing-time-row {
    margin-bottom: 5px;
    font-size: 0.72rem;
  }

  .breathing-modal .breathing-progress {
    height: 4px;
    margin-bottom: 7px;
  }

  .breathing-modal .breathing-actions {
    gap: 6px;
  }

  .breathing-modal .breathing-actions button {
    min-height: 36px;
    padding: 7px 6px;
    font-size: 0.75rem;
  }

  .breathing-modal-footnote {
    margin: 6px 0 7px;
    font-size: 0.68rem;
    line-height: 1.35;
  }

  .breathing-modal-continue {
    min-height: 38px;
    padding: 8px 15px;
    font-size: 0.8rem;
  }
}

@media (max-height: 720px) {
  .breathing-modal-panel {
    max-height: 92dvh;
  }

  .breathing-modal .breathing-orb-wrap {
    width: min(100%, 94px);
  }
}


/* CORREZIONE — comandi di uscita ben visibili nel popup compatto */
.breathing-modal-close {
  width: 40px;
  height: 40px;
  border: 1px solid var(--green-dark);
  background: var(--green-dark);
  color: #fff;
  font-size: 1.65rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(20, 32, 23, 0.16);
}

.breathing-modal-close:hover {
  background: var(--green);
  color: #fff;
}

.breathing-modal-continue {
  min-height: 40px;
  padding: 9px 18px;
  border: 1px solid var(--green-dark);
  background: var(--green-dark);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(46, 73, 56, 0.12);
}

.breathing-modal-continue:hover {
  background: var(--green);
  color: #fff;
}

@media (max-width: 560px) {
  .breathing-modal-close {
    width: 36px;
    height: 36px;
    font-size: 1.5rem;
  }

  .breathing-modal-continue {
    min-height: 38px;
    padding: 8px 16px;
    font-size: 0.8rem;
  }
}
