@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&display=swap');

:root {
  --profile-serif: 'Cormorant Garamond', Georgia, serif;
}

.public-profile {
  background: #f5f3ef;
}

.profile-preview-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  min-height: 48px;
  padding: 10px 24px;
  border-bottom: 1px solid rgba(196, 154, 40, .35);
  background: #211a10;
  color: rgba(245, 239, 230, .72);
  font-size: 12px;
}

.profile-preview-banner[hidden] {
  display: none;
}

.profile-preview-banner strong {
  color: #ddb64e;
  font: 650 9px/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.profile-preview-banner a {
  color: #f2ede4;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.profile-cover {
  position: relative;
  min-height: calc(100svh - 84px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  background: #100b07 url('../img/umberto-ritratto.jpg') center 38% / cover no-repeat;
  color: #f5efe6;
}

.profile-cover-shade {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 4, 3, .94) 0%, rgba(7, 5, 3, .78) 34%, rgba(7, 5, 3, .29) 61%, rgba(7, 5, 3, .08) 100%),
    linear-gradient(0deg, rgba(6, 4, 3, .72) 0%, transparent 38%, rgba(6, 4, 3, .15) 100%);
}

.profile-cover-content {
  width: min(760px, 60vw);
  padding: 68px clamp(28px, 5vw, 72px) 70px;
}

.profile-identity-line {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 25px;
}

.profile-identity-line img {
  width: 55px;
  height: 55px;
  object-fit: cover;
  border: 1px solid rgba(196, 154, 40, .65);
  border-radius: 50%;
}

.profile-identity-line p,
.profile-identity-line strong,
.profile-identity-line span {
  display: block;
  margin: 0;
}

.profile-identity-line strong {
  color: #d6aa37;
  font: 600 10px/1.4 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.profile-identity-line span {
  margin-top: 5px;
  color: rgba(245, 239, 230, .55);
  font: 500 9px/1.3 var(--mono);
  letter-spacing: .10em;
  text-transform: uppercase;
}

.profile-cover h1 {
  max-width: 760px;
  margin: 0;
  font: 500 clamp(62px, 7.4vw, 105px)/.86 var(--profile-serif);
  letter-spacing: -.045em;
}

.profile-verification {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 27px;
  padding: 9px 13px 9px 10px;
  border: 1px solid rgba(196, 154, 40, .55);
  background: rgba(196, 154, 40, .10);
}

.verification-seal {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #c49a28;
  color: #17120d;
  font: 700 12px/1 var(--sans);
}

.profile-verification strong,
.profile-verification small {
  display: block;
}

.profile-verification strong {
  color: #e0bb59;
  font: 600 9px/1.3 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.profile-verification small {
  margin-top: 3px;
  color: rgba(245, 239, 230, .47);
  font-size: 9px;
}

.profile-cover-lead {
  max-width: 620px;
  margin: 23px 0 0;
  color: rgba(245, 239, 230, .76);
  font-family: Georgia, serif;
  font-size: clamp(17px, 1.55vw, 21px);
  line-height: 1.6;
}

.profile-cover-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 9px;
}

.profile-cover-tags-label {
  margin: 21px 0 0;
  color: rgba(245, 239, 230, .52);
  font: 600 8px/1.35 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.profile-path-label {
  margin-top: 15px;
}

.profile-cover-sectors {
  max-width: 690px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 9px;
}

.profile-certified-sector-chip {
  --sector-color: #c49a28;
  min-height: 34px;
  display: inline-grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border: 1px solid color-mix(in srgb, var(--sector-color) 52%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--sector-color) 11%, rgba(12, 9, 7, .58));
  color: rgba(245, 239, 230, .88);
}

.profile-certified-sector-chip[data-mic-sector='02'],
.profile-certified-sector-card[data-mic-sector='02'] { --sector-color: #c87858; }

.profile-certified-sector-chip[data-mic-sector='03'],
.profile-certified-sector-card[data-mic-sector='03'] { --sector-color: #c94743; }

.profile-certified-sector-chip[data-mic-sector='04'],
.profile-certified-sector-card[data-mic-sector='04'] { --sector-color: #4d9970; }

.profile-certified-sector-chip b {
  color: var(--sector-color);
  font: 750 11px/1 var(--mono);
  letter-spacing: .04em;
}

.profile-certified-sector-chip span {
  color: inherit;
  font-size: 10px;
  font-weight: 620;
  line-height: 1.35;
}

.profile-certified-sector-chip:hover {
  border-color: var(--sector-color);
  background: color-mix(in srgb, var(--sector-color) 18%, rgba(12, 9, 7, .64));
  color: #fff;
}

.public-profile .taxonomy-pill[data-taxonomy='documented'] {
  --pill: #6e655a;
}

.profile-cover-tags .taxonomy-pill {
  min-height: 30px;
  border-color: rgba(228, 219, 205, .30);
  background: rgba(20, 17, 13, .48);
  color: rgba(245, 239, 230, .82);
  box-shadow: none;
  font-size: 9px;
  text-shadow: none;
}

.profile-cover-tags .taxonomy-pill::before {
  background: #c9a33d;
  box-shadow: none;
}

.profile-journey-tag {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid rgba(228, 219, 205, .30);
  border-radius: 999px;
  background: rgba(20, 17, 13, .48);
  color: rgba(245, 239, 230, .82);
  font: 600 9px/1 var(--sans);
}

.profile-journey-tag::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c9a33d;
}

.profile-journey-tag:hover {
  border-color: rgba(213, 170, 57, .70);
  color: #fff;
}

.profile-civil-protection-callout {
  max-width: 690px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 13px 15px;
  border: 1px solid rgba(80, 190, 125, .72);
  background: linear-gradient(90deg, rgba(19, 88, 55, .48), rgba(16, 58, 40, .32));
  color: #e5f6eb;
}

.profile-civil-protection-callout[hidden] {
  display: none;
}

.profile-civil-protection-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #67c58f;
  color: #123523;
  font: 750 9px/1 var(--mono);
  letter-spacing: .06em;
}

.profile-civil-protection-callout strong,
.profile-civil-protection-callout small {
  display: block;
}

.profile-civil-protection-callout strong {
  color: #9ee2b9;
  font: 650 9px/1.35 var(--mono);
  letter-spacing: .09em;
  text-transform: uppercase;
}

.profile-civil-protection-callout small {
  margin-top: 4px;
  color: rgba(235, 248, 240, .72);
  font-size: 9px;
  line-height: 1.45;
}

.profile-cover-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
}

.profile-cover-actions button {
  min-height: 47px;
  padding: 0 20px;
  border-radius: 2px;
  font: 600 9px/1 var(--mono);
  letter-spacing: .09em;
  text-transform: uppercase;
}

.profile-primary {
  border: 1px solid #c49a28;
  background: #c49a28;
  color: #17120d;
}

.profile-secondary {
  border: 1px solid rgba(255, 255, 255, .37);
  background: rgba(0, 0, 0, .16);
  color: #fff;
}

.profile-follow {
  border: 1px solid rgba(255, 255, 255, .18);
  background: transparent;
  color: rgba(255, 255, 255, .68);
}

.profile-follow.following {
  border-color: rgba(196, 154, 40, .48);
  background: rgba(196, 154, 40, .13);
  color: #dcb552;
}

.profile-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  border-bottom: 1px solid rgba(255, 255, 255, .10);
  background: #191511;
  color: #f3ede4;
}

