:root {
  --ink: #1a1518;
  --muted: #675d61;
  --plum: #69364d;
  --plum-dark: #24181f;
  --rose: #d3a0aa;
  --rose-pale: #eee0df;
  --paper: #f6f0ea;
  --porcelain: #fffdf9;
  --sage: #c7cec0;
  --line: rgba(26, 21, 24, 0.2);
  --light-line: rgba(255, 253, 249, 0.3);
  --max-width: 1240px;
  --side-space: max(32px, calc((100vw - var(--max-width)) / 2));
  --serif: "Newsreader", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--porcelain);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body,
button,
input {
  font-family: var(--sans);
}

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

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

button,
input {
  font: inherit;
}

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

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.96;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--porcelain);
  background: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 24px clamp(32px, 3.3vw, 52px) 22px;
  background: #e6dcd8;
}

.site-header::after {
  position: absolute;
  right: clamp(32px, 3.3vw, 52px);
  bottom: 0;
  left: clamp(32px, 3.3vw, 52px);
  height: 1px;
  background: var(--line);
  content: "";
}

.brand {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}

.brand-name {
  font-family: var(--serif);
  font-size: 50px;
  font-weight: 400;
  text-transform: uppercase;
}

.brand-role {
  position: absolute;
  /* Match the optical center of PSICOLOGA inside the logo artwork. */
  right: 8.2%;
  bottom: -5px;
  left: 0;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a56e7e;
  background: transparent;
  font-family: var(--sans);
  font-size: 9px;
  font-style: normal;
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  letter-spacing: 0;
}

.brand-logo {
  width: 250px;
  height: auto;
  display: block;
}

.site-header .brand-logo {
  filter: brightness(0.72);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 42px;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.1;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
}

.nav-item {
  position: relative;
}

.nav-item-main {
  display: flex;
  align-items: center;
}

