:root {
  --teal: #12b4c6;
  --teal-dark: #0a8a98;
  --ink: #102126;
  --muted: #5a6b70;
  --paper: #f6f8f8;
  --white: #ffffff;
  --hero: #071318;
  --gold: #c9a46a;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(16, 33, 38, 0.12);
  --max: 1180px;
  --header: 84px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

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

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

.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 50;
  background: #fff;
  padding: 0.5rem 1rem;
}

.topbar {
  background: var(--teal);
  color: #fff;
  font-size: 0.85rem;
}
.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.45rem 1.25rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.topbar a:hover {
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(7, 19, 24, 0.92);
  backdrop-filter: blur(10px);
  color: #fff;
}
.site-header.is-light {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(16, 33, 38, 0.08);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  min-height: var(--header);
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  margin-right: auto;
}
.logo strong {
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.logo span {
  font-size: 0.75rem;
  opacity: 0.75;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.nav {
  display: flex;
  gap: 1.1rem;
  font-size: 0.92rem;
}
.nav a {
  opacity: 0.9;
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--teal);
  opacity: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.75rem 1.25rem;
  font-weight: 650;
  border: 0;
  cursor: pointer;
  transition: 0.2s ease;
}
.btn-teal {
  background: var(--teal);
  color: #fff;
}
.btn-teal:hover {
  background: var(--teal-dark);
}
.btn-ghost {
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
}
.btn-dark {
  background: var(--ink);
  color: #fff;
}
.btn-wa {
  background: transparent;
  color: #25d366;
  border: 2px solid #25d366;
}
.btn-wa:hover {
  background: #25d366;
  color: #fff;
}
.hero .btn-wa {
  color: #5ee08a;
  border-color: #5ee08a;
}
.hero .btn-wa:hover {
  background: #25d366;
  color: #fff;
  border-color: #25d366;
}
.contact-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: inherit;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 88vh;
  background-color: #071318;
  color: #fff;
  display: grid;
  align-items: end;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 78% 30%;
  z-index: 0;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(7, 19, 24, 0.86) 8%, rgba(7, 19, 24, 0.28) 62%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: 7rem 1.25rem 5rem;
}
.eyebrow {
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
}
.hero h1 {
  font-size: clamp(2.4rem, 7vw, 5.2rem);
  line-height: 0.95;
  font-weight: 700;
  margin: 0.4rem 0 1rem;
  max-width: 14ch;
}
.hero h1 em {
  font-style: normal;
  color: var(--teal);
}
.hero p {
  max-width: 42ch;
  font-size: 1.1rem;
  opacity: 0.92;
}
.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

.section {
  padding: 5rem 1.25rem;
  position: relative;
  z-index: 1;
}
.wrap {
  max-width: var(--max);
  margin: 0 auto;
}
#lo-studio,
#contatti,
#dottoressa,
#medicina-estetica {
  scroll-margin-top: 6rem;
}
.section-head {
  max-width: 46rem;
  margin-bottom: 2.5rem;
}
.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.1;
  margin: 0.3rem 0 0.7rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  padding: 0 1.25rem 2rem;
  max-width: calc(var(--max) + 2.5rem);
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: auto;
}
.feature-grid.over-hero {
  margin-top: -4.5rem;
  z-index: 2;
}
.feature-card {
  min-height: 360px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  z-index: 0;
  color: #fff;
  box-shadow: var(--shadow);
  display: flex;
  align-items: flex-end;
}
.feature-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.feature-card .txt {
  position: relative;
  z-index: 1;
  padding: 1.5rem;
  background: linear-gradient(transparent, rgba(7, 19, 24, 0.88));
  width: 100%;
}
.feature-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.45rem;
}
.feature-card--plain {
  min-height: auto;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(7, 19, 24, 0.08);
  align-items: stretch;
  box-shadow: var(--shadow);
}
.feature-card--plain .txt {
  background: none;
  padding: 1.25rem 1.35rem;
}
.feature-card--plain h3 {
  color: var(--ink);
  font-size: 1.2rem;
}
.feature-card--plain p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.45;
}
.feature-card--plain:hover {
  border-color: rgba(18, 180, 198, 0.35);
  box-shadow: 0 10px 28px rgba(7, 19, 24, 0.1);
}
.feature-card--plain:hover h3 {
  color: var(--teal-dark);
}
.feature-grid.in-page {
  margin-top: 1.5rem;
  padding: 0;
  max-width: 100%;
}