.profile-facts > div {
  min-height: 93px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px clamp(20px, 3vw, 43px);
  border-right: 1px solid rgba(255, 255, 255, .09);
}

.profile-facts > div:last-child {
  border-right: 0;
}

.profile-facts span,
.profile-facts strong {
  display: block;
}

.profile-facts span {
  color: #a98220;
  font: 600 8px/1.2 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.profile-facts strong {
  margin-top: 7px;
  color: rgba(243, 237, 228, .77);
  font-size: 12px;
  font-weight: 500;
}

.profile-facts small {
  display: block;
  margin-top: 5px;
  color: rgba(243, 237, 228, .46);
  font-size: 9px;
  line-height: 1.35;
}

.profile-facts .profile-mic-sectors {
  display: flex;
  align-items: center;
  gap: 7px;
}

.profile-facts .profile-mic-sectors > span {
  min-width: 31px;
  display: grid;
  place-items: center;
  padding: 6px 7px;
  border: 1px solid rgba(196, 154, 40, .34);
  border-radius: 999px;
  color: #d5aa39;
  font: 650 9px/1 var(--mono);
  letter-spacing: .04em;
}

.profile-local-nav {
  position: sticky;
  z-index: 80;
  top: 84px;
  min-height: 53px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 3vw, 44px);
  padding: 0 22px;
  overflow-x: auto;
  border-bottom: 1px solid #d8d3ca;
  background: rgba(246, 243, 237, .95);
  backdrop-filter: blur(17px);
}

.profile-local-nav a {
  min-height: 53px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  color: #68625b;
  font: 600 9px/1 var(--mono);
  letter-spacing: .09em;
  text-transform: uppercase;
}

.profile-local-nav a:hover {
  color: #8b6914;
}

.profile-layout {
  width: min(1440px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(32px, 4.5vw, 70px);
  margin: 0 auto;
  padding: 65px clamp(24px, 5vw, 72px) 100px;
}

.profile-content {
  min-width: 0;
}

.profile-journey-index {
  scroll-margin-top: 158px;
  display: grid;
  grid-template-columns: minmax(230px, .72fr) minmax(0, 1.28fr);
  gap: clamp(24px, 4vw, 58px);
  margin-bottom: 72px;
  padding: 27px 29px;
  border: 1px solid #d2cbc1;
  background: rgba(255, 255, 255, .34);
}

.profile-journey-index h2 {
  margin: 0;
  color: #181511;
  font: 500 38px/.95 var(--profile-serif);
  letter-spacing: -.025em;
}

.profile-journey-index > div > p:last-child {
  max-width: 36ch;
  margin: 15px 0 0;
  color: #6c655e;
  font-size: 12px;
  line-height: 1.6;
}

.profile-journey-index nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  border-top: 1px solid #d7d1c8;
}

.profile-journey-link {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 10px;
  border-bottom: 1px solid #d7d1c8;
  color: #403a34;
  font-size: 11px;
}

.profile-journey-link:nth-child(odd) {
  border-right: 1px solid #d7d1c8;
}

.profile-journey-link::after {
  content: '→';
  color: #9b7920;
}

.profile-journey-link:hover {
  background: rgba(196, 154, 40, .07);
  color: #17130f;
}

.profile-section {
  scroll-margin-top: 158px;
  padding: 0 0 74px;
  margin-bottom: 72px;
  border-bottom: 1px solid #d7d1c8;
}

.profile-generated-sections {
  display: grid;
}

.profile-generated-content {
  display: grid;
  max-width: 88ch;
  gap: 0;
  margin-top: 30px;
  border-top: 1px solid #d7d1c8;
}

