/* ============================================================
   GIULIA FLAVIA GIURI — OSTEOPATIA
   DESIGN SYSTEM v2
   Pulito · Premium · Mobile-first
   ============================================================ */

/* Font Fraunces/Work Sans caricati via <link rel="stylesheet"> nell'<head> di ogni pagina
   (con preconnect), non più via @import: evita di bloccare il render CSS su mobile. */


/* ============================================================
   ROOT
   ============================================================ */

:root {

  /* ---- colori ---- */

  --ink: #22314a;
  --ink-soft: #5c6b80;
  --ink-faint: #8b96a6;

  --paper: #f8f7f3;
  --paper-alt: #eef0ea;
  --surface: #ffffff;

  --blue: #3f6d92;
  --blue-deep: #2c4d6b;
  --blue-dark: #1f3850;
  --blue-light: #e4ecf1;

  --gold: #b8925a;
  --gold-light: #f3e9db;

  --line: #dfe1da;

  --white: #ffffff;


  /* ---- tipografia ---- */

  --font-display: "Fraunces", Georgia, serif;

  --font-body:
    "Work Sans",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  --text-xs: 0.8rem;
  --text-sm: 0.9rem;
  --text-base: 1rem;
  --text-lg: 1.12rem;
  --text-xl: 1.3rem;

  --heading-sm: clamp(1.5rem, 3.4vw, 1.9rem);
  --heading-md: clamp(1.9rem, 4.4vw, 2.6rem);
  --heading-lg: clamp(2.5rem, 7vw, 4.4rem);


  /* ---- layout ---- */

  --maxw: 1180px;
  --gutter: 1.25rem;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-soft:
    0 10px 30px rgba(31, 56, 80, 0.08);

  --shadow-card:
    0 18px 44px rgba(31, 56, 80, 0.12);

  --header-height: 76px;
  --sticky-bar-height: 62px;

  --ease: cubic-bezier(.22, 1, .36, 1);
}


/* ============================================================
   RESET
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  padding-bottom: var(--sticky-bar-height);
}

body.menu-open {
  overflow: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  touch-action: manipulation;
  background: none;
  border: 0;
}

a {
  color: inherit;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

p {
  margin: 0 0 1rem;
  max-width: 65ch;
}

svg {
  display: block;
}


/* ============================================================
   TIPOGRAFIA
   ============================================================ */

h1,
h2,
h3,
h4,
h5 {
  margin: 0 0 0.6em;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

h1 {
  font-size: var(--heading-lg);
  font-weight: 500;
}

h2 {
  font-size: var(--heading-md);
}

h3 {
  font-size: var(--heading-sm);
}

h4 {
  font-family: var(--font-body);
  font-size: var(--text-xl);
  font-weight: 600;
}

h5 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

p.lede {
  max-width: 48ch;
  color: var(--ink-soft);
  font-size: var(--text-lg);
  line-height: 1.6;
}

p.small {
  font-size: var(--text-sm);
  color: var(--ink-soft);
}

strong {
  font-weight: 600;
}


/* ============================================================
   CONTAINER / UTILITY
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section {
  padding-block: 3.25rem;
}

.section-alt {
  background: var(--paper-alt);
}

.section-ink {
  background: var(--blue-dark);
  color: var(--white);
}

.section-ink h2,
.section-ink h3 {
  color: var(--white);
}

.section-head {
  max-width: 640px;
  margin-bottom: 2.2rem;
}

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

.eyebrow-word {
  margin: 0 0 0.6em;
  color: var(--blue-deep);
  font-size: var(--text-sm);
  font-weight: 600;
}

.two-col {
  display: grid;
  gap: 2.5rem;
}

.stack-lg {
  display: grid;
  gap: 2.4rem;
}

@media (min-width: 780px) {

  section {
    padding-block: 5rem;
  }

  .two-col {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}


/* ============================================================
   ACCESSIBILITÀ
   ============================================================ */

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: -9999px;
  top: 1rem;
  z-index: 9999;
  padding: 0.8rem 1.2rem;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  left: 1rem;
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}


/* ============================================================
   BOTTONI
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;

  min-height: 50px;

  padding: 0.85rem 1.6rem;

  border-radius: var(--radius-pill);

  font-size: var(--text-sm);
  font-weight: 600;

  text-decoration: none;

  border: 1.5px solid transparent;

  transition:
    transform 0.2s var(--ease),
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;

  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--blue-deep);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  background: var(--blue-dark);
}

.btn-outline {
  border-color: var(--line);
  color: var(--ink);
  background: var(--surface);
}

.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue-deep);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}

.btn-outline-light:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.6rem;
}


/* ============================================================
   HEADER
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;

  z-index: 1000;

  width: 100%;
  height: var(--header-height);

  display: flex;
  align-items: center;

  background: rgba(248, 247, 243, 0.96);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border-bottom: 1px solid var(--line);
}

.header-row {
  position: relative;

  width: 100%;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 1rem;
}


/* ============================================================
   BRAND
   ============================================================ */

.brand {
  position: relative;
  z-index: 1100;

  display: inline-flex;
  flex-direction: column;

  line-height: 1.15;

  color: var(--ink);

  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;

  text-decoration: none;
}

.brand span {
  color: var(--blue);
  font-weight: 400;
}


/* ============================================================
   HAMBURGER MOBILE
   ============================================================ */

.nav-toggle {
  position: absolute;

  left: 50%;
  top: 50%;

  transform: translate(-50%, -50%);

  z-index: 1200;

  width: 44px;
  height: 44px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  color: var(--ink);
  background: transparent;

  border: 0;
  border-radius: 50%;

  transition:
    background 0.2s ease,
    transform 0.2s ease;

  -webkit-tap-highlight-color: transparent;
}

.nav-toggle:hover {
  background: rgba(63, 109, 146, 0.08);
}

.nav-toggle:active {
  transform: translate(-50%, -50%) scale(0.94);
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
  pointer-events: none;
}


/* ============================================================
   OVERLAY MOBILE
   ============================================================ */

.nav-overlay {
  position: fixed;
  inset: 0;

  z-index: 900;

  background: rgba(20, 28, 41, 0.48);

  opacity: 0;
  visibility: hidden;

  pointer-events: none;

  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.nav-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}


/* ============================================================
   PANNELLO MENU MOBILE
   ============================================================ */

.main-nav {
  position: fixed;

  top: 0;
  right: 0;
  bottom: 0;

  z-index: 1000;

  width: min(88vw, 390px);
  height: 100dvh;

  display: flex;
  flex-direction: column;

  padding:
    1.25rem
    1.25rem
    calc(1.5rem + env(safe-area-inset-bottom, 0px));

  background: var(--blue-dark);
  color: var(--white);

  transform: translateX(100%);

  opacity: 0;
  visibility: hidden;

  overflow-x: hidden;
  overflow-y: auto;

  pointer-events: none;

  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;

  box-shadow:
    -20px 0 50px rgba(20, 28, 41, 0.22);

  transition:
    transform 0.35s var(--ease),
    opacity 0.2s ease,
    visibility 0.35s ease;
}

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

  opacity: 1;
  visibility: visible;

  pointer-events: auto;
}


/* ============================================================
   CHIUSURA MENU
   ============================================================ */

.nav-close {
  position: relative;

  z-index: 1200;

  align-self: flex-end;

  width: 44px;
  height: 44px;

  flex: 0 0 44px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin: 0 0 1rem;

  padding: 0;

  border: 1px solid rgba(255, 255, 255, 0.25);

  border-radius: 50%;

  color: var(--white);

  background: transparent;

  cursor: pointer;

  -webkit-tap-highlight-color: transparent;

  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.nav-close:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.45);
}