.submenu-toggle {
  width: 24px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.submenu-toggle span {
  width: 6px;
  height: 6px;
  display: block;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 180ms ease;
}

.submenu {
  position: absolute;
  top: calc(100% + 8px);
  left: -24px;
  z-index: 30;
  min-width: 270px;
  max-height: calc(100dvh - 140px);
  overflow-y: auto;
  padding: 12px 24px 16px;
  visibility: hidden;
  opacity: 0;
  background: var(--porcelain);
  border: 1px solid var(--line);
  box-shadow: 0 18px 34px rgba(30, 20, 26, 0.09);
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.submenu::before {
  position: absolute;
  inset: -9px 0 auto;
  height: 9px;
  content: "";
}

.submenu a {
  display: block;
  padding: 12px 0;
  font-size: 16px;
  border-bottom: 1px solid var(--line);
}

.site-nav .submenu a {
  padding-inline: 10px;
  transition: color 180ms ease;
}

.site-nav .submenu a:is(:hover, :focus-visible) {
  color: var(--plum);
}

.site-nav .submenu--percorsi .submenu-services a:is(:hover, :focus-visible) {
  color: #1a1518;
}

.site-nav .submenu a:focus-visible {
  outline: 2px solid var(--plum);
  outline-offset: 2px;
}

.site-nav .submenu .submenu-area-link,
.site-nav .submenu .submenu-service-link {
  display: flex;
  align-items: center;
  gap: 8px;
}

.submenu-thumb {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: block;
  object-fit: cover;
  border-radius: 2px;
}

.submenu-area-link > span { min-width: 0; }

.submenu-service-link > span { min-width: 0; }

.submenu-service-link .submenu-thumb {
  width: 64px;
  height: 64px;
  flex-basis: 64px;
}

.site-nav .submenu .submenu-service-link { gap: 12px; }

.submenu a:last-child {
  border-bottom: 0;
}

.submenu .submenu-section-title {
  display: block;
  margin-top: 10px;
  padding: 12px 10px;
  color: var(--plum);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
}

.submenu a::after {
  display: none;
}

@media (min-width: 951px) {
  .nav-item--percorsi { position: relative; }

  /* Keep the hover path connected outside the scrollable panel. */
  .nav-item--percorsi::after {
    position: absolute;
    inset: 100% 0 auto;
    height: 8px;
    content: "";
  }

  .submenu--percorsi {
    top: calc(100% + 8px);
    left: 50%;
    width: min(640px, calc(100vw - 64px));
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 22px 24px;
    translate: calc(-50% + var(--percorsi-shift, 0px)) 0;
  }

  .submenu--percorsi .submenu-services {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
  }

  .submenu--percorsi .submenu-area-columns {
    width: 100%;
    max-width: none;
    margin-inline: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .submenu--percorsi .submenu-column a {
    min-height: 58px;
    display: flex;
    align-items: center;
    line-height: 1.25;
    white-space: normal;
  }

  .submenu--percorsi .submenu-services a {
    min-height: 84px;
    padding: 6px;
    border-bottom: 0;
    color: var(--plum);
    font-size: 19px;
    font-weight: 500;
  }

  .submenu--percorsi .submenu-areas .submenu-column a {
    min-height: 44px;
    padding: 5px 6px;
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
  }

  .submenu--percorsi .submenu-section-title {
    min-height: 38px;
    margin: 0;
    padding: 0 0 18px;
    border: 0;
    text-align: center;
  }
}

.nav-item--submenu:hover .submenu,
.nav-item--submenu:focus-within .submenu,
.nav-item--submenu.is-open .submenu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.nav-item--submenu.is-open .submenu-toggle span {
  transform: translateY(2px) rotate(225deg);
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-nav .nav-contact {
  margin-left: 8px;
  padding-left: 30px;
  border-left: 1px solid var(--line);
}

.site-nav .nav-contact::after {
  left: 30px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px 7px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 29px;
  height: 1px;
  margin: 7px auto;
  background: var(--ink);
  transition: transform 180ms ease;
}

.section-shell {
  width: min(calc(100% - 64px), var(--max-width));
  margin-inline: auto;
}

.eyebrow {
  margin-bottom: 22px;
  color: var(--plum);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  text-transform: uppercase;
}

.section-heading h2 {
  margin-bottom: 28px;
  font-size: clamp(50px, 5.3vw, 78px);
}

.section-heading > p:last-child {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.hero {
  position: relative;
  z-index: 2;
  overflow: visible;
  background:
    linear-gradient(18deg, rgba(194, 104, 137, 0.38) 0%, rgba(225, 181, 193, 0.2) 22%, rgba(246, 239, 233, 0) 52%),
    linear-gradient(102deg, #f5eee8 0%, #f4eae6 48%, #e9ded8 100%);
}

.hero-inner {
  position: relative;
  width: min(100%, 1536px);
  min-height: 760px;
  margin-inline: auto;
  padding-left: clamp(72px, 7vw, 108px);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: 53%;
  max-width: 760px;
  padding: 181px 20px 90px 0;
}

.hero-copy .eyebrow {
  margin-bottom: 24px;
  color: #ad4f69;
  font-size: 12px;
}

.hero h1 {
  max-width: 730px;
  margin-bottom: 27px;
  font-size: clamp(62px, 4.55vw, 70px);
  line-height: 0.97;
}

.hero-lead {
  max-width: 460px;
  margin-bottom: 37px;
  color: #51484c;
  font-size: 19px;
  line-height: 1.7;
}

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

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 23px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.button-primary {
  color: var(--porcelain);
  background: #b95770;
}

.button-primary:hover,
.button-primary:focus-visible {
  color: var(--porcelain);
  background: var(--plum);
}

.button-dark {
  color: var(--porcelain);
  background: var(--ink);
}

.button-dark:hover,
.button-dark:focus-visible {
  color: var(--ink);
  background: transparent;
  border-color: var(--ink);
}

.text-link,
.section-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding-bottom: 5px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  border-bottom: 1px solid currentColor;
}

.hero-actions .text-link {
  min-height: 52px;
  justify-content: center;
  padding: 14px 23px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  text-align: center;
}

.text-link::after,
.section-link::after {
  margin-left: 9px;
  content: "↗";
  transition: transform 180ms ease;
}

.text-link:hover::after,
.text-link:focus-visible::after,
.section-link:hover::after,
.section-link:focus-visible::after {
  transform: translate(3px, -3px);
}

.hero-portrait {
  position: absolute;
  z-index: 4;
  top: 0;
  right: clamp(32px, 4vw, 60px);
  width: clamp(460px, 36vw, 560px);
  height: 760px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-portrait picture {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-portrait img {
  width: 100%;
  height: 760px;
  object-fit: contain;
  object-position: center bottom;
  filter: saturate(0.9) contrast(0.98);
}

.hero-portrait--photo {
  width: clamp(430px, 33vw, 505px);
  overflow: hidden;
}

.hero-portrait--photo img {
  width: 100%;
  max-width: none;
  height: 900px;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.88) contrast(0.97);
}

.hero-portrait--photo::after {
  display: none;
}

.hero-portrait::after {
  position: absolute;
  right: 18%;
  bottom: 0;
  left: 18%;
  z-index: 5;
  height: 1px;
  background: rgba(105, 54, 77, 0.34);
  content: "";
}

.hero-botanical {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: -4px;
  width: 270px;
  height: 470px;
  object-fit: contain;
  object-position: right bottom;
  opacity: 0.64;
  filter: saturate(0.7) contrast(0.84);
  pointer-events: none;
}

.approach-section {
  position: relative;
  z-index: 1;
  padding: 47px 0 104px;
  background: #fbf8f3;
}

.approach-section .section-shell {
  width: min(calc(100% - 194px), 1342px);
}

.approach-heading {
  max-width: 1000px;
}

.approach-heading .eyebrow {
  width: 202px;
  margin-bottom: 37px;
  padding-bottom: 8px;
  color: #ad4f69;
  border-bottom: 1px solid #ad4f69;
}

.approach-heading h2 {
  margin-bottom: 23px;
  font-size: clamp(42px, 3.2vw, 49px);
  line-height: 1;
}

.approach-heading > p:last-child {
  max-width: 505px;
  color: #3f383b;
  font-size: 16px;
  line-height: 1.55;
}

.principles-list {
  margin: 66px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.principle {
  min-width: 0;
  padding: 0 40px 4px;
}

.principle:first-child {
  padding-left: 0;
}

.principle + .principle {
  border-left: 1px solid var(--line);
}

.principle-art {
  width: 100%;
  height: 176px;
  margin-bottom: 25px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: auto 150%;
}

.principle:nth-child(1) .principle-art {
  background-image: url("assets/approach-material-ascolto-v2.webp");
}

.principle:nth-child(2) .principle-art {
  background-image: url("assets/approach-material-profondita-v2.webp");
}

.principle:nth-child(3) .principle-art {
  background-image: url("assets/approach-material-mente-corpo-v2.webp");
}

.principle h3 {
  margin-bottom: 12px;
  font-size: 30px;
  line-height: 1.05;
}

.principle p {
  max-width: 335px;
  margin-bottom: 0;
  color: #4f474b;
  font-size: 14px;
  line-height: 1.55;
}

.approach-section .section-link {
  position: absolute;
  right: max(97px, calc((100vw - 1342px) / 2));
  bottom: 24px;
}

.services-section {
  padding: 125px 0 130px;
  background: var(--rose-pale);
}

.services-heading {
  max-width: 780px;
  margin-bottom: 78px;
}

.service-list {
  border-top: 1px solid var(--line);
}

.service-row {
  min-height: 405px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(50px, 7vw, 110px);
  align-items: center;
  padding: 55px 0;
  border-bottom: 1px solid var(--line);
}

.service-row-reverse .service-media {
  order: 2;
}

.service-row-reverse .service-copy {
  order: 1;
  padding-left: clamp(20px, 5vw, 72px);
}

.service-media {
  height: 340px;
  overflow: hidden;
}

.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.service-row:hover .service-media img {
  transform: scale(1.025);
}

.service-copy {
  max-width: 470px;
}

.service-index {
  margin-bottom: 22px;
  color: var(--plum);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.service-copy h3 {
  margin-bottom: 21px;
  font-size: clamp(41px, 4vw, 61px);
}

.service-copy > p:not(.service-index) {
  margin-bottom: 29px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.help-section {
  padding: 126px 0;
  color: var(--porcelain);
  background: var(--plum-dark);
}

.help-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(440px, 1.12fr);
  gap: clamp(80px, 10vw, 160px);
  align-items: start;
}

.help-heading .eyebrow {
  color: #ddaab3;
}

.help-heading h2 {
  margin-bottom: 28px;
  font-size: clamp(54px, 5.7vw, 82px);
}

.help-heading > p:last-child {
  color: rgba(255, 253, 249, 0.68);
}

.help-heading .help-invitation {
  max-width: 470px;
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid var(--light-line);
  color: var(--porcelain);
}

.help-invitation a {
  display: table;
  margin-top: 15px;
  border-bottom: 1px solid currentColor;
  color: #e0aab4;
}

.topic-list {
  border-top: 1px solid var(--light-line);
}

.topic-list a {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 5px;
  border-bottom: 1px solid var(--light-line);
  font-family: var(--serif);
  font-size: 27px;
  line-height: 1.15;
  transition: color 180ms ease, padding 180ms ease;
}

.topic-list a span:last-child {
  flex: 0 0 auto;
  font-family: var(--sans);
  font-size: 16px;
}

.topic-list a:hover,
.topic-list a:focus-visible {
  padding-left: 13px;
  color: #e0aab4;
}

.help-topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px 16px;
}

.help-topic-card {
  min-width: 0;
  display: block;
  color: var(--porcelain);
}

.help-topic-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  display: block;
  object-fit: cover;
  filter: saturate(.75);
  transition: filter 180ms ease;
}

.help-topic-card:is(:hover, :focus-visible) img {
  filter: saturate(1);
}

.help-topic-card span {
  min-height: 54px;
  display: block;
  padding-top: 9px;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.15;
}

.help-topic-card--future img {
  opacity: .68;
}

.help-topic-card small {
  display: block;
  margin-top: 4px;
  color: #ddaab3;
  font-family: var(--sans);
  font-size: 11px;
}

.feature-section {
  padding: 126px 0 132px;
  background: var(--porcelain);
}

.feature-heading {
  max-width: 770px;
  margin-bottom: 70px;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr 1.08fr;
  gap: 24px;
  align-items: start;
}

.feature-item {
  display: flex;
  flex-direction: column;
}

.feature-media {
  height: 360px;
  margin-bottom: 27px;
  overflow: hidden;
  background: var(--paper);
}

.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.feature-item:hover .feature-media img {
  transform: scale(1.025);
}

.feature-kicker {
  margin-bottom: 11px;
  color: var(--plum);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.feature-item strong {
  margin-bottom: 10px;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.05;
}

.feature-item > span:last-child {
  max-width: 345px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.newsletter-section {
  padding: 105px 0 109px;
  background: var(--rose);
}

.newsletter-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(400px, 0.92fr);
  gap: clamp(70px, 10vw, 150px);
  align-items: end;
}

.newsletter-heading .eyebrow {
  color: var(--ink);
}

.newsletter-heading h2 {
  max-width: 690px;
  margin-bottom: 0;
  font-size: clamp(56px, 6vw, 87px);
}

.newsletter-copy > p {
  max-width: 500px;
  margin-bottom: 16px;
  line-height: 1.65;
}

.newsletter-copy > p:last-of-type {
  margin-bottom: 30px;
}

.newsletter-form {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  border-bottom: 1px solid var(--ink);
}

.newsletter-form:focus-within {
  border-bottom-color: var(--plum);
  box-shadow: 0 1px 0 var(--plum);
}

.newsletter-form label {
  min-width: 0;
}

.newsletter-form input {
  width: 100%;
  height: 52px;
  padding: 0 16px 0 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
}

.newsletter-form input::placeholder {
  color: rgba(26, 21, 24, 0.7);
}

.newsletter-form button {
  height: 52px;
  padding: 0 3px 0 24px;
  color: var(--ink);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

.newsletter-form button::after {
  margin-left: 9px;
  content: "↗";
}

.form-note {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  margin: 0;
  font-size: 12px;
}

.contact-section {
  padding: 124px 0 116px;
  background: var(--sage);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(520px, 1.16fr);
  gap: clamp(80px, 11vw, 170px);
  align-items: start;
}

.contact-heading .eyebrow {
  color: var(--ink);
}

.contact-heading h2 {
  margin-bottom: 39px;
  font-size: clamp(58px, 6vw, 90px);
}

.locations {
  border-top: 1px solid var(--line);
}

.locations article {
  padding: 28px 0 30px;
  border-bottom: 1px solid var(--line);
}

.locations article > p {
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.locations h3 {
  margin-bottom: 7px;
  font-size: 34px;
  line-height: 1.08;
}

.locations span {
  color: rgba(26, 21, 24, 0.68);
  font-size: 14px;
}

@media (min-width: 1280px) {
  .newsletter-layout {
    grid-template-columns: minmax(0, 0.84fr) minmax(520px, 1.16fr);
    gap: clamp(80px, 11vw, 170px);
  }
}

.site-footer {
  min-height: 500px;
  padding: 66px var(--side-space) 30px;
  color: rgba(255, 253, 249, 0.82);
  background: #171116;
}

.footer-inner {
  width: min(100%, var(--max-width));
  margin-inline: auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 0.85fr 1fr;
  gap: clamp(70px, 9vw, 145px);
  align-items: start;
  padding-bottom: 45px;
  border-bottom: 1px solid rgba(211, 160, 170, 0.58);
}

.footer-brand {
  grid-column: 1 / span 2;
  display: flex;
  flex-direction: column;
}

.footer-logo {
  width: 315px;
  max-width: 100%;
  height: auto;
  display: block;
  filter: grayscale(1) brightness(0) invert(1);
  opacity: 0.94;
}

.footer-brand > span {
  color: var(--porcelain);
  font-family: var(--serif);
  font-size: 52px;
  line-height: 0.95;
  text-transform: uppercase;
}

.footer-brand small {
  margin-top: 13px;
  color: var(--rose);
  font-size: 11px;
  text-transform: uppercase;
}

.footer-invitation {
  grid-column: 3;
  justify-self: start;
  min-width: 0;
}

.footer-invitation p {
  margin-bottom: 13px;
  color: var(--porcelain);
  font-family: var(--serif);
  font-size: 38px;
  line-height: 1;
}

.footer-invitation a,
.footer-contact a {
  display: inline-flex;
  width: fit-content;
  padding-bottom: 5px;
  color: var(--rose);
  font-size: 17px;
  border-bottom: 1px solid currentColor;
}

.footer-invitation a::after,
.footer-contact a::after {
  margin-left: 8px;
  content: "↗";
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 0.85fr 1fr;
  gap: clamp(70px, 9vw, 145px);
  padding: 37px 0 42px;
}

.footer-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  font-size: 13px;
  line-height: 1.55;
}

.footer-group > p {
  margin-bottom: 14px;
  color: var(--rose);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.footer-contact > span {
  max-width: 310px;
  margin-bottom: 18px;
  color: rgba(255, 253, 249, 0.74);
}

.footer-contact a {
  font-size: 14px;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--rose);
}

.footer-social {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-top: 18px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--porcelain);
  border: 1px solid rgba(255, 253, 249, 0.42);
  border-radius: 50%;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.footer-social a::after {
  display: none;
  content: none;
}

.footer-social svg {
  width: 16px;
  height: 16px;
  display: block;
  fill: currentColor;
}

.site-footer .footer-social a:hover,
.site-footer .footer-social a:focus-visible {
  color: #171116;
  background: var(--rose);
  border-color: var(--rose);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-top: 21px;
  border-top: 1px solid rgba(211, 160, 170, 0.42);
  font-size: 11px;
}

.mobile-contact-bar {
  display: none;
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 700ms cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

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

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

@media (max-width: 1100px) {
  html {
    scroll-padding-top: 92px;
  }

  :root {
    --side-space: 32px;
  }

  .site-header {
    min-height: 72px;
    padding: 12px 30px 11px;
  }

  .site-header::after {
    right: 30px;
    left: 30px;
  }

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

  .brand-role {
    font-size: 8px;
  }

  .brand-logo {
    width: 180px;
  }

  .site-nav {
    gap: 25px;
    font-size: 13px;
  }

  .site-nav .nav-contact {
    margin-left: 1px;
    padding-left: 24px;
  }

  .site-nav .nav-contact::after {
    left: 24px;
  }

  .hero-inner {
    min-height: 517px;
    padding-left: clamp(52px, 7.3vw, 74px);
  }

  .hero-copy {
    width: 53%;
    max-width: 490px;
    padding: 124px 12px 54px 0;
  }

  .hero-copy .eyebrow {
    margin-bottom: 16px;
    font-size: 9px;
  }

  .hero h1 {
    max-width: 470px;
    margin-bottom: 19px;
    font-size: clamp(44px, 5.1vw, 52px);
  }

  .hero-lead {
    max-width: 325px;
    margin-bottom: 26px;
    font-size: 13px;
    line-height: 1.6;
  }

  .hero-actions {
    gap: 28px;
  }

  .hero-actions .button {
    min-height: 42px;
    padding: 11px 18px;
    font-size: 10px;
  }

  .hero-actions .text-link {
    min-height: 42px;
    padding: 11px 18px;
    font-size: 10px;
  }

  .hero-portrait {
    top: 0;
    right: clamp(48px, 6vw, 64px);
    width: 390px;
    height: 517px;
  }

  .hero-portrait::after {
    display: none;
  }

  .hero-portrait img {
    height: 565px;
  }

  .hero-portrait--photo img {
    height: 640px;
  }

  .hero-botanical {
    right: 0;
    width: 180px;
    height: 300px;
  }

  .approach-section {
    padding: 22px 0 8px;
  }

  .approach-section .section-shell {
    width: min(calc(100% - 138px), 900px);
  }

  .approach-heading .eyebrow {
    width: 122px;
    margin-bottom: 54px;
    padding-bottom: 6px;
    font-size: 8px;
  }

  .approach-heading h2 {
    margin-bottom: 20px;
    font-size: clamp(32px, 4.1vw, 42px);
  }

  .approach-heading > p:last-child {
    max-width: 355px;
    font-size: 12px;
  }

  .principles-list {
    margin: 40px 0 0;
  }

  .principle {
    padding: 0 25px 2px;
  }

  .principle-art {
    height: 120px;
    margin-bottom: 20px;
  }

  .principle h3 {
    font-size: 24px;
  }

  .principle p {
    font-size: 11px;
    line-height: 1.55;
  }

  .approach-section .section-link {
    right: 69px;
    bottom: 8px;
    font-size: 9px;
  }
}

@media (min-width: 761px) and (max-width: 900px) {
  .approach-section {
    padding: 48px 0 72px;
  }

  .approach-section .section-shell {
    width: min(calc(100% - 96px), 760px);
  }

  .approach-heading h2 {
    font-size: 42px;
  }

  .approach-heading > p:last-child {
    max-width: 490px;
    font-size: 15px;
    line-height: 1.65;
  }

  .principles-list {
    margin-top: 56px;
    grid-template-columns: 1fr;
  }

  .principle,
  .principle:first-child {
    display: grid;
    grid-template-columns: minmax(220px, 0.82fr) minmax(0, 1.18fr);
    gap: 48px;
    align-items: center;
    padding: 42px 0;
  }

  .principle + .principle {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .principle-art {
    width: 100%;
    height: 220px;
    margin: 0;
  }

  .principle h3 {
    margin-bottom: 16px;
    font-size: 34px;
  }

  .principle p {
    max-width: 380px;
    font-size: 15px;
    line-height: 1.65;
  }

  .approach-section .section-link {
    position: relative;
    right: auto;
    bottom: auto;
    display: flex;
    margin: 34px 0 0 auto;
    font-size: 13px;
  }
}

@media (min-width: 761px) and (max-width: 1100px) and (max-height: 600px) and (orientation: landscape) {
  .hero-inner {
    min-height: 430px;
  }

  .hero-copy {
    padding-bottom: 18px;
  }

  .hero-portrait {
    height: 430px;
  }

  .hero-portrait img {
    height: 489px;
  }

  .hero-botanical {
    height: 255px;
  }
}

@media (min-width: 951px) {
  .site-nav { white-space: nowrap; }
  .site-header .brand { flex-shrink: 0; }
}

@media (min-width: 1101px) and (max-width: 1400px) {
  .site-header { gap: 24px; }
  .site-header .brand-logo { width: 220px; }
  .site-nav { gap: 20px; font-size: 14px; }
}

@media (min-width: 951px) and (max-width: 1100px) {
  .site-header { gap: 24px; }
  .site-nav { gap: 16px; }
}

@media (max-width: 950px) {
  .nav-toggle { display: block; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .site-nav { position: absolute; top: 100%; right: 0; left: 0; display: none; flex-direction: column; align-items: flex-start; gap: 0; padding: 15px 28px 24px; background: var(--porcelain); border-bottom: 1px solid var(--line); font-size: 20px; max-height: calc(100dvh - 120px); overflow-y: auto; }
  .site-nav.is-open { display: flex; }
  .site-nav a { width: 100%; padding: 11px 0; }
  .site-nav .nav-item, .site-nav .nav-item-main { width: 100%; }
  .site-nav .nav-item-main > a { flex: 1; }
  .site-nav .submenu-toggle { width: 44px; height: 44px; }
  .site-nav .submenu { position: static; min-width: 0; max-height: none; overflow: visible; display: none; padding: 0 0 10px 18px; visibility: visible; opacity: 1; background: transparent; border: 0; border-left: 1px solid var(--line); box-shadow: none; transform: none; transition: none; }
  .site-nav .nav-item--submenu.is-open .submenu { display: block; }
  .site-nav .submenu a { padding: 10px 0; font-size: 17px; }
  .site-nav .nav-contact { margin: 5px 0 0; padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }
  .site-nav .nav-contact::after { left: 0; }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 104px;
  }

  .help-topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .help-topic-card span {
    font-size: 16px;
  }

  :root {
    --side-space: 28px;
  }

  .site-header {
    min-height: 84px;
  }

  .site-header::after {
    inset-inline: 0;
  }

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

  .site-header .brand-logo {
    width: 172px;
  }

  .site-header .brand-role {
    position: static;
    width: 91.8%;
    margin-top: -3px;
  }

  .section-shell {
    width: min(calc(100% - 56px), var(--max-width));
  }

  .hero-inner {
    min-height: 640px;
    padding-left: 28px;
    grid-template-columns: minmax(0, 1.05fr) minmax(310px, 0.95fr);
  }

  .hero-copy {
    padding: 68px 12px 72px 0;
  }

  .hero h1 {
    font-size: clamp(50px, 6.8vw, 62px);
  }

  .hero-lead {
    font-size: 16px;
  }

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

  .hero-portrait {
    min-height: 550px;
  }

  .hero-portrait img {
    width: 112%;
    max-width: none;
    height: 590px;
  }

  .hero-portrait--photo img {
    width: 100%;
    height: 680px;
  }

  .approach-section,
  .services-section,
  .help-section,
  .feature-section,
  .contact-section {
    padding-top: 96px;
    padding-bottom: 96px;
  }

  .section-heading h2,
  .help-heading h2,
  .contact-heading h2 {
    font-size: clamp(50px, 7.4vw, 68px);
  }

  .approach-heading {
    max-width: 700px;
  }

  .approach-heading .eyebrow {
    width: 190px;
    font-size: 11px;
  }

  .approach-heading > p:last-child {
    max-width: 480px;
    font-size: 14px;
    line-height: 1.6;
  }

  .approach-section .section-link {
    font-size: 13px;
  }

  .principles-list {
    margin-top: 65px;
    grid-template-columns: 1fr;
  }

  .principle,
  .principle:first-child {
    display: grid;
    grid-template-columns: 145px 1fr;
    gap: 34px;
    align-items: center;
    padding: 35px 0;
  }

  .principle + .principle {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .principle-art {
    width: clamp(190px, 58vw, 240px);
    height: clamp(190px, 58vw, 240px);
    margin: 0 auto;
  }

  .principle h3 {
    font-size: 28px;
  }

  .principle p {
    max-width: 480px;
    font-size: 14px;
    line-height: 1.6;
  }

  .service-row {
    min-height: 340px;
    gap: 45px;
    padding: 45px 0;
  }

  .service-media {
    height: 285px;
  }

  .service-copy h3 {
    font-size: clamp(37px, 5vw, 49px);
  }

  .service-row-reverse .service-copy {
    padding-left: 0;
  }

  .help-layout {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .help-topic-grid {
    gap: 18px 14px;
  }

  .help-heading {
    max-width: 690px;
  }

  .topic-list {
    max-width: none;
  }

  .feature-grid {
    gap: 18px;
  }

  .feature-media {
    height: 280px;
  }

  .feature-item strong {
    font-size: 28px;
  }

  .newsletter-section {
    padding: 85px 0 92px;
  }

  .newsletter-layout {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .newsletter-heading h2 {
    max-width: 700px;
    font-size: clamp(54px, 8vw, 72px);
  }

  .newsletter-copy {
    max-width: 610px;
  }

  .contact-layout {
    grid-template-columns: minmax(0, 0.85fr) minmax(390px, 1.15fr);
    gap: 65px;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
  }

  .footer-meta {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
}

/* Il progetto mobile definitivo verra sviluppato nella fase successiva. */
@media (max-width: 760px) {
  :root {
    --side-space: 20px;
  }

  body {
    padding-bottom: 35px;
  }

  .section-shell {
    width: calc(100% - 40px);
  }

  .hero-inner {
    min-height: auto;
    padding: 0 20px;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    width: 100%;
    padding: 60px 0 28px;
  }

  .hero h1 {
    font-size: 46px;
    line-height: 1;
  }

  .hero-actions {
    width: fit-content;
    align-items: stretch;
  }

  .hero-actions .button,
  .hero-actions .text-link {
    width: auto;
    font-size: 14px;
  }

  .hero-actions .button {
    min-height: 52px;
    padding: 14px 24px;
  }

  .hero-actions .text-link {
    min-height: 52px;
    padding: 14px 24px;
  }

  .hero-portrait {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    height: 430px;
    min-height: 430px;
  }

  .hero-portrait img {
    width: 100%;
    height: 440px;
  }

  .hero-portrait--photo img {
    height: 540px;
  }

  .hero-botanical {
    display: none;
  }

  .mobile-contact-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    height: 35px;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    color: var(--porcelain);
    background: var(--ink);
    border-top: 1px solid rgba(255, 253, 249, 0.18);
  }

  .mobile-contact-actions {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 4px;
    padding-left: 8px;
    border-right: 1px solid rgba(211, 160, 170, 0.4);
  }

  .mobile-contact-actions a {
    position: relative;
    width: 36px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rose);
  }

  .mobile-contact-actions a + a::before {
    position: absolute;
    top: 9px;
    bottom: 9px;
    left: -2px;
    width: 1px;
    background: rgba(211, 160, 170, 0.28);
    content: "";
  }

  .mobile-contact-actions svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-contact-actions .mobile-icon-accent {
    fill: currentColor;
    stroke: none;
  }

  .mobile-contact-cta {
    min-width: 112px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border-left: 1px solid rgba(255, 253, 249, 0.18);
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
  }

  .mobile-contact-bar a:hover,
  .mobile-contact-bar a:focus-visible {
    color: var(--rose);
  }

  .mobile-contact-actions a:hover,
  .mobile-contact-actions a:focus-visible {
    color: var(--porcelain);
  }

  .approach-section .section-shell {
    width: calc(100% - 40px);
  }

  .principle,
  .principle:first-child {
    grid-template-columns: 1fr;
  }

  .service-row,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .service-row-reverse .service-media,
  .service-row-reverse .service-copy {
    order: initial;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-meta {
    grid-column: auto;
  }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .site-footer {
    min-height: 460px;
    padding-top: 55px;
  }

  .footer-top {
    grid-template-columns: 1fr 0.85fr 1fr;
    gap: 50px;
  }

  .footer-brand > span {
    font-size: 44px;
  }

  .footer-logo {
    width: 280px;
  }

  .footer-invitation p {
    font-size: 33px;
  }

  .footer-content {
    gap: 50px;
  }
}

@media (max-width: 760px) {
  .site-footer {
    min-height: 0;
    padding: 52px 20px 24px;
  }

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

  .footer-brand,
  .footer-invitation {
    grid-column: 1;
  }

  .footer-logo {
    width: min(300px, 100%);
  }

  .footer-brand > span {
    font-size: 42px;
  }

  .footer-invitation {
    min-width: 0;
    justify-self: start;
  }

  .footer-invitation p {
    font-size: 31px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 34px 0 38px;
  }

  .footer-group {
    font-size: 14px;
  }

  .footer-contact > span {
    max-width: 400px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }
}

.hero-portrait--cutout {
  top: auto;
  right: clamp(8px, 2vw, 30px);
  bottom: 0;
  width: clamp(500px, 37vw, 580px);
  height: 760px;
  overflow: visible;
  pointer-events: none;
}

.hero-portrait--cutout img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center bottom;
  filter: saturate(0.9) contrast(0.98);
}

.hero-portrait--cutout::after {
  display: none;
}

@media (min-width: 761px) and (max-width: 1100px) {
  .hero-portrait--cutout {
    top: auto;
    right: 8px;
    bottom: 0;
    width: 400px;
    height: 517px;
  }

  .hero-portrait--cutout img {
    width: 100%;
    height: 100%;
  }
}

@media (min-width: 761px) and (max-width: 1100px) and (max-height: 600px) and (orientation: landscape) {
  .hero-portrait--cutout {
    width: 340px;
    height: 430px;
  }
}

@media (max-width: 760px) {
  .hero-portrait--cutout {
    top: auto;
    right: auto;
    bottom: 0;
    width: calc(100% + 20px);
    height: 500px;
    min-height: 500px;
    margin-left: -10px;
  }

  .hero-portrait--cutout img {
    width: 100%;
    height: 100%;
  }
}