.profile-cv-entry {
  display: grid;
  grid-template-columns: minmax(110px, 150px) minmax(0, 1fr);
  gap: 24px;
  margin: 0;
  padding: 18px 0;
  border-bottom: 1px solid #ddd7ce;
  color: #58524b;
  font-size: 14px;
  line-height: 1.72;
}

.profile-cv-entry-period {
  position: relative;
  align-self: stretch;
  padding-right: 22px;
  border-right: 1px solid #d1c8bc;
  color: #8b6914;
  font: 650 9px/1.5 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.profile-cv-entry-period::after {
  content: '';
  position: absolute;
  top: 3px;
  right: -4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c49a28;
  box-shadow: 0 0 0 4px #f5f3ef;
}

.profile-cv-entry-period-empty::after {
  background: #b9b0a5;
}

.profile-section:last-child {
  margin-bottom: 0;
}

.profile-kicker {
  margin: 0 0 13px;
  color: #8b6914;
  font: 600 9px/1.4 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
}

.profile-section h2 {
  max-width: 820px;
  margin: 0;
  color: #181511;
  font: 500 clamp(42px, 5vw, 68px)/.94 var(--profile-serif);
  letter-spacing: -.035em;
}

.about-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(26px, 4vw, 54px);
  margin-top: 35px;
}

.about-columns[hidden],
.full-bio[hidden] {
  display: none;
}

.about-columns p,
.full-bio p,
.section-intro {
  margin: 0;
  color: #58524b;
  font-size: 15px;
  line-height: 1.75;
}

.text-action {
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid #aaa297;
  background: transparent;
  color: #2c2823;
  font: 600 9px/1 var(--mono);
  letter-spacing: .09em;
  text-transform: uppercase;
}

.profile-about > .text-action {
  margin-top: 27px;
}

.full-bio {
  margin-top: 24px;
  padding: 24px;
  border-left: 3px solid #c49a28;
  background: #fbfaf7;
}

.profile-personal-bio {
  max-width: 78ch;
  margin-top: 31px;
  padding: 0 0 0 25px;
  background: transparent;
}

.profile-personal-bio p {
  color: #4f4942;
  font: 400 clamp(19px, 2vw, 25px)/1.65 var(--profile-serif);
}

.profile-work-groups {
  margin-top: 31px;
  border-top: 1px solid #cfc8be;
}

.profile-work-group {
  border-bottom: 1px solid #cfc8be;
}

.profile-work-group summary {
  display: grid;
  grid-template-columns: 106px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 20px;
  min-height: 88px;
  padding: 17px 8px;
  cursor: pointer;
  list-style: none;
}

.profile-work-group summary::-webkit-details-marker {
  display: none;
}

.profile-work-group summary:hover {
  background: rgba(196, 154, 40, .055);
}

.profile-work-group-code {
  color: #8b6914;
  font: 650 9px/1.4 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.profile-work-group summary strong,
.profile-work-group summary small {
  display: block;
}

.profile-work-group summary strong {
  color: #26211c;
  font-size: 16px;
  line-height: 1.35;
}

.profile-work-group summary small {
  margin-top: 5px;
  color: #817a72;
  font-size: 10px;
}

.profile-work-group-toggle {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid #c9c1b7;
  border-radius: 50%;
  color: #8b6914;
  font-size: 17px;
  transition: transform .18s ease;
}

.profile-work-group[open] .profile-work-group-toggle {
  transform: rotate(45deg);
}

.profile-work-group > .profile-generated-content {
  margin: 0 8px;
  padding-bottom: 22px;
}

.profile-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 31px;
}

.profile-demo-note {
  max-width: 220px;
  color: #8a837b;
  font: 500 8px/1.5 var(--mono);
  letter-spacing: .07em;
  text-align: right;
  text-transform: uppercase;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  grid-template-rows: repeat(2, 265px);
  gap: 10px;
}

.profile-workspace-gallery {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  grid-template-rows: 360px;
}

.profile-workspace-gallery .portfolio-item {
  min-height: 360px;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  min-height: 0;
  background: #17120e;
  color: #fff;
}

.portfolio-tall {
  grid-row: 1 / span 2;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.portfolio-tall img {
  object-position: center 25%;
}

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

.portfolio-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(4, 3, 2, .82), rgba(4, 3, 2, .06) 60%);
}

.portfolio-caption {
  position: absolute;
  z-index: 1;
  left: 22px;
  right: 22px;
  bottom: 19px;
}

.portfolio-caption span {
  color: #d8ad3c;
  font: 600 8px/1.2 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.portfolio-caption h3 {
  margin: 4px 0 2px;
  font-size: 18px;
  font-weight: 600;
}

.portfolio-caption p {
  margin: 0;
  color: rgba(255, 255, 255, .61);
  font-size: 10px;
}

.project-list {
  border-top: 1px solid #cec7bd;
}

.project-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) auto;
  gap: 23px;
  align-items: start;
  padding: 25px 0;
  border-bottom: 1px solid #d7d1c8;
}

.project-row time {
  color: #9b7920;
  font: 500 24px/1 var(--profile-serif);
}