.nav-close svg {
  width: 20px;
  height: 20px;
  pointer-events: none;
}


/* ============================================================
   LINK MENU MOBILE
   ============================================================ */

.main-nav a {
  color: var(--white);
  text-decoration: none;
}

.main-nav > ul {
  width: 100%;

  display: flex;
  flex-direction: column;

  margin: 0;
  padding: 0;

  list-style: none;
}

.main-nav > ul > li {
  position: relative;

  width: 100%;

  margin: 0;
  padding: 0;

  border-bottom:
    1px solid rgba(255, 255, 255, 0.14);
}

.main-nav > ul > li > a {
  position: relative;

  z-index: 1010;

  display: flex;
  align-items: center;

  width: 100%;
  min-height: 58px;

  padding: 0;

  color: var(--white);

  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 500;

  line-height: 1.25;

  text-decoration: none;

  pointer-events: auto;
  touch-action: manipulation;

  cursor: pointer;

  -webkit-tap-highlight-color: transparent;

  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.main-nav > ul > li > a:hover {
  color: var(--white);
}


/* ============================================================
   VOCI CON SOTTOMENU
   ============================================================ */

.main-nav > ul > li.has-dropdown {
  position: relative;

  display: flex;
  flex-wrap: wrap;
  align-items: center;

  width: 100%;
}

.main-nav > ul > li.has-dropdown > a {
  flex: 1 1 auto;

  width: auto;
  min-width: 0;

  padding-right: 0.25rem;
}


/* ============================================================
   FRECCIA DROPDOWN MOBILE
   ============================================================ */

.dropdown-toggle {
  position: relative;

  z-index: 1020;

  flex: 0 0 52px;

  width: 52px;
  height: 58px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin: 0;
  padding: 0;

  border: 0;

  background: transparent;

  color: var(--white);

  cursor: pointer;

  pointer-events: auto;
  touch-action: manipulation;

  -webkit-tap-highlight-color: transparent;
}

.dropdown-toggle::before {
  content: "";

  position: absolute;

  width: 42px;
  height: 42px;

  border-radius: 50%;

  background: transparent;

  transition:
    background 0.2s ease;
}

.dropdown-toggle:hover::before,
.dropdown-toggle:focus-visible::before {
  background: rgba(255, 255, 255, 0.08);
}

.dropdown-toggle svg {
  position: relative;

  z-index: 2;

  width: 19px;
  height: 19px;

  pointer-events: none;

  transition:
    transform 0.25s var(--ease);
}

.has-dropdown[data-open="true"] > .dropdown-toggle svg {
  transform: rotate(180deg);
}


/* ============================================================
   DROPDOWN MOBILE
   ============================================================ */

.main-nav > ul > li.has-dropdown > .dropdown-panel {
  position: relative;

  z-index: 1030;

  flex: 0 0 100%;

  width: 100%;

  max-height: 0;

  overflow: hidden;

  opacity: 0;
  visibility: hidden;

  pointer-events: none;

  transition:
    max-height 0.35s var(--ease),
    opacity 0.2s ease,
    visibility 0.2s ease;
}

.main-nav > ul > li.has-dropdown[data-open="true"] > .dropdown-panel {
  max-height: 900px;

  opacity: 1;
  visibility: visible;

  pointer-events: auto;
}


/* ============================================================
   LISTA SOTTOMENU MOBILE
   ============================================================ */

.main-nav .dropdown {
  position: relative;

  z-index: 1040;

  display: flex;
  flex-direction: column;

  width: 100%;

  margin: 0;

  padding:
    0.25rem
    0
    1rem
    1rem;

  gap: 0;

  list-style: none;
}

.main-nav .dropdown li {
  position: relative;

  z-index: 1050;

  display: block;

  width: 100%;

  margin: 0;
  padding: 0;
}


/* ============================================================
   LINK SOTTOMENU MOBILE
   ============================================================ */

.main-nav .dropdown li a {
  position: relative;

  z-index: 1060;

  display: flex;
  align-items: center;

  width: 100%;
  min-height: 46px;

  box-sizing: border-box;

  padding:
    0.55rem
    0.65rem;

  color: rgba(255, 255, 255, 0.84);

  font-family: var(--font-body);

  font-size: 0.94rem;
  font-weight: 400;

  line-height: 1.35;

  text-decoration: none;

  border-radius: 7px;

  pointer-events: auto;

  touch-action: manipulation;

  cursor: pointer;

  -webkit-tap-highlight-color:
    rgba(255, 255, 255, 0.1);

  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.main-nav .dropdown li a:hover,
.main-nav .dropdown li a:focus-visible {
  color: var(--white);

  background:
    rgba(255, 255, 255, 0.08);
}


/* ============================================================
   CTA MENU
   ============================================================ */

.main-nav .nav-cta {
  position: relative;

  z-index: 1070;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;

  min-height: 50px;

  margin-top: 1.4rem;

  padding:
    0.8rem
    1.2rem;

  background: var(--white);

  color: var(--blue-dark);

  border-radius: var(--radius-pill);

  text-decoration: none;

  pointer-events: auto;

  cursor: pointer;
}

.main-nav .nav-cta:hover {
  background: var(--blue-light);
  color: var(--blue-dark);
}


/* ============================================================
   DESKTOP HEADER — >= 960px
   ============================================================ */

@media (min-width: 960px) {

  :root {
    --header-height: 88px;
  }


  /* -----------------------------------------
     ELEMENTI MOBILE
     ----------------------------------------- */

  .nav-toggle,
  .nav-close,
  .nav-overlay,
  .dropdown-toggle {
    display: none !important;
  }


  /* -----------------------------------------
     NAV DESKTOP
     ----------------------------------------- */

  .main-nav {
    position: static;

    width: auto;
    height: auto;

    min-height: 0;

    display: flex;
    flex-direction: row;
    align-items: center;

    padding: 0;

    background: transparent;

    color: var(--ink);

    transform: none;

    visibility: visible;
    opacity: 1;

    overflow: visible;

    pointer-events: auto;

    box-shadow: none;

    gap: 2rem;

    transition: none;
  }


  .main-nav > ul {
    width: auto;

    display: flex;
    flex-direction: row;
    align-items: center;

    gap: 1.9rem;
  }


  .main-nav > ul > li {
    position: relative;

    width: auto;

    border-bottom: 0;
  }


  .main-nav > ul > li.has-dropdown {
    display: block;
  }


  .main-nav > ul > li > a {
    position: relative;

    z-index: auto;

    display: flex;

    width: auto;
    min-height: auto;

    padding:
      0.5rem
      0;

    color: var(--ink);

    font-family: var(--font-body);

    font-size: 0.96rem;
    font-weight: 500;

    line-height: 1.4;

    pointer-events: auto;
  }


  .main-nav > ul > li > a:hover {
    color: var(--blue-deep);
  }


  .main-nav a {
    color: var(--ink);
  }


  /* ========================================================
     DROPDOWN DESKTOP
     ======================================================== */

  .main-nav > ul > li.has-dropdown > .dropdown-panel {

    position: absolute !important;

    top: calc(100% + 0.65rem) !important;

    left: 50% !important;

    width: 300px !important;
    min-width: 300px !important;

    max-height: none !important;

    display: block !important;

    padding: 0.5rem !important;

    background: var(--surface) !important;

    border:
      1px solid var(--line) !important;

    border-radius:
      var(--radius-md) !important;

    box-shadow:
      0 18px 44px rgba(31, 56, 80, 0.14) !important;

    opacity: 0 !important;

    visibility: hidden !important;

    pointer-events: none !important;

    transform:
      translateX(-50%)
      translateY(8px) !important;

    overflow: visible !important;

    z-index: 3000 !important;

    transition:
      opacity 0.2s ease,
      visibility 0.2s ease,
      transform 0.2s var(--ease) !important;
  }


  /* apertura */

  .main-nav > ul > li.has-dropdown:hover > .dropdown-panel,
  .main-nav > ul > li.has-dropdown:focus-within > .dropdown-panel,
  .main-nav > ul > li.has-dropdown[data-open="true"] > .dropdown-panel {

    opacity: 1 !important;

    visibility: visible !important;

    pointer-events: auto !important;

    transform:
      translateX(-50%)
      translateY(0) !important;
  }


  /* -----------------------------------------
     LISTA DROPDOWN
     ----------------------------------------- */

  .main-nav .dropdown {

    position: static !important;

    display: flex !important;

    flex-direction: column !important;

    width: 100% !important;

    margin: 0 !important;

    padding:
  0.25rem
  0
  1rem
  3rem;

    gap: 0 !important;

    overflow: visible !important;

    opacity: 1 !important;

    visibility: visible !important;
  }


  .main-nav .dropdown li {

    position: static !important;

    display: block !important;

    width: 100% !important;

    margin: 0 !important;

    padding: 0 !important;

    opacity: 1 !important;

    visibility: visible !important;
  }


  /* -----------------------------------------
     LINK DROPDOWN DESKTOP
     ----------------------------------------- */

  .main-nav .dropdown li a {

    position: relative !important;

    z-index: 3010 !important;

    display: flex !important;

    align-items: center !important;

    width: 100% !important;

    min-height: 42px !important;

    box-sizing: border-box !important;

    padding:
      0.65rem
      0.75rem !important;

    color: var(--ink) !important;

    background: transparent !important;

    font-family: var(--font-body) !important;

    font-size: 0.9rem !important;

    font-weight: 500 !important;

    line-height: 1.35 !important;

    text-decoration: none !important;

    border-radius: 7px !important;

    pointer-events: auto !important;

    touch-action: manipulation !important;

    cursor: pointer !important;

    opacity: 1 !important;

    visibility: visible !important;
  }


  .main-nav .dropdown li a:hover {

    background:
      var(--paper-alt) !important;

    color:
      var(--blue-deep) !important;
  }


  /* -----------------------------------------
     CTA DESKTOP
     ----------------------------------------- */

  .main-nav .nav-cta {

    width: auto;

    min-height: 50px;

    margin-top: 0;

    margin-left: 0.5rem;

    padding:
      0.7rem
      1.5rem;

    background: var(--blue-deep);

    color: var(--white);

    border-radius: 0;

    pointer-events: auto;
  }


  .main-nav .nav-cta:hover {

    background: var(--blue-dark);

    color: var(--white);
  }

}


/* ============================================================
   STICKY CONTACT BAR — MOBILE
   ============================================================ */

.sticky-contact-bar {

  position: fixed;

  left: 0;
  right: 0;
  bottom: 0;

  z-index: 400;

  display: grid;

  grid-template-columns: 1fr 1fr;

  height: var(--sticky-bar-height);

  background: var(--surface);

  border-top:
    1px solid var(--line);

  box-shadow:
    0 -8px 24px rgba(31, 56, 80, 0.08);

  padding-bottom:
    env(safe-area-inset-bottom, 0px);
}

.sticky-contact-bar a {

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 0.5rem;

  font-size: 0.92rem;
  font-weight: 600;

  text-decoration: none;
}

.sticky-contact-bar a svg {

  width: 18px;
  height: 18px;
}

.sticky-contact-bar .call {

  color: var(--ink);
}

.sticky-contact-bar .whatsapp {

  background: var(--blue-deep);

  color: var(--white);
}

@media (min-width: 960px) {

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

  body {
    padding-bottom: 0;
  }
}


/* ============================================================
   BREADCRUMB
   ============================================================ */

.breadcrumb {

  padding-block: 1.1rem;

  color: var(--ink-faint);

  font-size: var(--text-xs);
}

.breadcrumb a {

  color: var(--ink-soft);

  text-decoration: none;
}

.breadcrumb a:hover {

  color: var(--blue-deep);
}


/* ============================================================
   HERO
   ============================================================ */

.hero {

  padding-block: 2.6rem 3rem;

  background:
    radial-gradient(
      120% 100% at 100% 0%,
      var(--blue-light) 0%,
      transparent 55%
    ),
    var(--paper);
}

.hero-grid {

  display: grid;

  gap: 2rem;
}

.hero-eyebrow {

  display: inline-flex;

  align-items: center;

  gap: 0.7rem;

  margin-bottom: 1.1rem;

  color: var(--blue-deep);
}

.hero-eyebrow-line {

  display: inline-flex;

  width: 26px;

  color: var(--blue);
}

.hero-eyebrow-text {

  font-size: var(--text-sm);

  font-weight: 600;
}

.hero-content h1 {

  max-width: 14ch;
}

.hero-content .lede {

  margin-top: 0.9rem;
}

.hero-media {

  margin-top: 1.8rem;

  border-radius: var(--radius-lg);

  overflow: hidden;

  box-shadow: var(--shadow-card);

  max-width: 360px;
}

.hero-media img {

  aspect-ratio: 4 / 5;

  object-fit: cover;

  width: 100%;
}

@media (min-width: 640px) {

  .hero-media {
    max-width: 420px;
  }
}


/* ============================================================
   EYEBROW SOVRAPPOSTO ALLA FOTO — SOLO MOBILE/TABLET
   (la foto resta della stessa dimensione, cambia solo dove
   compare il testo "Osteopatia e massoterapia — ...")
   ============================================================ */

.hero-eyebrow--photo {
  display: none;
}

@media (max-width: 959px) {

  .hero-eyebrow--desktop {
    display: none;
  }

  .hero-media {
    position: relative;
  }

  .hero-eyebrow--photo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;

    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;

    margin: 0;
    padding: 1.6rem 1.1rem 1rem;

    background:
      linear-gradient(
        180deg,
        rgba(20, 32, 46, 0) 0%,
        rgba(20, 32, 46, 0.68) 55%,
        rgba(20, 32, 46, 0.86) 100%
      );
  }

  .hero-eyebrow--photo .hero-eyebrow-line,
  .hero-eyebrow--photo .hero-eyebrow-text {
    color: var(--white);
  }

  .hero-eyebrow--photo .hero-eyebrow-text {
    font-size: var(--text-xs);
  }
}

@media (min-width: 960px) {

  .hero {

    padding-block:
      4.5rem
      5rem;
  }

  .hero-grid {

    grid-template-columns:
      1.05fr
      0.85fr;

    align-items: center;

    gap: 3rem;
  }

  .hero-content h1 {

    max-width: 12ch;
  }

  .hero-media {

    margin-top: 0;

    max-width: none;

    justify-self: end;
  }

  .trust-stats {

    grid-template-columns:
      repeat(4, 1fr);
  }
}


/* ============================================================
   TRUST STATS
   ============================================================ */

.trust-stats {

  margin-top: 2.4rem;

  padding-top: 1.8rem;

  border-top:
    1px solid var(--line);

  display: grid;

  grid-template-columns:
    repeat(2, 1fr);

  gap: 1.4rem 1rem;
}

.trust-stats dt {

  font-family: var(--font-display);

  font-size: 1.9rem;

  color: var(--blue-deep);

  font-weight: 600;
}

.trust-stats dd {

  margin:
    0.15rem 0 0;

  color: var(--ink-soft);

  font-size: var(--text-xs);

  line-height: 1.35;
}

@media (min-width: 640px) {

  .trust-stats {

    grid-template-columns:
      repeat(4, 1fr);
  }
}


/* ============================================================
   PILLAR GRID
   ============================================================ */

.pillar-grid {

  display: grid;

  gap: 1.1rem;

  grid-template-columns: 1fr;
}

.pillar-card {

  display: block;

  padding: 1.6rem;

  background: var(--surface);

  border:
    1px solid var(--line);

  border-radius: var(--radius-md);

  text-decoration: none;

  color: var(--ink);

  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

a.pillar-card:hover {

  border-color: var(--blue);

  box-shadow: var(--shadow-soft);

  transform: translateY(-2px);
}

.pillar-card .num {

  display: inline-block;

  margin-bottom: 0.9rem;

  color: var(--blue);

  font-family: var(--font-display);

  font-size: 1.1rem;
}

.pillar-card h3 {

  font-size: 1.2rem;

  margin-bottom: 0.4rem;
}

.pillar-card p {

  margin-bottom: 0;

  color: var(--ink-soft);

  font-size: 0.94rem;
}

.pillar-card .arrow {

  display: inline-flex;

  margin-top: 1rem;

  color: var(--blue-deep);

  font-size: 0.88rem;

  font-weight: 600;
}

@media (min-width: 640px) {

  .pillar-grid.cols-3 {

    grid-template-columns:
      repeat(3, 1fr);
  }

  .pillar-grid.cols-4 {

    grid-template-columns:
      repeat(2, 1fr);
  }
}

@media (min-width: 960px) {

  .pillar-grid.cols-4 {

    grid-template-columns:
      repeat(4, 1fr);
  }
}


/* ============================================================
   SERVICE LIST
   ============================================================ */

.service-list {

  display: grid;

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

.service-list a {

  display: flex;

  flex-direction: column;

  gap: 0.25rem;

  padding:
    1.2rem
    0.2rem;

  border-bottom:
    1px solid var(--line);

  text-decoration: none;

  color: var(--ink);

  transition:
    padding-left 0.2s ease,
    color 0.2s ease;
}

.service-list a:hover {

  padding-left: 0.5rem;

  color: var(--blue-deep);
}

.service-list a span:first-child {

  font-family: var(--font-display);

  font-size: 1.08rem;
}

.service-list .tag {

  color: var(--ink-soft);

  font-size: 0.9rem;
}

@media (min-width: 780px) {

  .service-list a {

    flex-direction: row;

    align-items: center;

    justify-content: space-between;

    gap: 2rem;
  }

  .service-list .tag {

    text-align: right;

    max-width: 44ch;
  }
}


/* ============================================================
   RECENSIONI GOOGLE
   ============================================================ */

.reviews-section {

  padding: 5rem 0;

  overflow: hidden;
}

.reviews-head {

  max-width: 720px;

  margin:
    0 auto 2.5rem;

  text-align: center;
}

.reviews-head .eyebrow-word {

  display: block;

  margin-bottom: 0.8rem;
}

.reviews-head h2 {

  margin-bottom: 1rem;
}

.reviews-head .lede {

  margin: 0 auto;

  max-width: 620px;
}


/* ============================================================
   REVIEW SUMMARY
   ============================================================ */

.reviews-summary {

  display: grid;

  gap: 1.5rem;

  margin:
    2.5rem 0 3rem;

  padding: 1.5rem;

  background: var(--white);

  border:
    1px solid rgba(44, 77, 107, 0.12);

  border-radius: 18px;
}

.reviews-rating {

  display: flex;

  align-items: center;

  gap: 1rem;
}

.reviews-rating-number {

  font-family: "Fraunces", serif;

  font-size:
    clamp(2.8rem, 8vw, 4rem);

  line-height: 1;

  color: var(--blue-deep);

  font-weight: 500;
}

.reviews-rating-content {

  display: flex;

  flex-direction: column;

  gap: 0.25rem;
}

.reviews-stars {

  color: #d5a94b;

  font-size: 1rem;

  letter-spacing: 0.12em;

  line-height: 1;
}

.reviews-rating-label {

  font-size: 0.82rem;

  color: var(--ink-soft);
}

.reviews-source {

  display: flex;

  flex-direction: column;

  gap: 0.45rem;
}

.reviews-source-label {

  font-size: 0.72rem;

  text-transform: uppercase;

  letter-spacing: 0.14em;

  font-weight: 700;

  color: var(--blue);
}

.reviews-source-text {

  font-size: 0.92rem;

  line-height: 1.65;

  color: var(--ink-soft);

  max-width: 520px;
}

.reviews-google-link {

  display: inline-flex;

  align-items: center;

  gap: 0.45rem;

  margin-top: 0.35rem;

  color: var(--blue-deep);

  font-size: 0.9rem;

  font-weight: 600;

  text-decoration: none;

  width: fit-content;

  transition:
    gap 0.2s ease,
    opacity 0.2s ease;
}

.reviews-google-link:hover {

  gap: 0.7rem;

  opacity: 0.78;
}


/* ============================================================
   REVIEW GRID
   ============================================================ */

.review-grid {

  display: grid;

  grid-template-columns: 1fr;

  gap: 1rem;
}

.review-card {

  position: relative;

  padding: 1.4rem;

  background: var(--white);

  border:
    1px solid rgba(44, 77, 107, 0.11);

  border-radius: 18px;

  box-shadow:
    0 10px 30px rgba(31, 50, 67, 0.045);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.review-card:hover {

  transform: translateY(-3px);

  border-color:
    rgba(44, 77, 107, 0.2);

  box-shadow:
    0 16px 40px rgba(31, 50, 67, 0.08);
}


/* ============================================================
   REVIEW AUTHOR
   ============================================================ */

.review-card-top {

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 1rem;

  margin-bottom: 1rem;
}

.review-author {

  display: flex;

  align-items: center;

  gap: 0.75rem;

  min-width: 0;
}

.review-avatar {

  width: 42px;
  height: 42px;

  flex: 0 0 42px;

  display: grid;

  place-items: center;

  border-radius: 50%;

  background: #e9f0f5;

  color: var(--blue-deep);

  font-family: "Fraunces", serif;

  font-size: 1rem;

  font-weight: 600;
}

.review-author div {

  display: flex;

  flex-direction: column;

  gap: 0.12rem;

  min-width: 0;
}

.review-author strong {

  color: var(--ink);

  font-size: 0.9rem;

  font-weight: 600;
}

.review-author span {

  color: var(--ink-soft);

  font-size: 0.76rem;
}


/* ============================================================
   GOOGLE MARK
   ============================================================ */

.review-google {

  width: 28px;
  height: 28px;

  display: grid;

  place-items: center;

  border:
    1px solid rgba(44, 77, 107, 0.12);

  border-radius: 50%;

  font-family: Arial, sans-serif;

  font-size: 0.82rem;

  font-weight: 700;

  color: #4285f4;

  background: #fff;

  flex: 0 0 28px;
}


/* ============================================================
   REVIEW TEXT
   ============================================================ */

.review-card .review-stars {

  margin-bottom: 0.9rem;
}

.review-text {

  margin: 0;

  color: var(--ink);

  font-size: 0.94rem;

  line-height: 1.75;
}


/* ============================================================
   REVIEW FOOTER
   ============================================================ */

.reviews-footer {

  display: flex;

  flex-direction: column;

  align-items: center;

  gap: 0.8rem;

  margin-top: 2.5rem;

  text-align: center;
}

.reviews-footer p {

  margin: 0;

  color: var(--ink-soft);

  font-size: 0.88rem;
}


/* ============================================================
   REVIEW CAROUSEL
   ============================================================ */

.reviews-carousel {

  position: relative;

  display: flex;

  align-items: center;

  gap: 1rem;

  max-width: 1050px;

  margin: 0 auto;
}

.reviews-viewport {

  width: 100%;

  overflow: hidden;
}

.reviews-track {

  display: flex;

  transition:
    transform 0.5s cubic-bezier(.22, .61, .36, 1);

  will-change: transform;
}

.google-review-card {

  flex: 0 0 100%;

  box-sizing: border-box;

  padding: 0.25rem;
}

.google-review-card-inner {

  min-height: 250px;

  padding: 2rem;

  border-radius: 24px;

  background: #fff;

  border:
    1px solid rgba(56, 51, 57, 0.10);

  box-shadow:
    0 15px 45px rgba(56, 51, 57, 0.07);

  display: flex;

  flex-direction: column;

  justify-content: space-between;
}

.google-review-top {

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 1rem;

  margin-bottom: 1.4rem;
}

.google-review-author {

  display: flex;

  align-items: center;

  gap: 0.8rem;
}

.google-review-avatar {

  width: 44px;
  height: 44px;

  border-radius: 50%;

  object-fit: cover;

  background: #eee;
}

.google-review-author strong {

  display: block;

  font-size: 0.95rem;
}

.google-review-date {

  display: block;

  margin-top: 0.2rem;

  font-size: 0.75rem;

  opacity: 0.6;
}

.google-review-google {

  font-size: 0.75rem;

  font-weight: 600;

  opacity: 0.65;
}

.google-review-stars {

  margin-bottom: 1rem;

  font-size: 0.95rem;

  letter-spacing: 0.12em;
}

.google-review-text {

  margin: 0;

  font-size: 1rem;

  line-height: 1.75;
}

.google-review-bottom {

  margin-top: 1.5rem;
}

.google-review-bottom a {

  font-size: 0.8rem;

  font-weight: 600;

  text-decoration: none;
}


/* ============================================================
   REVIEW ARROWS
   ============================================================ */

.reviews-arrow {

  flex: 0 0 44px;

  width: 44px;
  height: 44px;

  border:
    1px solid rgba(56, 51, 57, 0.15);

  border-radius: 50%;

  background: #fff;

  color: inherit;

  cursor: pointer;

  display: grid;

  place-items: center;

  font-size: 1.1rem;

  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.reviews-arrow:hover {

  transform: scale(1.05);

  border-color:
    rgba(56, 51, 57, 0.3);
}

.reviews-arrow:active {

  transform: scale(0.96);
}


/* ============================================================
   REVIEW DOTS
   ============================================================ */

.reviews-dots {

  display: flex;

  justify-content: center;

  align-items: center;

  gap: 0.45rem;

  margin-top: 1.5rem;
}

.reviews-dot {

  width: 7px;
  height: 7px;

  padding: 0;

  border: 0;

  border-radius: 50%;

  background: currentColor;

  opacity: 0.25;

  cursor: pointer;

  transition:
    width 0.2s ease,
    opacity 0.2s ease;
}

.reviews-dot.active {

  width: 22px;

  border-radius: 10px;

  opacity: 0.8;
}


/* ============================================================
   REVIEWS RESPONSIVE
   ============================================================ */

@media (min-width: 700px) {

  .reviews-summary {

    grid-template-columns:
      minmax(220px, 0.75fr)
      1.25fr;

    align-items: center;

    padding:
      1.75rem
      2rem;

    gap: 2rem;
  }

  .review-grid {

    grid-template-columns:
      repeat(2, 1fr);

    gap: 1.25rem;
  }

  .review-card:last-child {

    grid-column: 1 / -1;

    max-width:
      calc(50% - 0.625rem);

    width: 100%;

    justify-self: center;
  }

  .google-review-card {

    flex: 0 0 50%;
  }

  .google-review-card-inner {

    min-height: 280px;
  }
}

@media (min-width: 1024px) {

  .reviews-summary {

    grid-template-columns:
      280px
      1fr;

    padding:
      2rem
      2.25rem;

    margin-top: 3rem;

    margin-bottom: 3.5rem;
  }

  .review-grid {

    grid-template-columns:
      repeat(3, 1fr);

    gap: 1.35rem;
  }

  .review-card:last-child {

    grid-column: auto;

    max-width: none;
  }

  .review-card {

    padding: 1.65rem;
  }

  .reviews-footer {

    margin-top: 3rem;
  }
}

@media (max-width: 767px) {

  .reviews-section {

    padding: 4rem 0;
  }

  .reviews-summary {

    flex-direction: column;

    align-items: stretch;

    text-align: center;

    padding: 1.25rem;
  }

  .reviews-rating {

    justify-content: center;
  }

  .reviews-google-link {

    justify-content: center;

    white-space: normal;
  }

  .reviews-carousel {

    gap: 0.5rem;
  }

  .reviews-arrow {

    flex: 0 0 38px;

    width: 38px;
    height: 38px;

    font-size: 0.95rem;
  }

  .google-review-card-inner {

    min-height: 270px;

    padding: 1.5rem;

    border-radius: 20px;
  }

  .google-review-text {

    font-size: 0.94rem;

    line-height: 1.7;
  }
}


/* ============================================================
   QUOTE / CTA BAND
   ============================================================ */

.quote-block {

  max-width: 720px;

  margin: 0 auto;

  text-align: center;
}

.quote-block p {

  margin:
    0 0 1rem;

  max-width: none;

  font-family: var(--font-display);

  font-size:
    clamp(1.4rem, 3.4vw, 2rem);

  font-weight: 500;

  line-height: 1.35;
}

.quote-block cite {

  font-style: normal;

  color:
    rgba(255, 255, 255, 0.7);

  font-size: var(--text-sm);
}

.cta-band {

  background: var(--blue-deep);

  color: var(--white);
}

.cta-band h2 {

  color: var(--white);
}

.cta-band p {

  color:
    rgba(255, 255, 255, 0.82);

  margin-bottom: 0;
}

.cta-band-inner {

  display: grid;

  gap: 1.6rem;

  align-items: center;
}

@media (min-width: 780px) {

  .cta-band-inner {

    grid-template-columns:
      1fr
      auto;

    gap: 2.5rem;
  }

  .cta-band-inner .btn-row {

    margin-top: 0;
  }
}


/* ============================================================
   CHI SONO
   ============================================================ */

/* ============================================================
   BIO HERO — full-bleed photo, content anchored bottom-left
   (variante usata in chi-sono.html)
   ============================================================ */

.bio-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(88vh, 780px);
  display: flex;
  align-items: flex-end;
  padding-block: 0;
}

.bio-hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--blue-dark);
}

.bio-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.bio-hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(31, 56, 80, 0.25) 0%,
    rgba(31, 56, 80, 0.55) 55%,
    rgba(31, 56, 80, 0.92) 100%
  );
}