.med-estetica-hero-count {
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 700;
  color: var(--teal);
  margin: 0 0 0.55rem;
}
.med-estetica-callout {
  text-align: center;
  margin: 2rem auto 0;
  max-width: 44rem;
  padding: 1.35rem 1.5rem;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.med-estetica-callout--hub {
  margin: 0 auto 2rem;
}
.med-estetica-callout__title {
  margin: 0 0 0.45rem;
  font-size: clamp(1.25rem, 2.8vw, 1.65rem);
  font-weight: 700;
  line-height: 1.25;
}
.med-estetica-callout__title a {
  color: inherit;
  text-decoration: none;
}
.med-estetica-callout__title a:hover {
  color: var(--teal);
}
.med-estetica-callout__sub {
  margin: 0;
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.45;
}
.med-estetica-callout__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
  margin-top: 1rem;
}

.treat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.treat-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.treat-card img {
  height: 100%;
  object-fit: cover;
  min-height: 180px;
}
.treat-card div {
  padding: 1.25rem 1.35rem;
}
.treat-card h3 {
  margin: 0 0 0.4rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.split img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: var(--radius);
}
.split ul {
  padding-left: 1.1rem;
}

.dark {
  background: var(--hero);
  color: #fff;
}
.form-card,
.quote,
.faq details {
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  box-shadow: var(--shadow);
}
form {
  display: grid;
  gap: 0.8rem;
}
label span,
label {
  font-size: 0.9rem;
  font-weight: 600;
}
input,
textarea {
  width: 100%;
  border: 1px solid #d5dfe2;
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  font: inherit;
}
.consent {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--muted);
}
.consent input {
  width: auto;
  margin-top: 0.2rem;
}

.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.quote p {
  font-size: 0.98rem;
}
.quote footer {
  background: #eef2f3;
  color: #3d4a4e;
  padding: 0.55rem 0.75rem;
  margin: 0.75rem -0.35rem -0.35rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 650;
}
.stars {
  color: #e0b44a;
  letter-spacing: 0.08em;
}

.cta-band {
  text-align: center;
  padding: 4.5rem 1.25rem;
  background:
    linear-gradient(rgba(7, 19, 24, 0.7), rgba(7, 19, 24, 0.7)),
    url("../img/studio.jpg") center/cover;
  color: #fff;
}
.cta-band h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin: 0 0 0.6rem;
}

.faq details + details {
  margin-top: 0.7rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
}

.page-hero {
  background: var(--hero);
  color: #fff;
  padding: 5rem 1.25rem 3.5rem;
}
.page-hero h1 {
  margin: 0.4rem 0;
  font-size: clamp(2rem, 5vw, 3.4rem);
}

body > footer {
  background: #061015;
  color: #d7e3e6;
  padding: 3.5rem 1.25rem 2rem;
}
body > footer h3 {
  color: #fff;
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
}
body > footer p {
  margin: 0;
  line-height: 1.6;
}
.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
}
body > footer a {
  color: inherit;
}
body > footer .btn-teal {
  color: #fff;
  margin-top: 1rem;
}
body > footer a:hover {
  color: var(--teal);
}
body > footer .btn-teal:hover {
  color: #fff;
}
.copy {
  max-width: var(--max);
  margin: 2rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  opacity: 0.7;
}