.project-row > div > span {
  color: #817a72;
  font: 500 8px/1.4 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.project-row h3 {
  margin: 6px 0 4px;
  font-size: 18px;
}

.project-row p {
  margin: 0;
  color: #68615a;
  font-size: 12px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 13px;
}

.project-tags .taxonomy-pill {
  min-height: 27px;
  padding: 0 9px 0 8px;
  font-size: 8px;
}

.project-row > button {
  padding: 7px 0;
  border: 0;
  border-bottom: 1px solid #aaa297;
  background: transparent;
  font: 600 8px/1 var(--mono);
  letter-spacing: .07em;
  text-transform: uppercase;
}

.section-intro {
  max-width: 760px;
  margin-top: 24px;
}

.competence-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.profile-certified-sector-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 31px;
}

.profile-certified-sector-card {
  --sector-color: #9b7920;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid color-mix(in srgb, var(--sector-color) 48%, #d3ccc2);
  background: color-mix(in srgb, var(--sector-color) 5%, #fbfaf7);
  color: #2e2924;
}

.profile-certified-sector-card > span {
  color: #756e66;
  font: 650 8px/1.3 var(--mono);
  letter-spacing: .10em;
  text-transform: uppercase;
}

.profile-certified-sector-card b {
  margin-top: 23px;
  color: var(--sector-color);
  font: 650 29px/1 var(--profile-serif);
}

.profile-certified-sector-card strong {
  margin-top: 9px;
  color: #28231e;
  font-size: 14px;
  line-height: 1.42;
}

.profile-certified-sector-card small {
  margin-top: auto;
  padding-top: 18px;
  color: #776f67;
  font-size: 9px;
  line-height: 1.4;
}

a.profile-certified-sector-card:hover {
  border-color: var(--sector-color);
  background: color-mix(in srgb, var(--sector-color) 9%, #fbfaf7);
}

.profile-documented-experience {
  margin-top: 57px;
  padding-top: 43px;
  border-top: 1px solid #d7d1c8;
}

.profile-documented-experience h3 {
  max-width: 780px;
  margin: 0;
  color: #181511;
  font: 500 clamp(32px, 4vw, 48px)/1 var(--profile-serif);
  letter-spacing: -.025em;
}

.competence-cloud .taxonomy-pill {
  min-height: 36px;
  padding: 0 15px 0 11px;
  font-size: 11px;
}

.career-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 35px;
  border-top: 1px solid #cfc8be;
  border-left: 1px solid #cfc8be;
}

.career-grid article {
  min-height: 165px;
  padding: 25px;
  border-right: 1px solid #cfc8be;
  border-bottom: 1px solid #cfc8be;
  background: rgba(255, 255, 255, .32);
}

.career-grid span {
  color: #8b6914;
  font: 600 8px/1.3 var(--mono);
  letter-spacing: .10em;
  text-transform: uppercase;
}

.career-grid h3 {
  margin: 20px 0 7px;
  font-size: 17px;
}

.career-grid p {
  margin: 0;
  color: #69625b;
  font-size: 12px;
  line-height: 1.55;
}

.profile-sidebar {
  align-self: start;
  position: sticky;
  top: 162px;
  display: grid;
  gap: 13px;
}

.availability-card {
  /* Sotto l'ultimo pulsante ci vuole lo stesso respiro dei fianchi: 12px
     contro 22px si legge come una scheda tagliata a meta'. */
  padding: 25px 22px 22px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0, rgba(196, 154, 40, .18), transparent 31%),
    #201913;
  color: #f5efe6;
  box-shadow: 0 20px 50px rgba(38, 28, 19, .12);
}

.availability-card .profile-kicker {
  color: #d2a639;
}

.availability-card h2 {
  margin: 0;
  font-size: 25px;
  line-height: 1.05;
}

.availability-card > p:not(.profile-kicker) {
  margin: 12px 0 21px;
  color: rgba(245, 239, 230, .58);
  font-size: 12px;
  line-height: 1.55;
}

.quick-calendar {
  margin: 0 -8px;
  padding: 14px 8px 13px;
  border-top: 1px solid rgba(255, 255, 255, .09);
  border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.quick-calendar-head,
.day-availability-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.quick-calendar-head > div:first-child span,
.quick-calendar-head > div:first-child strong {
  display: block;
}

.quick-calendar-head > div:first-child span {
  color: #d2a639;
  font: 600 8px/1 var(--mono);
  letter-spacing: .10em;
  text-transform: uppercase;
}

.quick-calendar-head > div:first-child strong {
  margin-top: 5px;
  color: rgba(255, 255, 255, .82);
  font-size: 11px;
  font-weight: 600;
}

.calendar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.calendar-nav button {
  min-width: 27px;
  height: 27px;
  padding: 0 7px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
  color: rgba(255, 255, 255, .70);
  font: 600 9px/1 var(--mono);
}

.calendar-nav button:hover {
  border-color: rgba(210, 166, 57, .52);
  color: #f4ca5c;
}

.calendar-nav #calendarToday {
  width: auto;
  font-size: 7px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.week-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  margin-top: 14px;
}

.week-day {
  position: relative;
  min-width: 0;
  height: 48px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 10px;
  background: rgba(255, 255, 255, .035);
  color: rgba(255, 255, 255, .46);
}

.week-day span,
.week-day strong {
  display: block;
}