.bio-hero__inner {
  width: 100%;
  padding-block: clamp(5.5rem, 14vw, 8rem) clamp(2.5rem, 5vw, 3.5rem);
  max-width: 640px;
}

.bio-hero .eyebrow-word {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  color: var(--gold-light);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 0.4em 0.9em;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.bio-hero h1 {
  color: var(--white);
  font-size: var(--heading-lg);
  line-height: 1.02;
  margin-block: 0.3em 0.2em;
}

.bio-hero h1 .accent {
  color: var(--gold-light);
}

.bio-hero .lede {
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-style: italic;
}

.bio-hero p:not(.lede) {
  color: rgba(255, 255, 255, 0.78);
  max-width: 50ch;
}

.bio-hero .btn-row {
  margin-top: 1.8rem;
}

@media (min-width: 780px) {

  .bio-hero__inner {
    padding-block: clamp(6rem, 12vw, 9rem) clamp(3rem, 6vw, 4.5rem);
  }
}



.chi-sono-layout {

  align-items: center;
}

.chi-sono-content .lede {

  margin-top: 0.6rem;
}

.chi-sono-actions {

  margin-top: 1.6rem;
}

.chi-sono-photo {

  border-radius: var(--radius-lg);

  overflow: hidden;

  box-shadow: var(--shadow-card);

  max-width: 340px;
}

.chi-sono-photo img {

  aspect-ratio: 4 / 5;

  object-fit: cover;

  width: 100%;
}

@media (min-width: 780px) {

  .chi-sono-layout {

    grid-template-columns:
      1.1fr
      0.9fr;
  }

  .chi-sono-photo {

    max-width: none;

    justify-self: end;
  }
}


/* ============================================================
   FORMAZIONE
   ============================================================ */

.check-list {

  display: grid;

  gap: 0.9rem;

  margin-top: 1.2rem;
}

.check-list li {

  display: flex;

  align-items: flex-start;

  gap: 0.7rem;
}

.check-list svg {

  flex: 0 0 auto;

  width: 20px;
  height: 20px;

  margin-top: 0.1rem;

  color: var(--blue);
}

.check-list span {

  font-size: 0.95rem;

  color: var(--ink-soft);
}

.formation-note {

  margin-top: 1rem;

  padding:
    0.8rem
    1rem;

  background: var(--gold-light);

  border-radius: var(--radius-sm);

  color: var(--ink-soft);
}


/* ============================================================
   SIDE CARD
   ============================================================ */

.side-card {

  padding: 1.8rem;

  background: var(--surface);

  border:
    1px solid var(--line);

  border-radius: var(--radius-md);

  box-shadow: var(--shadow-soft);

  align-self: start;
}

.side-card dl {

  display: grid;

  gap: 1rem;

  margin:
    0
    0
    1.6rem;
}

.side-card dt {

  font-size: var(--text-xs);

  color: var(--ink-faint);

  margin-bottom: 0.2rem;
}

.side-card dd {

  margin: 0;

  font-weight: 600;
}

.side-card-btn {

  width: 100%;
}


/* ============================================================
   CONTATTI
   ============================================================ */

.contact-premium {

  background: var(--paper-alt);
}

.contact-premium-grid {

  display: grid;

  gap: 2.4rem;

  align-items: start;
}

.contact-intro .lede,
.contact-lede {

  margin-top: 0.6rem;
}

.contact-note {

  color: var(--ink-faint);

  font-size: var(--text-xs);
}

.contact-actions {

  display: grid;

  gap: 0.8rem;
}

.contact-action {

  display: grid;

  grid-template-columns:
    46px
    1fr
    auto;

  align-items: center;

  gap: 0.9rem;

  min-height: 76px;

  padding-inline: 1.1rem;

  background: var(--surface);

  border:
    1px solid var(--line);

  border-radius: var(--radius-md);

  text-decoration: none;

  color: var(--ink);

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.contact-action:hover {

  border-color: var(--blue);

  box-shadow: var(--shadow-soft);
}

.contact-action-primary {

  background: var(--blue-deep);

  border-color: var(--blue-deep);

  color: var(--white);
}

.contact-action-icon {

  display: inline-flex;

  align-items: center;
  justify-content: center;

  width: 42px;
  height: 42px;

  border-radius: 50%;

  background: var(--blue-light);

  color: var(--blue-deep);
}

.contact-action-primary .contact-action-icon {

  background:
    rgba(255, 255, 255, 0.16);

  color: var(--white);
}

.contact-action-icon svg {

  width: 20px;
  height: 20px;
}

.contact-action-content {

  display: flex;

  flex-direction: column;

  gap: 0.1rem;
}

.contact-action-content strong {

  font-size: 0.98rem;
}

.contact-action-content small {

  color: var(--ink-soft);

  font-size: 0.8rem;
}

.contact-action-primary
.contact-action-content
small {

  color:
    rgba(255, 255, 255, 0.75);
}

.contact-action-arrow {

  font-size: 1.1rem;
}

@media (min-width: 780px) {

  .contact-premium-grid {

    grid-template-columns:
      0.95fr
      0.8fr;

    gap: 3.5rem;
  }
}


/* ============================================================
   FORM DI PRENOTAZIONE
   ============================================================ */

.form-success {

  display: none;

  margin-bottom: 1.6rem;

  padding:
    1rem
    1.2rem;

  background: #e6f0e8;

  border:
    1px solid #bcd9c2;

  border-radius: var(--radius-sm);

  color: #2b5934;

  font-size: 0.92rem;
}

.form-success.visible {

  display: block;
}

.booking-form {

  margin-top: 0.5rem;
}

.form-grid {

  display: grid;

  gap: 1.1rem;

  grid-template-columns: 1fr;
}

.field {

  display: flex;

  flex-direction: column;

  gap: 0.4rem;
}

.field label {

  font-size: var(--text-xs);

  font-weight: 600;

  color: var(--ink-soft);
}

.field input,
.field select,
.field textarea {

  padding:
    0.8rem
    0.9rem;

  background: var(--surface);

  border:
    1px solid var(--line);

  border-radius: var(--radius-sm);

  font-size: 0.96rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {

  border-color: var(--blue);

  outline:
    2px solid var(--blue-light);

  outline-offset: 1px;
}

.field textarea {

  resize: vertical;

  min-height: 100px;
}

.form-note {

  margin-top: 1.1rem;

  color: var(--ink-faint);

  font-size: var(--text-xs);
}

.form-note a {

  color: var(--blue-deep);
}

@media (min-width: 640px) {

  .form-grid.two {

    grid-template-columns:
      1fr
      1fr;
  }

  .field.full {

    grid-column: 1 / -1;
  }
}


/* ============================================================
   FAQ
   ============================================================ */

.faq-list {

  display: grid;

  gap: 0.7rem;

  max-width: 760px;
}

.faq-item {

  background: var(--surface);

  border:
    1px solid var(--line);

  border-radius: var(--radius-md);

  overflow: hidden;
}

.faq-question {

  width: 100%;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 1rem;

  padding:
    1.1rem
    1.3rem;

  text-align: left;

  font-family: var(--font-display);

  font-size: 1.02rem;

  color: var(--ink);
}

.faq-question .faq-icon {

  flex: 0 0 auto;

  width: 22px;
  height: 22px;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  color: var(--blue);

  transition:
    transform 0.25s ease;
}

.faq-item[data-open="true"]
.faq-icon {

  transform: rotate(45deg);
}

.faq-answer {

  display: grid;

  grid-template-rows: 0fr;

  transition:
    grid-template-rows 0.3s var(--ease);
}

.faq-item[data-open="true"]
.faq-answer {

  grid-template-rows: 1fr;
}

.faq-answer-inner {

  overflow: hidden;
}

.faq-answer p {

  margin: 0;

  padding:
    0
    1.3rem
    1.2rem;

  color: var(--ink-soft);

  font-size: 0.94rem;
}


/* ============================================================
   INSTAGRAM
   ============================================================ */

.instagram-section {

  position: relative;

  background: var(--paper);

  border-top:
    1px solid var(--line);

  border-bottom:
    1px solid var(--line);

  overflow: hidden;
}

.instagram-header {

  display: flex;

  flex-direction: column;

  gap: 1.4rem;

  margin-bottom: 2rem;
}

.instagram-header h2 {

  max-width: 16ch;

  margin-bottom: 0.5rem;
}

.instagram-lede {

  max-width: 52ch;

  margin: 0;

  color: var(--ink-soft);

  font-size: 0.98rem;
}

.instagram-profile-link {

  display: inline-flex;

  align-items: center;

  align-self: flex-start;

  gap: 0.65rem;

  min-height: 48px;

  padding:
    0.55rem
    0.9rem;

  background: var(--surface);

  border:
    1px solid var(--line);

  border-radius: var(--radius-pill);

  text-decoration: none;

  color: var(--ink);

  font-size: 0.9rem;

  font-weight: 600;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.instagram-profile-link:hover {

  border-color: var(--blue);

  box-shadow: var(--shadow-soft);
}

.instagram-profile-icon {

  width: 30px;
  height: 30px;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: var(--blue-light);

  color: var(--blue-deep);
}

.instagram-profile-icon svg {

  width: 17px;
  height: 17px;
}

.instagram-arrow {

  margin-left: 0.2rem;

  color: var(--blue-deep);
}

.instagram-feed {

  width: 100%;

  max-width: 820px;

  margin-inline: auto;

  overflow: hidden;

  background: var(--surface);

  border:
    1px solid var(--line);

  border-radius: var(--radius-md);

  box-shadow: var(--shadow-soft);
}

.instagram-feed .instagram-media {

  margin: 0 !important;

  width: 100% !important;
}

.instagram-bottom {

  display: flex;

  flex-direction: column;

  align-items: center;

  gap: 1rem;

  margin-top: 2rem;

  text-align: center;
}

.instagram-bottom p {

  margin: 0;

  color: var(--ink-soft);

  font-size: 0.9rem;
}

@media (min-width: 640px) {

  .instagram-header {

    flex-direction: row;

    align-items: flex-end;

    justify-content: space-between;

    gap: 3rem;
  }

  .instagram-header > div:first-child {

    flex: 1;
  }
}

@media (min-width: 960px) {

  .instagram-bottom {

    flex-direction: row;

    justify-content: center;

    gap: 1.5rem;
  }
}


/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {

  background: var(--blue-dark);

  color:
    rgba(255, 255, 255, 0.82);

  padding-top: 3.5rem;
}

.footer-grid {

  display: grid;

  gap: 2.6rem;

  padding-bottom: 2.5rem;
}

.footer-brand {

  margin:
    0
    0
    0.7rem;

  font-family: var(--font-display);

  font-size: 1.3rem;

  color: var(--white);
}

.footer-description {

  max-width: 34ch;

  color:
    rgba(255, 255, 255, 0.68);
}

.footer-book-btn {

  margin-top: 0.6rem;

  margin-bottom: 1.6rem;
}

.site-footer h5 {

  margin-bottom: 1rem;

  color:
    rgba(255, 255, 255, 0.55);

  text-transform: none;
}

.site-footer ul {

  display: grid;

  gap: 0.65rem;
}

.site-footer a {

  text-decoration: none;

  color:
    rgba(255, 255, 255, 0.82);

  font-size: 0.92rem;
}

.site-footer a:hover {

  color: var(--white);
}

.social-links {

  display: flex;

  gap: 0.7rem;
}

.social-links a {

  width: 40px;
  height: 40px;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  border:
    1px solid rgba(255, 255, 255, 0.25);

  border-radius: 50%;
}

.social-links svg {

  width: 18px;
  height: 18px;
}

.footer-bottom {

  display: flex;

  flex-direction: column;

  gap: 0.5rem;

  padding-block: 1.4rem;

  border-top:
    1px solid rgba(255, 255, 255, 0.14);

  font-size: var(--text-xs);

  color:
    rgba(255, 255, 255, 0.55);
}

@media (min-width: 780px) {

  .footer-grid {

    grid-template-columns:
      1.4fr
      1fr
      1fr
      1fr;
  }

  .footer-bottom {

    flex-direction: row;

    justify-content: space-between;
  }
}


/* ============================================================
   PHOTO CAROUSEL
   Card "miniatura": molto più piccola dell'originale a 520px
   ============================================================ */

.photo-carousel {

  max-width: 640px;

}

.photo-carousel .reviews-viewport {

  border-radius: 18px;

}

.photo-carousel .reviews-track {

  align-items: stretch;

}

.photo-slide {

  position: relative;

  flex: 0 0 60%;

  height: 190px;

  margin: 0 0.6rem 0 0;

  overflow: hidden;

  border-radius: 14px;

  background: #e9e4dc;

}

.photo-slide img {

  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  transition:
    transform 0.8s ease;

}

.photo-slide:hover img {

  transform: scale(1.025);

}


/* ============================================================
   PHOTO CAROUSEL DESKTOP
   ============================================================ */

@media (min-width: 768px) {

  .photo-slide {

    flex: 0 0 42%;

    height: 220px;

    margin-right: 0.75rem;

  }

}


/* ============================================================
   PHOTO CAROUSEL MOBILE
   ============================================================ */

@media (max-width: 767px) {

  .photo-slide {

    height: 160px;

    border-radius: 12px;

  }

  .photo-carousel .reviews-arrow {

    z-index: 5;

  }

}


/* ============================================================
   SICUREZZA FINALE MENU
   Evita che contenuti della pagina interferiscano
   con il menu mobile
   ============================================================ */

@media (max-width: 959px) {

  .site-header {
    position: fixed;
    z-index: 1000;
  }

  body {
    padding-top: var(--header-height);
  }

  [id] {
    scroll-margin-top: calc(var(--header-height) + 12px);
  }

  .main-nav {
    z-index: 1001;
  }

  .nav-overlay {
    z-index: 999;
  }

  .main-nav.open {
    pointer-events: auto;
  }

  .main-nav.open a,
  .main-nav.open button {
    pointer-events: auto;
  }

  .main-nav.open > ul {
    position: relative;
    z-index: 1010;
  }

  .main-nav.open .dropdown-panel {
    position: relative;
    z-index: 1020;
  }
}
/* ============================================================
   SEDI — DESIGN SYSTEM
   ============================================================ */

.location-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(
      115deg,
      rgba(255,255,255,.98) 0%,
      rgba(244,248,250,.92) 100%
    );
}

.location-hero-inner {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  align-items: center;
  gap: 4rem;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.location-hero-content {
  max-width: 820px;
}

.location-hero .eyebrow-word {
  margin-bottom: 1.4rem;
}

.location-hero h1 {
  margin: 0;
  max-width: 850px;
  font-family: "Fraunces", serif;
  font-size: clamp(3.5rem, 7vw, 6.8rem);
  font-weight: 500;
  line-height: .94;
  letter-spacing: -.045em;
  color: var(--ink);
}

.location-title-small {
  font-size: .45em;
  letter-spacing: -.02em;
  vertical-align: middle;
}

.location-lede {
  max-width: 720px;
  margin: 2rem 0 0;
  font-size: 1.2rem;
  line-height: 1.75;
  color: var(--muted);
}

.location-note {
  max-width: 650px;
  margin: 1rem 0 0;
  font-size: .98rem;
  line-height: 1.7;
  color: var(--muted);
}

.location-hero-cta {
  margin-top: 2rem;
}

.location-hero-side {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  border-left: 1px solid rgba(31,48,72,.12);
  padding-left: 2rem;
}

.location-number {
  font-family: "Fraunces", serif;
  font-size: 4.5rem;
  line-height: 1;
  color: var(--ink);
  opacity: .18;
}

.location-side-label {
  margin-top: .8rem;
  max-width: 100px;
  text-align: right;
  font-size: .72rem;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
}


/* ============================================================
   DETTAGLI SEDE
   ============================================================ */

.location-details {
  padding: 6rem 0;
  background: var(--paper);
}

.location-details-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  gap: 5rem;
  align-items: start;
}

.location-map-column {
  min-width: 0;
}

.location-map {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #e9eef1;
}

.location-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-external-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: .8rem;
  font-size: .82rem;
  color: var(--ink);
  text-decoration: none;
  transition: opacity .2s ease;
}

.map-external-link:hover {
  opacity: .6;
}

.map-external-link span {
  font-size: 1rem;
}


/* ============================================================
   INFO
   ============================================================ */

.location-info {
  padding-top: .4rem;
}

.location-info .eyebrow-word {
  margin-bottom: .9rem;
}

.location-info h2 {
  margin: 0 0 2.4rem;
  font-family: "Fraunces", serif;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.035em;
  color: var(--ink);
}

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

.location-info-item {
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}

.location-info-label {
  display: block;
  margin-bottom: .45rem;
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
}

.location-info-item p {
  margin: 0;
  font-size: .98rem;
  line-height: 1.65;
  color: var(--ink);
}

.location-info-item a {
  color: inherit;
  text-decoration: none;
}

.location-info-item a:hover {
  text-decoration: underline;
}

.location-whatsapp {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1.1rem 1.25rem;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-size: .9rem;
  transition:
    transform .2s ease,
    opacity .2s ease;
}

.location-whatsapp:hover {
  transform: translateY(-2px);
  opacity: .92;
}


/* ============================================================
   ALTRA SEDE
   ============================================================ */

.other-location {
  padding: 6rem 0;
  border-top: 1px solid var(--line);
  background: var(--paper-alt);
}

.other-location-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 4rem;
  align-items: end;
  margin-bottom: 2.5rem;
}

.other-location-header h2 {
  max-width: 720px;
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(2.3rem, 5vw, 4rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.035em;
  color: var(--ink);
}

.other-location-header > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.other-location-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem 2.2rem;
  border: 1px solid rgba(31,48,72,.16);
  background: rgba(255,255,255,.5);
  color: var(--ink);
  text-decoration: none;
  transition:
    background .25s ease,
    transform .25s ease,
    border-color .25s ease;
}

.other-location-card:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,.85);
  border-color: rgba(31,48,72,.3);
}