.notice {
  background: #fff4d6;
  color: #5a4308;
  text-align: center;
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
}
html.closure-ended .notice {
  display: none !important;
}

.form-ok {
  display: none;
  background: #e8f8f4;
  color: #0b5c4b;
  padding: 0.8rem 1rem;
  border-radius: 12px;
}
.form-err {
  display: none;
  background: #fde8e8;
  color: #8a1f1f;
  padding: 0.8rem 1rem;
  border-radius: 12px;
}
.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}
.google-rating a {
  color: var(--teal-dark);
  font-weight: 650;
}
.map-embed {
  width: 100%;
  height: 380px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: 1rem;
}
.map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.9rem;
}

@media (max-width: 900px) {
  .menu-toggle {
    display: grid;
    place-items: center;
  }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    color: var(--ink);
    flex-direction: column;
    padding: 1rem 1.25rem 1.4rem;
    box-shadow: var(--shadow);
  }
  .nav.is-open {
    display: flex;
  }
  .header-cta {
    display: none;
  }
  .feature-grid,
  .treat-grid,
  .split,
  .quotes,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .treat-card {
    grid-template-columns: 1fr;
  }
  .treat-card img {
    height: 200px;
  }
  .hero {
    min-height: 78vh;
    align-items: center;
  }
}

a.treat-card {
  color: inherit;
  text-decoration: none;
}
a.treat-card:hover h2,
a.treat-card:hover h3 {
  color: var(--teal-dark);
}
.crumbs {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.crumbs a { color: var(--teal-dark); }
.service-body {
  max-width: 42rem;
}
.service-body > img {
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
  object-position: center;
  background: var(--paper);
  border-radius: var(--radius);
  margin: 0 0 1.2rem;
}
.service-body .how-it-works,
.service-body .clinic-photo {
  margin: 1.4rem 0 0.4rem;
  text-align: center;
}
.service-body .how-it-works img,
.service-body .clinic-photo img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: none;
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
  background: var(--paper);
  border-radius: var(--radius);
}
.service-body .how-it-works figcaption,
.service-body .clinic-photo figcaption {
  margin: 0.45rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.service-body .lead {
  font-size: 1.08rem;
  color: var(--muted);
}
.service-body h2 {
  margin: 1.7rem 0 0.45rem;
  font-size: 1.22rem;
}
.service-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.35rem 0 0.2rem;
}

.privacy-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  padding: 1rem 1.1rem calc(1rem + env(safe-area-inset-bottom, 0px));
  background: rgba(7, 19, 24, 0.96);
  color: #fff;
  box-shadow: 0 -8px 28px rgba(7, 19, 24, 0.22);
}
.privacy-banner[hidden] {
  display: none !important;
}
.privacy-banner__close {
  position: absolute;
  top: 0.35rem;
  right: 0.55rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}
.privacy-banner__close:hover {
  color: #fff;
}
.privacy-banner__inner {
  max-width: var(--wrap, 72rem);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  padding-right: 1.5rem;
}
.privacy-banner__text {
  flex: 1 1 16rem;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}
.privacy-banner__text a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}
.privacy-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
html.privacy-banner-open body {
  padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
}
.privacy-tab {
  position: fixed;
  left: 0.85rem;
  bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
  z-index: 9999;
  padding: 0.45rem 0.75rem;
  border: 0;
  border-radius: 999px;
  background: rgba(7, 19, 24, 0.88);
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(7, 19, 24, 0.2);
}
.privacy-tab:hover {
  background: rgba(7, 19, 24, 0.96);
}
.privacy-tab[hidden] {
  display: none !important;
}
html.privacy-banner-open .privacy-tab {
  display: none !important;
}
@media (max-width: 640px) {
  html.privacy-banner-open body {
    padding-bottom: calc(7.5rem + env(safe-area-inset-bottom, 0px));
  }
  .privacy-banner__actions {
    width: 100%;
  }
  .privacy-banner__actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}