.week-day span {
  font: 600 6px/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.week-day strong {
  color: rgba(255, 255, 255, .76);
  font-size: 12px;
  line-height: 1;
}

.week-day::after {
  content: "";
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: transparent;
}

.week-day.available::after {
  background: #70ad83;
  box-shadow: 0 0 0 2px rgba(112, 173, 131, .12);
}

.week-day.today {
  border-color: rgba(210, 166, 57, .58);
}

.week-day.selected {
  border-color: #d2a639;
  background: #d2a639;
  color: #251c0f;
  box-shadow: 0 7px 18px rgba(0, 0, 0, .20);
}

.week-day.selected strong {
  color: #251c0f;
}

.week-day.selected::after {
  background: #251c0f;
  box-shadow: none;
}

.day-availability {
  margin-top: 14px;
}

.day-availability-head strong {
  font-size: 10px;
}

.day-availability-head small {
  color: rgba(255, 255, 255, .40);
  font-size: 8px;
}

.quick-slots {
  display: grid;
  gap: 6px;
  margin-top: 9px;
}

.quick-slot {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 9px;
  background: rgba(255, 255, 255, .045);
  color: #fff;
  text-align: left;
}

.quick-slot strong {
  color: #f0c95e;
  font: 600 10px/1 var(--mono);
}

.quick-slot span {
  overflow: hidden;
  color: rgba(255, 255, 255, .58);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-slot::after {
  content: "→";
  color: rgba(255, 255, 255, .35);
  font-size: 11px;
}

.quick-slot:hover {
  border-color: rgba(210, 166, 57, .45);
  background: rgba(210, 166, 57, .08);
}

.quick-slots-empty {
  margin: 0;
  padding: 10px;
  border: 1px dashed rgba(255, 255, 255, .10);
  border-radius: 9px;
  color: rgba(255, 255, 255, .40);
  font-size: 9px;
  line-height: 1.45;
}

.quick-calendar .calendar-demo-note {
  margin: 11px 0 0;
  color: rgba(255, 255, 255, .31);
  font-size: 8px;
  line-height: 1.45;
}

.availability-card > .booking-types-label {
  margin: 17px 0 7px;
  color: rgba(255, 255, 255, .48);
  font: 600 7px/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.availability-options {
  margin: 0 -9px;
}

.availability-options button {
  width: 100%;
  min-height: 61px;
  display: grid;
  grid-template-columns: 35px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 9px;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, .09);
  background: transparent;
  color: #fff;
  text-align: left;
}

.availability-options button:hover {
  background: rgba(255, 255, 255, .045);
}

.availability-options button > span:last-child {
  color: rgba(255, 255, 255, .35);
}

.booking-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(196, 154, 40, .19);
  color: #dfb84f;
  font: 600 10px/1 var(--mono);
}

.booking-green {
  background: rgba(45, 107, 74, .25);
  color: #8dc5a0;
}

.booking-blue {
  background: rgba(27, 58, 122, .27);
  color: #9eb3dd;
}

.booking-red {
  background: rgba(139, 26, 26, .25);
  color: #da9898;
}

.availability-options strong,
.availability-options small {
  display: block;
}

.availability-options strong {
  font-size: 12px;
}

.availability-options small {
  margin-top: 2px;
  color: rgba(255, 255, 255, .43);
  font-size: 9px;
}

.profile-contact-card,
.profile-network-card,
.profile-specialist-card {
  padding: 21px;
  border: 1px solid #d6d0c7;
  border-radius: 13px;
  background: #fff;
}

.profile-contact-card {
  display: grid;
  grid-template-columns: 8px 1fr;
  gap: 12px;
}

.online-signal {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: #407d51;
}

.profile-contact-card strong {
  font-size: 12px;
}

.profile-contact-card p,
.profile-network-card p,
.profile-specialist-card > p:not(.profile-kicker) {
  margin: 5px 0 0;
  color: #746d65;
  font-size: 11px;
  line-height: 1.5;
}

.profile-contact-card button {
  grid-column: 2;
  width: fit-content;
  padding: 7px 0;
  border: 0;
  border-bottom: 1px solid #aaa297;
  background: transparent;
  font: 600 8px/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.profile-network-card h2,
.profile-specialist-card h2 {
  margin: 0;
  font: 500 27px/1 var(--profile-serif);
}

.profile-network-card a,
.profile-specialist-card a {
  display: inline-block;
  margin-top: 17px;
  padding-bottom: 4px;
  border-bottom: 1px solid #aaa297;
  font: 600 8px/1 var(--mono);
  letter-spacing: .07em;
  text-transform: uppercase;
}

.profile-specialist-card {
  border-color: #29392f;
  background:
    radial-gradient(circle at 100% 0, rgba(196, 154, 40, .22), transparent 36%),
    #26342b;
  color: #f5f1e9;
}

.profile-specialist-card .profile-kicker {
  color: #e1b845;
}

.profile-specialist-card > p:not(.profile-kicker) {
  color: rgba(255, 255, 255, .58);
}

.specialist-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 17px;
}

.specialist-shortcuts span {
  min-height: 27px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .75);
  font-size: 8px;
}

.profile-specialist-card a {
  border-color: rgba(255, 255, 255, .38);
  color: #fff;
}

.profile-footer {
  min-height: 165px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 38px clamp(24px, 5vw, 72px);
  background: #16110d;
  color: #f3ede4;
}

.profile-footer img {
  height: 38px;
  width: auto;
}

.profile-footer p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, .39);
  font: 500 8px/1.5 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.profile-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.profile-footer a {
  color: rgba(255, 255, 255, .58);
  font: 500 9px/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.profile-dialog {
  width: min(610px, calc(100vw - 28px));
  max-height: calc(100svh - 28px);
  padding: 0;
  border: 0;
  background: transparent;
}

.profile-dialog::backdrop,
.project-dialog::backdrop {
  background: rgba(12, 9, 7, .63);
  backdrop-filter: blur(7px);
}

.profile-dialog-sheet {
  padding: 27px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 35px 90px rgba(0, 0, 0, .30);
}

.profile-dialog-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 23px;
}