.other-location-number {
  display: block;
  margin-bottom: .5rem;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--muted);
}

.other-location-card h3 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  font-weight: 500;
  letter-spacing: -.025em;
}

.other-location-card h3 span {
  font-size: .55em;
}

.other-location-card p {
  max-width: 600px;
  margin: .65rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.other-location-arrow {
  flex: 0 0 auto;
  font-size: 1.7rem;
  transition: transform .2s ease;
}

.other-location-card:hover .other-location-arrow {
  transform: translateX(5px);
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {

  .location-hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    min-height: auto;
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .location-hero-side {
    align-self: auto;
    align-items: flex-start;
    border-left: 0;
    border-top: 1px solid rgba(31,48,72,.12);
    padding: 1.5rem 0 0;
  }

  .location-side-label {
    max-width: none;
    text-align: left;
  }

  .location-details-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .other-location-header {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}


@media (max-width: 640px) {

  .location-hero-inner {
    padding-top: 3rem;
    padding-bottom: 3.5rem;
  }

  .location-hero h1 {
    font-size: clamp(3rem, 14vw, 4.6rem);
  }

  .location-lede {
    margin-top: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.7;
  }

  .location-note {
    font-size: .92rem;
  }

  .location-details {
    padding: 4rem 0;
  }

  .location-map {
    aspect-ratio: 4 / 3;
  }

  .location-info h2 {
    margin-bottom: 2rem;
  }

  .other-location {
    padding: 4rem 0;
  }

  .other-location-card {
    align-items: flex-start;
    padding: 1.5rem;
  }

  .other-location-arrow {
    margin-top: .3rem;
  }
}
/* ============================================================
   HERO — MOBILE
   Foto subito sotto l'header
   ============================================================ */

@media (max-width: 959px) {

  .hero-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  /* FOTO PRIMA DEL TESTO */
  .hero-media {
    order: 1;
    width: 100%;
    max-width: none;
    margin: 0 0 1.8rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
  }

  .hero-media img {
    display: block;
    width: 100%;
 aspect-ratio: 3 / 1;
    object-fit: cover;
  }

  /* TESTO DOPO LA FOTO */
  .hero-content {
    order: 2;
  }

}


/* ============================================================
   NASTRINO TRATTAMENTI — HOME
   Mobile-first. Senza JS: riga scorrevole a mano.
   Con JS (.is-ready): scorrimento continuo, ciclo senza stacchi.
   ============================================================ */

.treatments-ribbon {
  padding-block: 0;
  background: var(--blue-dark);
  color: var(--paper);
  overflow: hidden;
}

.ribbon-viewport {
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.ribbon-track {
  display: flex;
  width: max-content;
}

.ribbon-group {
  display: flex;
  flex: none;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ribbon-group li {
  display: flex;
  flex: none;
  align-items: center;
}

/* rombo dorato tra una voce e l'altra */
.ribbon-group li::after {
  content: "";
  flex: none;
  width: 0.45rem;
  height: 0.45rem;
  margin-inline: 1.15rem;
  background: var(--gold);
  transform: rotate(45deg);
}

.ribbon-group a {
  display: block;
  padding-block: 1rem;
  color: inherit;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
}

.ribbon-group a:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ---- attivo solo quando lo script ha preparato il ciclo ---- */

.treatments-ribbon.is-ready .ribbon-viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 2rem, #000 calc(100% - 2rem), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 2rem, #000 calc(100% - 2rem), transparent 100%);
}

.treatments-ribbon.is-ready .ribbon-track {
  animation: ribbon-scroll var(--ribbon-duration, 50s) linear infinite;
  will-change: transform;
}

/* pausa: tocco prolungato (classe .is-paused), tastiera, mouse */
.treatments-ribbon.is-paused .ribbon-track,
.treatments-ribbon .ribbon-viewport:focus-within .ribbon-track {
  animation-play-state: paused;
}

@media (hover: hover) {

  .treatments-ribbon .ribbon-viewport:hover .ribbon-track {
    animation-play-state: paused;
  }

  .ribbon-group a:hover {
    color: var(--gold-light);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.3em;
  }
}

@keyframes ribbon-scroll {

  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (min-width: 780px) {

  .ribbon-group li::after {
    width: 0.5rem;
    height: 0.5rem;
    margin-inline: 1.8rem;
  }

  .ribbon-group a {
    padding-block: 1.2rem;
    font-size: 1.2rem;
  }

  .treatments-ribbon.is-ready .ribbon-viewport {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4rem, #000 calc(100% - 4rem), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 4rem, #000 calc(100% - 4rem), transparent 100%);
  }
}

/* movimento ridotto: nessuna animazione, la riga si scorre a mano */
@media (prefers-reduced-motion: reduce) {

  .treatments-ribbon.is-ready .ribbon-viewport {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .treatments-ribbon.is-ready .ribbon-track {
    animation: none !important;
  }

  .treatments-ribbon [aria-hidden="true"] {
    display: none;
  }
}