.profile-dialog-head h2 {
  margin: 0;
  font: 500 35px/.95 var(--profile-serif);
}

.profile-dialog-head > button,
.project-dialog article > button {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  flex: 0 0 35px;
  padding: 0 0 3px;
  border: 1px solid #d7d1c8;
  border-radius: 50%;
  background: #fff;
  color: #625c55;
  font-size: 22px;
}

.profile-dialog-sheet > label {
  display: grid;
  gap: 7px;
  margin-top: 15px;
}

.profile-dialog-sheet > label > span:first-child,
.profile-dialog-sheet legend {
  color: #847d75;
  font: 500 8px/1 var(--mono);
  letter-spacing: .10em;
  text-transform: uppercase;
}

.profile-dialog-sheet input,
.profile-dialog-sheet textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #cfc8be;
  border-radius: 9px;
  outline: 0;
  background: #fff;
  color: #171512;
  font-size: 13px;
}

.profile-dialog-sheet textarea {
  resize: vertical;
  line-height: 1.55;
}

.profile-dialog-sheet input:focus,
.profile-dialog-sheet textarea:focus {
  border-color: #8b6914;
  box-shadow: 0 0 0 3px rgba(196, 154, 40, .11);
}

.profile-attachment {
  min-height: 67px;
  display: flex !important;
  align-items: center;
  grid-template-columns: none !important;
  gap: 12px !important;
  padding: 11px;
  border: 1px dashed #bdb5aa;
  border-radius: 10px;
  background: #faf8f4;
  cursor: pointer;
}

.profile-attachment input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.profile-attachment > span:first-of-type {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  flex: 0 0 37px;
  border: 1px solid #d6d0c7;
  border-radius: 9px;
  background: #fff;
  color: #8b6914;
  font-size: 20px;
}

.profile-attachment strong,
.profile-attachment small {
  display: block;
}

.profile-attachment strong {
  font-size: 11px;
}

.profile-attachment small {
  margin-top: 3px;
  color: #857e75;
  font-size: 9px;
}

.dialog-note,
.booking-cost-note {
  margin: 13px 0 0;
  color: #817a72;
  font-size: 9px;
  line-height: 1.55;
}

.booking-cost-note {
  color: #74580e;
}

.profile-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 21px;
}

.profile-dialog-actions button {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  font: 600 8px/1 var(--mono);
  letter-spacing: .07em;
  text-transform: uppercase;
}

.dialog-secondary {
  border: 1px solid #cfc8be;
  background: transparent;
}

.dialog-primary {
  border: 1px solid #171512;
  background: #171512;
  color: #fff;
}

.selected-booking-type {
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px;
  border-radius: 10px;
  background: #f1eee8;
}

.selected-booking-type > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #211a14;
  color: #dcb14a;
  font: 600 11px/1 var(--mono);
}

.selected-booking-type small,
.selected-booking-type strong {
  display: block;
}

.selected-booking-type small {
  color: #817a72;
  font: 500 8px/1.2 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.selected-booking-type strong {
  margin-top: 4px;
  font-size: 12px;
}

.selected-booking-type em {
  display: block;
  margin-top: 5px;
  color: #765b13;
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
}

.booking-dialog fieldset {
  display: grid;
  gap: 7px;
  margin: 17px 0 0;
  padding: 0;
  border: 0;
}

.booking-dialog legend {
  margin-bottom: 8px;
}

.booking-dialog fieldset label {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid #d8d2c9;
  border-radius: 9px;
  font-size: 12px;
}

.booking-dialog fieldset input {
  width: auto;
}

.project-dialog {
  width: min(500px, calc(100vw - 28px));
  padding: 0;
  border: 0;
  background: transparent;
}

.project-dialog article {
  position: relative;
  padding: 31px;
  border-radius: 17px;
  background: #fff;
}

.project-dialog article > button {
  position: absolute;
  top: 18px;
  right: 18px;
}

.project-dialog h2 {
  max-width: 380px;
  margin: 0;
  font: 500 38px/.95 var(--profile-serif);
}

.project-dialog article > p:not(.profile-kicker) {
  margin: 18px 0;
  color: #645d56;
  font-size: 13px;
  line-height: 1.65;
}

.project-dialog article > span {
  color: #8b6914;
  font: 600 8px/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .profile-cover-content {
    width: min(730px, 72vw);
  }

  .profile-layout {
    grid-template-columns: 1fr;
  }

  .profile-sidebar {
    position: static;
    grid-row: 1;
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, .92fr);
    grid-template-rows: max-content max-content 1fr;
    align-items: start;
  }

  .availability-card {
    grid-row: 1 / span 3;
  }

  .profile-contact-card {
    grid-column: 2;
    grid-row: 1;
  }

  .profile-network-card {
    position: relative;
    grid-column: 2;
    grid-row: 2;
    min-height: 230px;
    overflow: hidden;
    background:
      radial-gradient(circle at 100% 100%, rgba(196, 154, 40, .10), transparent 42%),
      #fff;
  }

  .profile-network-card::after {
    content: "R";
    position: absolute;
    right: -18px;
    bottom: -60px;
    color: #241b14;
    font: 500 190px/1 var(--profile-serif);
    opacity: .035;
    pointer-events: none;
  }

  .profile-network-card > * {
    position: relative;
    z-index: 1;
  }

  .profile-specialist-card {
    grid-column: 2;
    grid-row: 3;
    min-height: 225px;
  }

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

  .profile-facts > div:nth-child(2n) {
    border-right: 0;
  }

  .profile-journey-index {
    grid-template-columns: 1fr;
  }

  .profile-certified-sector-grid {
    grid-template-columns: 1fr;
  }

  .profile-certified-sector-card {
    min-height: 0;
  }
}

@media (max-width: 800px) {
  .profile-cover {
    min-height: calc(100svh - 68px);
    background-position: 57% center;
  }

  .profile-cover-shade {
    background:
      linear-gradient(0deg, rgba(6, 4, 3, .95) 0%, rgba(6, 4, 3, .79) 42%, rgba(6, 4, 3, .18) 86%),
      linear-gradient(90deg, rgba(6, 4, 3, .55), rgba(6, 4, 3, .04));
  }

  .profile-cover-content {
    width: 100%;
    padding: 80px 19px 34px;
  }

  .profile-identity-line {
    margin-bottom: 19px;
  }

  .profile-identity-line img {
    width: 46px;
    height: 46px;
  }

  .profile-cover h1 {
    font-size: 57px;
  }

  .profile-verification {
    margin-top: 19px;
  }

  .profile-cover-lead {
    font-size: 15px;
    line-height: 1.5;
  }

  .profile-cover-tags {
    gap: 6px;
  }

  .profile-certified-sector-chip {
    width: 100%;
    grid-template-columns: 28px minmax(0, 1fr);
    border-radius: 14px;
    padding: 8px 11px;
  }

  .profile-certified-sector-chip span {
    font-size: 9px;
  }

  .profile-cover-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .profile-cover-actions button {
    padding: 0 10px;
  }

  .profile-follow {
    grid-column: 1 / -1;
  }

  .profile-civil-protection-callout {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 11px;
    padding: 12px;
  }

  .profile-civil-protection-mark {
    width: 36px;
    height: 36px;
  }

  .profile-facts > div {
    min-height: 82px;
    padding: 15px 18px;
  }

  .profile-local-nav {
    top: 68px;
    justify-content: flex-start;
  }

  .profile-layout {
    gap: 42px;
    padding: 45px 15px 70px;
  }

  .profile-journey-index {
    scroll-margin-top: 135px;
    margin-bottom: 52px;
    padding: 22px 18px;
  }

  .profile-journey-index nav {
    grid-template-columns: 1fr;
  }

  .profile-journey-link:nth-child(odd) {
    border-right: 0;
  }

  .profile-sidebar {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .availability-card,
  .profile-contact-card,
  .profile-network-card,
  .profile-specialist-card {
    grid-column: auto;
    grid-row: auto;
  }

  .profile-network-card,
  .profile-specialist-card {
    min-height: 0;
  }

  .profile-section {
    scroll-margin-top: 135px;
    padding-bottom: 53px;
    margin-bottom: 52px;
  }

  .profile-section h2 {
    font-size: 43px;
  }

  .about-columns,
  .career-grid {
    grid-template-columns: 1fr;
  }

  .profile-cv-entry {
    display: block;
    padding: 17px 0;
  }

  .profile-cv-entry-period {
    display: block;
    margin-bottom: 7px;
    padding-right: 0;
    border-right: 0;
  }

  .profile-cv-entry-period::after,
  .profile-cv-entry-period-empty {
    display: none;
  }

  .profile-work-group summary {
    grid-template-columns: 74px minmax(0, 1fr) 28px;
    gap: 12px;
    min-height: 78px;
  }

  .profile-work-group summary strong {
    font-size: 14px;
  }

  .profile-section-head {
    display: block;
  }

  .profile-section-head .text-action,
  .profile-demo-note {
    display: inline-block;
    margin-top: 17px;
    text-align: left;
  }

  .portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 390px 230px 230px;
  }

  .profile-workspace-gallery {
    grid-template-rows: none;
  }

  .profile-workspace-gallery .portfolio-item {
    min-height: 260px;
  }

  .portfolio-tall {
    grid-row: auto;
  }

  .project-row {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 14px;
  }

  .project-row > button {
    grid-column: 2;
    justify-self: start;
  }

  .career-grid {
    border-top: 1px solid #cfc8be;
  }

  .profile-footer {
    display: block;
  }

  .profile-footer nav {
    margin-top: 28px;
  }

  .profile-dialog-sheet {
    padding: 20px;
  }

  .profile-dialog-actions button {
    flex: 1;
    padding: 0 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-item img {
    transition: none;
  }
}


/* ─────────────────────────────────────────────────────────────────────────────
   Booking — le due famiglie, e il prezzo prima del clic (ADR-038)

   Il colore del segno dice il canale e nient'altro: argento telefono, verde
   messaggio, terra sul posto, oro bottega. Sono gli stessi quattro colori
   delle pastiglie in Atelier, cosi' chi passa dall'una all'altra riconosce
   la stessa cosa.
   ───────────────────────────────────────────────────────────────────────── */

.booking-famiglia {
  margin: 0 0 14px;
}

.booking-famiglia h3 {
  margin: 0 0 2px;
  font: 400 15px/1.25 var(--serif, Georgia, serif);
  color: rgba(255, 255, 255, .92);
}

.booking-famiglia h3 em {
  display: block;
  margin-top: 3px;
  font-style: normal;
  font-size: 10.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, .45);
}

/* Tre colonne per tre figli: il prezzo sta dentro la colonna del testo, cosi'
   nella barra stretta non c'e' niente che possa uscire dall'impaginato. */
.availability-options button {
  align-items: start;
  min-height: 0;
  padding: 11px 9px;
}

.booking-voce {
  min-width: 0;
}

.availability-options .booking-voce small {
  line-height: 1.45;
}

.booking-freccia {
  align-self: center;
}

.booking-price {
  display: block;
  margin-top: 5px;
  color: #dfb84f;
  font: 600 9.5px/1.3 var(--mono, monospace);
  letter-spacing: .07em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.booking-price.gratis { color: #8dc5a0; }
.booking-price.concordare { color: rgba(255, 255, 255, .4); }

.booking-price em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-weight: 400;
  font-size: 8.5px;
  letter-spacing: .05em;
  color: rgba(255, 255, 255, .42);
}

.booking-mark.canale-telefono { background: rgba(198, 204, 212, .18); color: #c6ccd4; }
.booking-mark.canale-messaggio { background: rgba(102, 183, 134, .18); color: #8dc5a0; }
.booking-mark.canale-posto { background: rgba(196, 122, 72, .22); color: #d99a6f; }
.booking-mark.canale-bottega { background: rgba(211, 168, 37, .19); color: #dfb84f; }

/* Il conto, dentro la finestra: «uscita piu' oraria» da sola non e' ancora una
   cifra, e la cifra il cliente la vuole prima di premere invia. */
.booking-conto {
  margin: 4px 0 14px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .03);
}

/* `hidden` deve vincere su display:flex, altrimenti le righe che non servono
   restano li' a dire numeri che non c'entrano. */
.booking-conto > div[hidden] {
  display: none;
}

.booking-conto > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 5px 0;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .58);
}

.booking-conto b {
  font-weight: 500;
  color: rgba(255, 255, 255, .9);
}

.booking-conto-ore {
  flex-wrap: wrap;
}

.booking-durata {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.booking-durata button {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: transparent;
  color: rgba(255, 255, 255, .62);
  font: 500 11.5px/1 inherit;
  cursor: pointer;
}

.booking-durata button.scelta {
  border-color: rgba(211, 168, 37, .55);
  background: rgba(211, 168, 37, .14);
  color: #fff;
}

/* Quando resta una riga sola, la linea di separazione non separa niente. */
.booking-conto.solo-costo .booking-conto-totale {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.booking-conto-totale {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, .09);
}

.booking-conto-totale b {
  color: #dfb84f;
  font: 600 15px/1 var(--mono, monospace);
}


/* ─────────────────────────────────────────────────────────────────────────────
   Le due scelte: preventivo o consulenza

   La scheda si ferma qui. Che cosa esattamente — telefono, sopralluogo,
   valutazione — si decide dopo, sul calendario, quando si sa il giorno: sono
   le disponibilita' a dire quali modalita' esistono, non un elenco fisso.
   ───────────────────────────────────────────────────────────────────────── */

.booking-scelte {
  display: grid;
  gap: 10px;
}

.booking-scelta {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 16px 17px;
  border-radius: 17px;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(150deg, rgba(255,255,255,.06), rgba(255,255,255,.012) 42%, rgba(0,0,0,.22));
  background-color: rgba(8, 10, 11, .38);
  backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 12px 28px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.11);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), background-color .25s;
}

.booking-scelta:hover { transform: translateY(-2px); background-color: rgba(8, 10, 11, .24); }

.booking-scelta::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(125deg, rgba(211,168,37,.85) 0%, rgba(211,168,37,.26) 28%,
              rgba(255,255,255,.12) 50%, rgba(236,238,240,.34) 72%, rgba(236,238,240,.8) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.booking-scelta-icona {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
}

.booking-scelta-icona svg { width: 21px; height: 21px; }

/* Il preventivo non si paga, la consulenza si': i due colori dicono questo e
   nient'altro — verde cio' che non costa, oro cio' che ha un prezzo. */
.booking-scelta.preventivo .booking-scelta-icona { background: rgba(102,183,134,.16); color: #8dc5a0; }
.booking-scelta.consulenza .booking-scelta-icona { background: rgba(211,168,37,.17); color: #dfb84f; }

.booking-scelta-testo { min-width: 0; }

.booking-scelta-testo strong {
  display: block;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 3px;
}

.booking-scelta-testo small {
  display: block;
  color: rgba(255, 255, 255, .5);
  font-size: 11.8px;
  line-height: 1.45;
}

.booking-scelta .booking-freccia {
  color: rgba(255, 255, 255, .35);
  font-size: 15px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   La barra di destra non scorreva.

   Era `position: sticky; top: 162px` con dentro piu' contenuto di quanto
   entri in una finestra: la colonna si incolla in alto, e tutto quello che
   sta sotto il bordo dello schermo diventa irraggiungibile, perche' la
   pagina scorre ma la barra no. Adesso se e' piu' alta della finestra scorre
   per conto suo; se ci sta, resta ferma com'era.
   ───────────────────────────────────────────────────────────────────────── */

@media (min-width: 1101px) {
  .profile-sidebar {
    max-height: calc(100vh - 178px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .18) transparent;
    /* Un filo di spazio a destra perche' la barra non tocchi le schede. */
    padding-right: 4px;
  }

  .profile-sidebar::-webkit-scrollbar { width: 6px; }
  .profile-sidebar::-webkit-scrollbar-thumb {
    border-radius: 3px;
    background: rgba(255, 255, 255, .18);
  }
  .profile-sidebar::-webkit-scrollbar-track { background: transparent; }
}
